public function validates()
    {
        $currentAttributeValues = array();

        if ($this->isBound()) {
            foreach ($this->getAttributeNames() as $name) {
                $currentAttributeValues[$name] = $this->{$name};
            }
        }

        return $this->validate(array(
            $this->getInputName() => $currentAttributeValues
        ));
    }
public function validates()
    {
        $currentAttributeValues = array();

        if ($this->isBound()) {
            foreach ($this->getAttributeNames() as $name) {
                $currentAttributeValues[$name] = $this->{$name};
            }
        }

        return $this->validate(array(
            $this->getInputName() => $currentAttributeValues
        ));
    }
public function validates ( ) { $ currentAttributeValues = array ( ) ; if ( $ this -> isBound ( ) ) { foreach ( $ this -> getAttributeNames ( ) as $ name ) { $ currentAttributeValues [ $ name ] = $ this -> { $ name } ; } } return $ this -> validate ( array ( $ this -> getInputName ( ) => $ currentAttributeValues ) ) ; }
Runs validation on the current entity values as declared
by the entity's attributes.
@return boolean True if validation passed
Runs validation on the current entity values as declared by the entity s attributes .