Exemplo n.º 1
0
 public function __construct($default = array())
 {
     parent::__construct($default);
     // get comment params
     $this->params = new YParameter();
     $this->params->loadArray(Zoo::getApplication()->getParams()->get('global.comments.'));
 }
Exemplo n.º 2
0
 public function __construct($default = array())
 {
     parent::__construct($default);
     // get application
     $this->application = Zoo::getApplication();
     // registers tasks
     $this->registerTask('frontpage', 'category');
 }
Exemplo n.º 3
0
 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');
 }
Exemplo n.º 4
0
 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);
     }
 }
Exemplo n.º 5
0
 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');
 }
Exemplo n.º 6
0
 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));
     }
 }
Exemplo n.º 7
0
 public function __construct($default = array())
 {
     parent::__construct($default);
     // get application
     $this->application = Zoo::getApplication();
 }
Exemplo n.º 8
0
 /**
  * Constructor de la clase
  */
 function __construct()
 {
     parent::__construct();
     $this->setModel($this->_getOrConstructModel());
 }