src/xPDO/xPDO.php
public function newQuery($class, $criteria= null, $cacheFlag= true) {
        $xpdoQueryClass= '\\xPDO\\Om\\' . $this->config['dbtype'] . '\\xPDOQuery';
        if ($query= new $xpdoQueryClass($this, $class, $criteria)) {
            $query->cacheFlag= $cacheFlag;
        }
        return $query;
    }
public function newQuery($class, $criteria= null, $cacheFlag= true) {
        $xpdoQueryClass= '\\xPDO\\Om\\' . $this->config['dbtype'] . '\\xPDOQuery';
        if ($query= new $xpdoQueryClass($this, $class, $criteria)) {
            $query->cacheFlag= $cacheFlag;
        }
        return $query;
    }
public function newQuery ( $ class , $ criteria = null , $ cacheFlag = true ) { $ xpdoQueryClass = '\\xPDO\\Om\\' . $ this -> config [ 'dbtype' ] . '\\xPDOQuery' ; if ( $ query = new $ xpdoQueryClass ( $ this , $ class , $ criteria ) ) { $ query -> cacheFlag = $ cacheFlag ; } return $ query ; }
Creates an new xPDOQuery for a specified xPDOObject class.

@param string $class The class to create the xPDOQuery for.
@param mixed $criteria Any valid xPDO criteria expression.
@param boolean|integer $cacheFlag Indicates if the result should be cached
and optionally for how many seconds (if passed an integer greater than 0).
@return Om\xPDOQuery The resulting xPDOQuery instance or false if unsuccessful.
Creates an new xPDOQuery for a specified xPDOObject class .