public static function getInstance() { if (is_null(self::$_Instance)) { self::$_Instance = new self(); } return self::$_Instance; }
/** * @return Zupal_Modules */ public static function getInstance() { if (is_null(self::$_Instance)) { // process self::$_Instance = new Zupal_Modules(); } return self::$_Instance; }
function module_record($pReload = FALSE) { if ($pReload || is_null($this->_module_record)) { $value = Zupal_Modules::getInstance()->module($this->get_name()); if (!$value->is_saved()) { $value = new Zupal_Modules(); $value->name = $this->get_name(); $value->save(); } // process $this->_module_record = $value; } return $this->_module_record; }
/** * */ public function dataAction() { $this->_helper->layout->disableLayout(); $this->view->data = Zupal_Modules::getInstance()->render_data(array(), 'name'); }