src/xPDO/xPDO.php
public function getCriteria($className, $type= null, $cacheFlag= true) {
        return $this->newQuery($className, $type, $cacheFlag);
    }
public function getCriteria($className, $type= null, $cacheFlag= true) {
        return $this->newQuery($className, $type, $cacheFlag);
    }
public function getCriteria ( $ className , $ type = null , $ cacheFlag = true ) { return $ this -> newQuery ( $ className , $ type , $ cacheFlag ) ; }
Convert any valid criteria into an xPDOQuery instance.

@todo Get criteria pre-defined in an {@link xPDOObject} class metadata
definition by name.

@todo Define callback functions as an alternative to retreiving criteria
sql and/or bindings from the metadata.

@param string $className The class to get predefined criteria for.
@param string $type The type of criteria to get (you can define any
type you want, but 'object' and 'collection' are the typical criteria
for retrieving single and multiple instances of an object).
@param boolean|integer $cacheFlag Indicates if the result is cached and
optionally for how many seconds.
@return Om\xPDOCriteria A criteria object or null if not found.
Convert any valid criteria into an xPDOQuery instance .