コード例 #1
0
ファイル: Abstract.php プロジェクト: jorgenils/zend-framework
 public function execute($actionName, $providerSpecialty = null)
 {
     // get action object
     $actionMethod = $actionName;
     if ($providerSpecialty != '') {
         $actionMethod .= $providerSpecialty;
     }
     if (method_exists($this, $actionMethod)) {
         call_user_func_array(array($this, $actionMethod), $this->_request->getProviderParameters());
     } elseif (method_exists($this, $actionMethod . 'Action')) {
         $actionMethod .= 'Action';
         call_user_func_array(array($this, $actionMethod), $this->_request->getProviderParameters());
     } else {
         throw new Zend_Tool_Exception('Not a supported method.');
     }
 }