Example #1
0
 function ImageController()
 {
     parent::ZemAdminController();
     $this->context = gpsa(array('page', 'sort', 'dir', 'crit', 'search_method'));
     if (empty($this->context['sort'])) {
         $this->context['sort'] = 'id';
     }
     if ($this->context['dir'] != 'asc') {
         $this->context['dir'] = 'desc';
     }
 }
Example #2
0
 function SectionController()
 {
     parent::ZemAdminController();
     $this->context = gpsa(array('page', 'sort', 'dir', 'crit', 'search_method'));
     // @todo: sensible standard list view
     if (empty($this->context['sort'])) {
         $this->context['sort'] = 'name';
     }
     if ($this->context['dir'] != 'desc') {
         $this->context['dir'] = 'asc';
     }
 }
Example #3
0
 function PrefsController()
 {
     parent::ZemAdminController();
 }