Example #1
0
 public function testValue()
 {
     $property = new generic('TestProperty', 'TestValue');
     $property->setValue('AValue');
     $this->assertEquals('AValue', $property->getValue());
 }
Example #2
0
<?php

include '../model/users.php';
$user = new generic();
$opt = new stdClass();
$opt->token = $_GET['token'];
$user->activeUser($opt);
Example #3
0
 /**
  * 
  * 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();
 }
Example #4
0
 /**
  * 
  * 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();
 }