Core/Form/Validation/Element/Element.php
public function custom($name) {
        if ($this->_exist) {
            $class = 'Controller\Request\Custom\\' . ucfirst($name);

            if (class_exists($class)) {
                array_push($this->_constraints, ['type' => self::CUSTOM, 'value' => new $class($this->_field, $this->_label, $this->_data[$this->_field])]);
            }
            else {
                throw new MissingClassException('The custom validation class "' . $class . '" was not found');
            }
        }

        return $this;
    }
public function custom($name) {
        if ($this->_exist) {
            $class = 'Controller\Request\Custom\\' . ucfirst($name);

            if (class_exists($class)) {
                array_push($this->_constraints, ['type' => self::CUSTOM, 'value' => new $class($this->_field, $this->_label, $this->_data[$this->_field])]);
            }
            else {
                throw new MissingClassException('The custom validation class "' . $class . '" was not found');
            }
        }

        return $this;
    }
public function custom ( $ name ) { if ( $ this -> _exist ) { $ class = 'Controller\Request\Custom\\' . ucfirst ( $ name ) ; if ( class_exists ( $ class ) ) { array_push ( $ this -> _constraints , [ 'type' => self :: CUSTOM , 'value' => new $ class ( $ this -> _field , $ this -> _label , $ this -> _data [ $ this -> _field ] ) ] ) ; } else { throw new MissingClassException ( 'The custom validation class "' . $ class . '" was not found' ) ; } } return $ this ; }
custom filter made by the user
@access public
@param $name string
@throws MissingClassException
@return \Gcs\Framework\Core\Form\Validation\Element\Element
@since 3.0
@package Gcs\Framework\Core\Form\Validation\Element
custom filter made by the user