protected function getValidationRule($inputName)
    {
        $rules = $this->getValidationRules();

        return is_array($rules[$inputName]) ? $rules[$inputName] : explode('|', $rules[$inputName]);
    }
protected function getValidationRule($inputName)
    {
        $rules = $this->getValidationRules();

        return is_array($rules[$inputName]) ? $rules[$inputName] : explode('|', $rules[$inputName]);
    }
protected function getValidationRule ( $ inputName ) { $ rules = $ this -> getValidationRules ( ) ; return is_array ( $ rules [ $ inputName ] ) ? $ rules [ $ inputName ] : explode ( '|' , $ rules [ $ inputName ] ) ; }
Returns validation rules for given input name.

@param string $inputName
@return array
Returns validation rules for given input name .