コード例 #1
0
ファイル: filter.php プロジェクト: ranrolls/ras-full-portal
 public function execute()
 {
     $this->_task = strlen($this->_task) ? $this->_task : $this->_defTask;
     switch ($this->_task) {
         case 'list':
             $this->screen();
             Sobi::ReturnPoint();
             break;
         case 'edit':
         case 'add':
             $this->edit();
             break;
         case 'delete':
             $this->delete();
             break;
         case 'save':
             $this->save();
             break;
         default:
             /* case plugin didn't registered this task, it was an error */
             if (!parent::execute()) {
                 Sobi::Error('filter_ctrl', 'Task not found', SPC::WARNING, 404, __LINE__, __FILE__);
             }
             break;
     }
 }
コード例 #2
0
ファイル: error.php プロジェクト: pelloq1/SobiPro
 public function execute()
 {
     $this->_task = strlen($this->_task) ? $this->_task : $this->_defTask;
     switch ($this->_task) {
         case 'list':
             $this->screen();
             Sobi::ReturnPoint();
             break;
         case 'purge':
             $this->purge();
             break;
         case 'download':
             $this->download();
             break;
         case 'details':
             $this->details();
             break;
         default:
             /* case plugin didn't registered this task, it was an error */
             if (!parent::execute()) {
                 Sobi::Error('error_ctrl', 'Task not found', SPC::WARNING, 404, __LINE__, __FILE__);
             }
             break;
     }
 }
コード例 #3
0
ファイル: template.php プロジェクト: ranrolls/ras-full-portal
 /**
  */
 public function execute()
 {
     $this->_task = strlen($this->_task) ? $this->_task : $this->_defTask;
     switch ($this->_task) {
         case 'edit':
             $this->editFile();
             Sobi::ReturnPoint();
             break;
         case 'save':
         case 'saveAs':
             $this->save($this->_task == 'saveAs');
             break;
         case 'info':
             $this->info();
             break;
         case 'deleteFile':
             $this->deleteFile();
             break;
         case 'delete':
             $this->delete();
             break;
         case 'clone':
             $this->cloneTpl();
             break;
         case 'list':
             $this->getTemplateFiles();
             break;
         default:
             /* case plugin didn't registered this task, it was an error */
             if (!parent::execute()) {
                 Sobi::Error($this->name(), SPLang::e('SUCH_TASK_NOT_FOUND', SPRequest::task()), SPC::NOTICE, 404, __LINE__, __FILE__);
             } else {
                 $r = true;
             }
             break;
     }
 }