src/xPDO/xPDO.php
public function getCriteriaType($criteria) {
        $type = gettype($criteria);
        if ($type === 'object') {
            $type = get_class($criteria);
            if (!$criteria instanceof Om\xPDOCriteria) {
                $this->log(xPDO::LOG_LEVEL_WARN, "Invalid criteria object of class {$type} encountered.", '', __METHOD__, __FILE__, __LINE__);
                $type = null;
            } elseif ($criteria instanceof Om\xPDOQuery) {
                $type = 'xPDOQuery';
            } else {
                $type = 'xPDOCriteria';
            }
        }
        return $type;
    }
public function getCriteriaType($criteria) {
        $type = gettype($criteria);
        if ($type === 'object') {
            $type = get_class($criteria);
            if (!$criteria instanceof Om\xPDOCriteria) {
                $this->log(xPDO::LOG_LEVEL_WARN, "Invalid criteria object of class {$type} encountered.", '', __METHOD__, __FILE__, __LINE__);
                $type = null;
            } elseif ($criteria instanceof Om\xPDOQuery) {
                $type = 'xPDOQuery';
            } else {
                $type = 'xPDOCriteria';
            }
        }
        return $type;
    }
public function getCriteriaType ( $ criteria ) { $ type = gettype ( $ criteria ) ; if ( $ type === 'object' ) { $ type = get_class ( $ criteria ) ; if ( ! $ criteria instanceof Om \ xPDOCriteria ) { $ this -> log ( xPDO :: LOG_LEVEL_WARN , "Invalid criteria object of class {$type} encountered." , '' , __METHOD__ , __FILE__ , __LINE__ ) ; $ type = null ; } elseif ( $ criteria instanceof Om \ xPDOQuery ) { $ type = 'xPDOQuery' ; } else { $ type = 'xPDOCriteria' ; } } return $ type ; }
Validate and return the type of a specified criteria variable.

@param mixed $criteria An xPDOCriteria instance or any valid criteria variable.
@return string|null The type of valid criteria passed, or null if the criteria is not valid.
Validate and return the type of a specified criteria variable .