当前位置: 首页>>代码示例>>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;未经允许,请勿转载。