public function testValue() { $property = new generic('TestProperty', 'TestValue'); $property->setValue('AValue'); $this->assertEquals('AValue', $property->getValue()); }
<?php include '../model/users.php'; $user = new generic(); $opt = new stdClass(); $opt->token = $_GET['token']; $user->activeUser($opt);
/** * * 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(); }