function __get($key)
 {
     if (isset($this->{$key})) {
         return $this->{$key};
     } elseif (in_array($key, $this->clinicalNoteTemplate->ORMFields())) {
         return $this->clinicalNoteTemplate->__get($key);
     }
     return parent::__get($key);
 }
Пример #2
0
 function __get($key)
 {
     if (in_array($key, $this->ORMFields())) {
         return $this->{$key};
     } elseif (in_array($key, $this->person->ORMFields())) {
         return $this->person->__get($key);
     } elseif (!is_null($this->person->__get($key))) {
         return $this->person->__get($key);
     }
     return parent::__get($key);
 }
Пример #3
0
 function __get($key)
 {
     if (isset($this->{$key})) {
         return $this->{$key};
     } elseif (in_array($key, $this->clinicalNoteDefinition->ORMFields())) {
         return $this->clinicalNoteDefinition->__get($key);
     }
     /*elseif (!is_null($this->clinicalNoteDefinition->__get($key))) {
     			return $this->clinicalNoteDefinition->__get($key);
     		}*/
     return parent::__get($key);
 }
Пример #4
0
 public function __get($key)
 {
     if (in_array($key, $this->ORMFields())) {
         return $this->{$key};
     } elseif (in_array($key, $this->provider->ORMFields())) {
         return $this->provider->__get($key);
     } elseif (in_array($key, $this->room->ORMFields())) {
         return $this->room->__get($key);
     } elseif (!is_null(parent::__get($key))) {
         return parent::__get($key);
     } elseif (!is_null($this->provider->__get($key))) {
         return $this->provider->__get($key);
     } elseif (!is_null($this->room->__get($key))) {
         return $this->room->__get($key);
     }
     return parent::__get($key);
 }