public function __construct($default = array()) { parent::__construct($default); // get comment params $this->params = new YParameter(); $this->params->loadArray(Zoo::getApplication()->getParams()->get('global.comments.')); }
public function __construct($default = array()) { parent::__construct($default); // get application $this->application = Zoo::getApplication(); // registers tasks $this->registerTask('frontpage', 'category'); }
public function __construct($default = array()) { parent::__construct($default); // get application $this->application = Zoo::getApplication(); // register tasks $this->registerTask('add', 'edit'); $this->registerTask('apply', 'save'); $this->registerTask('saveandnew', 'save'); }
public function __construct($default = array()) { parent::__construct($default); // get application group $this->group = YRequest::getString('group'); // if group exists if ($this->group) { // add group to base url $this->baseurl .= '&group=' . $this->group; // create application object $this->application = new Application(); $this->application->setGroup($this->group); } }
public function __construct($default = array()) { parent::__construct($default); // get application group $this->group = YRequest::getString('group'); // if group exists if ($this->group) { // add group to base url $this->baseurl .= '&group=' . $this->group; // create application object $this->application = new Application(); $this->application->setGroup($this->group); } // register tasks $this->registerTask('addtype', 'edittype'); $this->registerTask('applytype', 'savetype'); $this->registerTask('applyelements', 'saveelements'); $this->registerTask('applyassignelements', 'saveassignelements'); $this->registerTask('applysubmission', 'savesubmission'); }
public function __construct($default = array()) { parent::__construct($default); $this->item_id = JRequest::getInt('item_id'); // get submission info from Request if (!($submission_id = YRequest::getInt('submission_id'))) { // else get submission info from menu item if ($menu = JSite::getMenu()->getActive()) { $this->menu_params = new JParameter($menu->params); $submission_id = $this->menu_params->get('submission'); } } // set submission if ($this->submission = YTable::getInstance('submission')->get($submission_id)) { // set application $this->application = $this->submission->getApplication(); // set template $this->template = $this->application->getTemplate(); // set renderer $this->renderer = new ItemRenderer(); $this->renderer->addPath(array($this->template->getPath(), ZOO_SITE_PATH)); } }
public function __construct($default = array()) { parent::__construct($default); // get application $this->application = Zoo::getApplication(); }
/** * Constructor de la clase */ function __construct() { parent::__construct(); $this->setModel($this->_getOrConstructModel()); }