src/xPDO/xPDO.php
public function getObject($className, $criteria= null, $cacheFlag= true) {
        $instance= null;
        $this->sanitizePKCriteria($className, $criteria);
        if ($criteria !== null) {
            $instance = $this->call($className, 'load', array(& $this, $className, $criteria, $cacheFlag));
        }
        return $instance;
    }
public function getObject($className, $criteria= null, $cacheFlag= true) {
        $instance= null;
        $this->sanitizePKCriteria($className, $criteria);
        if ($criteria !== null) {
            $instance = $this->call($className, 'load', array(& $this, $className, $criteria, $cacheFlag));
        }
        return $instance;
    }
public function getObject ( $ className , $ criteria = null , $ cacheFlag = true ) { $ instance = null ; $ this -> sanitizePKCriteria ( $ className , $ criteria ) ; if ( $ criteria !== null ) { $ instance = $ this -> call ( $ className , 'load' , array ( & $ this , $ className , $ criteria , $ cacheFlag ) ) ; } return $ instance ; }
Retrieves a single object instance by the specified criteria.

The criteria can be a primary key value, and array of primary key values
(for multiple primary key objects) or an {@link xPDOCriteria} object. If
no $criteria parameter is specified, no class is found, or an object
cannot be located by the supplied criteria, null is returned.

@uses xPDOObject::load()
@param string $className Name of the class to get an instance of.
@param mixed $criteria Primary key of the record or a xPDOCriteria object.
@param mixed $cacheFlag If an integer value is provided, this specifies
the time to live in the object cache; if cacheFlag === false, caching is
ignored for the object and if cacheFlag === true, the object will live in
cache indefinitely.
@return Om\xPDOObject|null An instance of the class, or null if it could not be
instantiated.
Retrieves a single object instance by the specified criteria .