static function getInstance($front_call = null) { if (!self::$instance) { self::$instance = new votes_module_common($front_call); } return self::$instance; }
function common_call($front_call = null) { $this->_module_name = 'votes'; $this->_common_obj = votes_module_common::getInstance(); $this->_tree = $this->_common_obj->obj_tree; }
function votes_module_front() { $this->_module_name = 'votes'; $this->_common_obj =& votes_module_common::getInstance(true); $this->_tree =& $this->_common_obj->obj_tree; }