/**
  * Get the date/time of when the paper was started or paper default start time if not already started
  * @return DateTime When the exam was started for this lab
  */
 public function get_started_timestamp()
 {
     if ($this->start_timestamp === false) {
         return $this->property_object->get_start_date();
     } else {
         return $this->start_timestamp;
     }
 }
Example #2
0
 function __construct($ObjFactory)
 {
     parent::__construct(null);
     $this->BookObjFactory = $ObjFactory;
     $this->propertyTable['id'] = new propertyDef('id', null, 'int');
     $this->propertyTable['titel'] = new propertyDef('titel');
     $this->propertyTable['isbnnr'] = new propertyDef('isbnnr');
     $this->propertyTable['prijs'] = new propertyDef('prijs', null, 'double');
     $this->propertyTable['auteur'] = new propertyDef('auteur');
     $this->propertyTable['uitgever'] = new propertyDef('uitgever');
 }
Example #3
0
 function __construct($book = null, $aantal = null)
 {
     parent::__construct(null);
     $this->propertyTable['id'] = new propertyDef('id', null, 'int');
     $this->propertyTable['aantal'] = new propertyDef('aantal', null, 'double');
     $this->propertyTable['boek'] = new propertyDef(null, true, 'object');
     if (is_null($book) == false) {
         $this->createNew($book, $aantal);
     }
     return $this;
 }
Example #4
0
 function __construct($ordernr = null)
 {
     parent::__construct(null);
     $this->propertyTable['id'] = new propertyDef('id', null, 'int');
     $this->propertyTable['klantid'] = new propertyDef('klantid');
     $this->propertyTable['ordernr'] = new propertyDef('orderNr');
     $this->propertyTable['totaalaankoop'] = new propertyDef('totaalaankoop', null, 'double');
     $this->propertyTable['betaald'] = new propertyDef('betaald', null, 'bool');
     $this->propertyTable['geleverd'] = new propertyDef('betaald', null, 'bool');
     $this->propertyTable['assigned_books'] = new propertyDef(null, true, 'array');
     if (is_null($ordernr) == false) {
         $this->retrieveByOrderNr($ordernr);
     }
 }
Example #5
0
 function __construct($email)
 {
     parent::__construct(null);
     $this->propertyTable['id'] = new propertyDef('id', null, 'int');
     $this->propertyTable['emailadres'] = new propertyDef('emailadres');
     $this->propertyTable['passwoord'] = new propertyDef('passwoord');
     $this->propertyTable['leveradres'] = new propertyDef('leveradres');
     $this->propertyTable['loggedIn'] = new propertyDef(null, true, 'bool');
     // So this is a propery NOt in the database defined in logic here
     if (is_null($email) == false) {
         $this->retrieveByEmail($email);
     } else {
         $this->data = null;
     }
 }