public function display() { $this->_task = $this->get('task'); switch ($this->get('task')) { case 'edit': case 'add': $this->edit(); break; case 'details': $this->details(); break; } parent::display(); }
public function display() { $this->_task = $this->get('task'); switch ($this->_task) { case 'submit': $this->submit(); parent::display(); break; case 'payment': $this->save(); parent::display(); break; } }
/** * */ public function display() { $this->_type = 'frontpage'; $type = $this->key('template_type', 'xslt'); if ($type != 'php' && Sobi::Cfg('global.disable_xslt', false)) { $type = 'php'; } if ($type == 'xslt') { $sections = $this->get('sections'); $data = array(); if (count($sections)) { foreach ($sections as $section) { $s = array('name' => array('_complex' => 1, '_data' => $section->get('name'), '_attributes' => array('lang' => Sobi::Lang(false))), 'description' => array('_complex' => 1, '_cdata' => 1, '_data' => $section->get('description'), '_attributes' => array('lang' => Sobi::Lang(false))), 'createdTime' => $section->get('createdTime'), 'meta' => array('description' => $section->get('metaDesc'), 'keys' => $this->metaKeys($section), 'author' => $section->get('metaAuthor'), 'robots' => $section->get('metaRobots')), 'owner' => $section->get('owner'), 'version' => $section->get('version'), 'validSince' => $section->get('validSince'), 'validUntil' => $section->get('validUntil'), 'url' => Sobi::Url(array('sid' => $section->get('id')))); $data[] = array('_complex' => 1, '_data' => $s, '_attributes' => array('id' => $section->get('id'), 'nid' => $section->get('nid'))); } } $this->assign($data, 'sections'); Sobi::Trigger($this->_type, ucfirst(__FUNCTION__), array(&$this->_attr)); } parent::display(); }
/** * */ public function display($type = 'section', $out = null) { $this->_type = $type; switch ($this->get('task')) { case 'view': $this->view(); break; } parent::display($out); }