예제 #1
0
 /**
  * @return string|array
  */
 private function getRulesForAction()
 {
     if ($this->action->controller instanceof ActiveController) {
         return $this->getRulesForActiveAction($this->action);
     }
     if (!method_exists($this->action, 'rules')) {
         return '';
     }
     return $this->action->rules();
 }