src/xPDO/Om/xPDOObject.php
public function getValidator() {
        if (!$this->_validator instanceof xPDOValidator) {
            $validatorClass = $this->getOption(xPDO::OPT_VALIDATOR_CLASS, null, 'xPDO\\Validation\\xPDOValidator');
            if ($validatorClass = $this->xpdo->loadClass($validatorClass, '', false, true)) {
                $this->_validator = new $validatorClass($this);
            }
        }
        return $this->_validator;
    }
public function getValidator() {
        if (!$this->_validator instanceof xPDOValidator) {
            $validatorClass = $this->getOption(xPDO::OPT_VALIDATOR_CLASS, null, 'xPDO\\Validation\\xPDOValidator');
            if ($validatorClass = $this->xpdo->loadClass($validatorClass, '', false, true)) {
                $this->_validator = new $validatorClass($this);
            }
        }
        return $this->_validator;
    }
public function getValidator ( ) { if ( ! $ this -> _validator instanceof xPDOValidator ) { $ validatorClass = $ this -> getOption ( xPDO :: OPT_VALIDATOR_CLASS , null , 'xPDO\\Validation\\xPDOValidator' ) ; if ( $ validatorClass = $ this -> xpdo -> loadClass ( $ validatorClass , '' , false , true ) ) { $ this -> _validator = new $ validatorClass ( $ this ) ; } } return $ this -> _validator ; }
Get the xPDOValidator class configured for this instance.

@return xPDOValidator|null The xPDOValidator instance or null if it could
not be loaded.
Get the xPDOValidator class configured for this instance .