コード例 #1
0
ファイル: txp_image.php プロジェクト: bgarrels/textpattern
 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';
     }
 }
コード例 #2
0
ファイル: txp_section.php プロジェクト: bgarrels/textpattern
 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';
     }
 }
コード例 #3
0
ファイル: txp_prefs.php プロジェクト: bgarrels/textpattern
 function PrefsController()
 {
     parent::ZemAdminController();
 }