public function populate()
 {
     $ret = parent::populate();
     // cascade populate fix
     $this->subscriber->personId = (int) $this->subscriberId;
     $this->subscriber->populate();
     return $ret;
 }
Esempio n. 2
0
 public function populate()
 {
     $ret = parent::populate();
     $this->patient->populate();
     $this->provider->populate();
     $this->pharmacy->populate();
     return $ret;
 }
Esempio n. 3
0
 public function populate()
 {
     $ret = parent::populate();
     $this->reportFilters = array();
     if (strlen($this->filters) > 0) {
         $this->reportFilters = unserialize($this->filters);
     }
     return $ret;
 }
Esempio n. 4
0
 public function populate()
 {
     parent::populate();
     $this->primaryAddress = $this->_loadAddress(4);
     //4 is primary address
     $this->secondaryAddress = $this->_loadAddress(5);
     //4 is primary address
     return true;
 }
Esempio n. 5
0
 public function populate()
 {
     $ret = parent::populate();
     if ($this->building->buildingId > 0) {
         $this->building->populate();
     } else {
         $this->_init();
     }
     return $ret;
 }
Esempio n. 6
0
 public function populate()
 {
     parent::populate();
     $storageString = new StorageString();
     $storageString->foreignKey = $this->companyId;
     $storageString->valueKey = 'email';
     $storageString->arrayIndex = 1;
     // start index at 1, may have problem with ORM
     $storageString->populate();
     $this->_companyEmail = $storageString->value;
 }
Esempio n. 7
0
 public function populate()
 {
     parent::populate();
     $this->patient = new Patient();
     $this->patient->setPersonId($this->patientId);
     $this->patient->populate();
     $this->provider = new Provider();
     $this->provider->setPersonId($this->providerId);
     $this->provider->populate();
     $this->creator->userId = $this->creatorId;
     $this->creator->populate();
     $this->lastChange->userId = $this->lastChangeId;
     $this->lastChange->populate();
 }
Esempio n. 8
0
 public function populate()
 {
     if ($this->code != $this->patientId) {
         return parent::populate();
     }
     $x = explode(';', $this->code);
     $this->code = $x[0];
     if (isset($x[1])) {
         $this->patientId = (int) $x[1];
     }
     $db = Zend_Registry::get('dbAdapter');
     $sqlSelect = $db->select()->from($this->_table)->where('code = ?', (string) $this->code)->where('patientId = ?', (string) $this->patientId)->limit(1);
     $ret = $this->populateWithSql($sqlSelect->__toString());
     $this->postPopulate();
     return $ret;
 }
Esempio n. 9
0
 function populate()
 {
     parent::populate();
     $db = Zend_Registry::get('dbAdapter');
     $repSelect = $db->select()->from('reportQueries')->joinUsing('reportsToQueries', "reportQueryId")->where('reportsToQueries.reportId =' . (int) $this->id);
     foreach ($db->query($repSelect)->fetchAll() as $row) {
         $rq = new ReportQuery();
         $rq->populateWithArray($row);
         $this->reportQueries[] = $rq;
     }
     $repSelect = $db->select()->from('reportTemplates')->joinUsing('reportsToTemplates', "reportTemplateId")->where('reportsToTemplates.reportId =' . (int) $this->id);
     foreach ($db->query($repSelect)->fetchAll() as $row) {
         $rt = new ReportTemplate();
         $rt->populateWithArray($row);
         $this->reportTemplates[] = $rt;
     }
 }
Esempio n. 10
0
 function populate()
 {
     $retval = parent::populate();
     $this->_loadAddresses();
     return $retval;
 }
Esempio n. 11
0
 /**
  * Populate all the data and maps the result to this ORM properties
  *
  * @param boolean $actual TRUE when referring to actual ORM, FALSE when referring to ConfigItem (default to TRUE)
  * @return boolean
  */
 public function populate($actual = true)
 {
     if ($actual) {
         $this->_table = $this->_name;
         parent::populate();
         return true;
     }
     $ret = false;
     $this->_config->configId = $this->_name;
     $this->_config->populate();
     $formularyItem = unserialize($this->_config->value);
     if ($formularyItem !== false && $formularyItem instanceof self) {
         $this->populateWithItself($formularyItem);
         $ret = true;
     }
     return $ret;
 }
Esempio n. 12
0
 public function populate()
 {
     $ret = parent::populate();
     $this->primaryAddress->populateWithPracticeIdType();
     $this->secondaryAddress->populateWithPracticeIdType();
     $this->mainPhone->populateWithPracticeIdType();
     $this->secondaryPhone->populateWithPracticeIdType();
     $this->fax->populateWithPracticeIdType();
     return $ret;
 }
Esempio n. 13
0
 public function populate()
 {
     $ret = parent::populate();
     $this->practice->populate();
     return $ret;
 }
Esempio n. 14
0
 public function populate()
 {
     parent::populate();
     $this->building->populate();
 }
Esempio n. 15
0
 public function populate()
 {
     $parent = parent::populate();
     $person = $this->person->populate();
     $provider = $this->provider->populate();
     $this->object->messagingId = $this->messagingId;
     $object = $this->object->populate();
     return $parent || $person || $provider || $object;
 }
Esempio n. 16
0
 public function populate()
 {
     parent::populate();
     $this->practice->populate();
 }
 public function populate()
 {
     parent::populate();
     $this->_origName = $this->name;
 }
 public function populate()
 {
     $ret = parent::populate();
     $this->_origName = $this->name;
     return $ret;
 }