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; }
function common_call($front_call = null) { $this->_module_name = 'faq'; $this->_common_obj =& faq_module_common::getInstance(); $this->_tree =& $this->_common_obj->obj_tree; }
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; }