Example #1
0
 static function getInstance($front_call = null)
 {
     if (!self::$instance) {
         self::$instance = new faq_module_common($front_call);
     }
     return self::$instance;
 }
Example #2
0
 function faq_module_front()
 {
     $this->_module_name = 'faq';
     $this->_common_obj =& faq_module_common::getInstance(true);
     $this->_tree =& $this->_common_obj->obj_tree;
     $this->_tree->enable_cache(true);
     parent::__construct();
     $this->context = null;
 }
Example #3
0
 function common_call($front_call = null)
 {
     $this->_module_name = 'faq';
     $this->_common_obj =& faq_module_common::getInstance();
     $this->_tree =& $this->_common_obj->obj_tree;
 }
Example #4
0
 function load_faqs($parameters)
 {
     Common::call_common_instance('faq');
     $faq =& faq_module_common::getInstance(true);
     $r = $faq->obj_tree->GetChildsParam(1, array('Name', 'basic'));
     $faqs = array();
     foreach ($r as $key => $f) {
         $faqs[] = array("id" => $key, "basic" => $f["basic"]);
     }
     $this->result["faqs"] = $faqs;
 }