Ejemplo n.º 1
0
 /**
  *
  */
 public function display()
 {
     $sections =& $this->get('sections');
     $_sections = array();
     if (count($sections)) {
         foreach ($sections as $section) {
             $name = $section->get('name');
             $id = $section->get('id');
             $url = Sobi::Url(array('sid' => $id));
             $_section = array();
             $_section['id'] = $id;
             $_section['nid'] = $section->get('nid');
             $_section['name'] = "<a href=\"{$url}\">{$name}</a>";
             //				$_section[ 'entries_counter' ] 		= $section->countChilds( 'entry' );
             //				$_section[ 'categories_counter' ] 	= $section->countChilds( 'category' );
             //				$_section[ 'state' ] = SPLists::state( $section );
             //				$_section[ 'checkbox' ] = SPLists::checkedOut( $section, 'sid' );
             $_section['createdTime'] = $section->get('createdTime');
             $_section['metaDesc'] = $section->get('metaDesc');
             $_section['metaKey'] = $section->get('metaKey');
             $_section['description'] = $section->get('description');
             $_section['url'] = $url;
             $_sections[] = $_section;
         }
     }
     $this->set($_sections, 'sections');
     parent::display();
 }
Ejemplo n.º 2
0
 public function display()
 {
     switch ($this->get('task')) {
         case 'edit':
             $this->edit();
             break;
     }
     parent::display();
 }
Ejemplo n.º 3
0
 public function display()
 {
     switch ($this->get('task')) {
         case 'manage':
             $this->browse();
             $this->determineTemplate('extensions', 'section');
             break;
     }
     parent::display();
 }
Ejemplo n.º 4
0
 /**
  *
  */
 public function display()
 {
     switch ($this->get('task')) {
         case 'add':
         case 'edit':
             $this->edit();
             $this->determineTemplate('acl', 'edit');
             break;
     }
     parent::display();
 }
Ejemplo n.º 5
0
 /**
  *
  */
 public function _display()
 {
     SPLoader::loadClass('html.tooltip');
     switch ($this->get('task')) {
         case 'edit':
             $this->assign($this->languages(), 'languages-list');
         case 'add':
             $this->edit();
             break;
     }
     parent::display();
 }
Ejemplo n.º 6
0
 public function display()
 {
     switch ($this->get('task')) {
         case 'list':
             $this->errors();
             $this->determineTemplate('config', 'errors');
             break;
         case 'details':
             $this->details();
             $this->determineTemplate('config', 'error');
             break;
     }
     parent::display();
 }
Ejemplo n.º 7
0
 /**
  *
  */
 public function display()
 {
     switch ($this->get('task')) {
         case 'view':
             $this->listSection();
             $this->determineTemplate('section', 'list');
             break;
         case 'entries':
             $this->listSection();
             $this->determineTemplate('section', 'entries');
             break;
     }
     parent::display();
 }
Ejemplo n.º 8
0
 /**
  */
 public function display()
 {
     switch (trim($this->get('task'))) {
         case 'list':
             parent::display();
             break;
         case 'edit':
         case 'add':
             $this->displayForm();
             break;
         default:
             parent::display();
             break;
     }
 }