當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WebVista_Model_ORM::populate方法代碼示例

本文整理匯總了PHP中WebVista_Model_ORM::populate方法的典型用法代碼示例。如果您正苦於以下問題:PHP WebVista_Model_ORM::populate方法的具體用法?PHP WebVista_Model_ORM::populate怎麽用?PHP WebVista_Model_ORM::populate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WebVista_Model_ORM的用法示例。


在下文中一共展示了WebVista_Model_ORM::populate方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: populate

 public function populate()
 {
     $ret = parent::populate();
     // cascade populate fix
     $this->subscriber->personId = (int) $this->subscriberId;
     $this->subscriber->populate();
     return $ret;
 }
開發者ID:dragonlet,項目名稱:clearhealth,代碼行數:8,代碼來源:InsuredRelationship.php

示例2: populate

 public function populate()
 {
     $ret = parent::populate();
     $this->patient->populate();
     $this->provider->populate();
     $this->pharmacy->populate();
     return $ret;
 }
開發者ID:dragonlet,項目名稱:clearhealth,代碼行數:8,代碼來源:Medication.php

示例3: populate

 public function populate()
 {
     $ret = parent::populate();
     $this->reportFilters = array();
     if (strlen($this->filters) > 0) {
         $this->reportFilters = unserialize($this->filters);
     }
     return $ret;
 }
開發者ID:dragonlet,項目名稱:clearhealth,代碼行數:9,代碼來源:ReportBase.php

示例4: populate

 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;
 }
開發者ID:jakedorst,項目名稱:ch3-dev-preview,代碼行數:9,代碼來源:Practice.php

示例5: populate

 public function populate()
 {
     $ret = parent::populate();
     if ($this->building->buildingId > 0) {
         $this->building->populate();
     } else {
         $this->_init();
     }
     return $ret;
 }
開發者ID:dragonlet,項目名稱:clearhealth,代碼行數:10,代碼來源:Room.php

示例6: populate

 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;
 }
開發者ID:jakedorst,項目名稱:ch3-dev-preview,代碼行數:11,代碼來源:Company.php

示例7: populate

 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();
 }
開發者ID:jakedorst,項目名稱:ch3-dev-preview,代碼行數:14,代碼來源:Appointment.php

示例8: populate

 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;
 }
開發者ID:dragonlet,項目名稱:clearhealth,代碼行數:16,代碼來源:PatientEducation.php

示例9: populate

 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;
     }
 }
開發者ID:jakedorst,項目名稱:ch3-dev-preview,代碼行數:17,代碼來源:Report.php

示例10: populate

 function populate()
 {
     $retval = parent::populate();
     $this->_loadAddresses();
     return $retval;
 }
開發者ID:psoas,項目名稱:ch3-dev-preview,代碼行數:6,代碼來源:Patient.php

示例11: populate

 /**
  * 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;
 }
開發者ID:jakedorst,項目名稱:ch3-dev-preview,代碼行數:23,代碼來源:FormularyItem.php

示例12: populate

 public function populate()
 {
     $ret = parent::populate();
     $this->primaryAddress->populateWithPracticeIdType();
     $this->secondaryAddress->populateWithPracticeIdType();
     $this->mainPhone->populateWithPracticeIdType();
     $this->secondaryPhone->populateWithPracticeIdType();
     $this->fax->populateWithPracticeIdType();
     return $ret;
 }
開發者ID:dragonlet,項目名稱:clearhealth,代碼行數:10,代碼來源:Practice.php

示例13: populate

 public function populate()
 {
     $ret = parent::populate();
     $this->practice->populate();
     return $ret;
 }
開發者ID:dragonlet,項目名稱:clearhealth,代碼行數:6,代碼來源:Building.php

示例14: populate

 public function populate()
 {
     parent::populate();
     $this->building->populate();
 }
開發者ID:jakedorst,項目名稱:ch3-dev-preview,代碼行數:5,代碼來源:Room.php

示例15: populate

 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;
 }
開發者ID:dragonlet,項目名稱:clearhealth,代碼行數:9,代碼來源:Messaging.php


注:本文中的WebVista_Model_ORM::populate方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。