Ejemplo n.º 1
0
 protected function __set($name, $value)
 {
     switch ($name) {
         case 'note_by_id':
             $this->id = $value;
             break;
         default:
             parent::__set($name, $value);
             break;
     }
 }
Ejemplo n.º 2
0
 protected function __set($name, $value)
 {
     switch ($name) {
         case 'org_code':
             $this->id = $value;
             break;
         case 'org_name':
             $this->name = $value;
             break;
         default:
             parent::__set($name, $value);
             break;
     }
 }
Ejemplo n.º 3
0
 protected function __get($name)
 {
     error_logging('DEBUG', "Calling WrmsWorkRequest.__get with {$name}");
     switch ($name) {
         case 'timesheets':
             if ($this->timesheets == null) {
                 $this->populateChildren();
             }
             return $this->timesheets;
             break;
         case 'notes':
             if ($this->notes == null) {
                 $this->populateChildren();
             }
             return $this->notes;
             break;
     }
     parent::__get($name);
 }