<?php

if (!defined('ROOT')) exit('Can\'t Access !');

class questionhead extends table {
    public $name='question_head';
    static $me;
    public static function getInstance() {
        if (!self::$me) {
            $class=new questionhead();
            self::$me=$class;
        }
        return self::$me;
    }

    function getcols($act) {
        return '*';
    }

    function get_form() {
        return array(
            'isblank'=>array(
                'selecttype'=>'radio',
                'select'=>form::arraytoselect(array(0=>lang_admin('no'),1=>lang_admin('yes'))),
                'default'=>0,
            ),

        );
    }

    static  function  question_head_nav(){
        $_question_head=new questionhead();
        $where = "langid=".lang::getlangid(lang::getistemplate());
        $ordre = 'listorder desc,`id` asc';
        return $_question_head->getrows($where,0,$ordre);
    }

}