Exemplo n.º 1
0
 /**
  * Gets the user input, if any, or returns false if there is none.
  * @return array|bool the user input, or false if none is present
  */
 protected function getUserInput()
 {
     $input = parent::getUserInput();
     $model = $this->staticModel();
     $modelClass = get_class($model);
     if (isset($input[$modelClass]) && count($input[$modelClass])) {
         $input = $input[$modelClass];
     }
     return $input;
 }
Exemplo n.º 2
0
 /**
  * Gets the user input, if any, or returns false if there is none.
  * @return array|bool the user input, or false if none is present
  */
 protected function getUserInput()
 {
     $input = \Restyii\Action\Base::getUserInput();
     $model = $this->staticRelatedModel();
     $modelClass = get_class($model);
     if (isset($input[$modelClass]) && count($input[$modelClass])) {
         $input = $input[$modelClass];
     }
     return $input;
 }