示例#1
0
 /**
  * Check for the form errors
  *
  * @return boolean
  */
 public function isValid()
 {
     $validActions = array('validateInput', 'delete');
     return in_array($this->currentAction, $validActions) ?: parent::isValid();
 }
示例#2
0
文件: Main.php 项目: kingsj/core
 /**
  * Check for the form errors
  *
  * @return boolean
  */
 public function isValid()
 {
     return 'validateInput' === $this->currentAction ?: parent::isValid();
 }