コード例 #1
0
ファイル: WrmsQuote.php プロジェクト: Br3nda/medusa
 protected function __set($name, $value)
 {
     switch ($name) {
         case 'note_by_id':
             $this->id = $value;
             break;
         default:
             parent::__set($name, $value);
             break;
     }
 }
コード例 #2
0
ファイル: WrmsOrganisation.php プロジェクト: Br3nda/medusa
 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;
     }
 }
コード例 #3
0
ファイル: WrmsWorkRequest.php プロジェクト: Br3nda/medusa
 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);
 }