/** * * Creates a new Workspace object, given an active session (i.e. PersistenceManager). * @param generic $pm the active PersistenceManager. * */ public function __construct(&$pm) { $this->pm =& $pm; $this->workspace = $pm->getWorkspace(); }
/** * * Creates a new Query object, given an active PersistenceManager and valid query statement. * @param generic $pm the active PersistenceManager. * @param string $statement the query statement. * */ public function __construct(&$pm, $statement) { $this->pm =& $pm; $this->statement = $statement; $this->workspace = $pm->getWorkspace(); }