library/Garp/Model/Validator/NotEmpty.php
protected function _validate($column, $model, $data, $onlyIfAvailable) {
        if ($onlyIfAvailable && !array_key_exists($column, $data)) {
            return;
        }
        $value = array_key_exists($column, $data) ? $data[$column] : null;
        $colType = $this->_getColumnType($column, $model);

        if ($colType == 'numeric') {
            $this->_validateNumber($value, $column);
            return;
        }

        $this->_validateString($value, $column);
    }
protected function _validate($column, $model, $data, $onlyIfAvailable) {
        if ($onlyIfAvailable && !array_key_exists($column, $data)) {
            return;
        }
        $value = array_key_exists($column, $data) ? $data[$column] : null;
        $colType = $this->_getColumnType($column, $model);

        if ($colType == 'numeric') {
            $this->_validateNumber($value, $column);
            return;
        }

        $this->_validateString($value, $column);
    }
protected function _validate ( $ column , $ model , $ data , $ onlyIfAvailable ) { if ( $ onlyIfAvailable && ! array_key_exists ( $ column , $ data ) ) { return ; } $ value = array_key_exists ( $ column , $ data ) ? $ data [ $ column ] : null ; $ colType = $ this -> _getColumnType ( $ column , $ model ) ; if ( $ colType == 'numeric' ) { $ this -> _validateNumber ( $ value , $ column ) ; return ; } $ this -> _validateString ( $ value , $ column ) ; }
Pass value along to more specific validate functions.

@param string        $column Column value
@param Garp_Model_Db $model The model
@param array         $data
@param bool          $onlyIfAvailable
@return void
Pass value along to more specific validate functions .