本文整理汇总了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;
}
示例2: populate
public function populate()
{
$ret = parent::populate();
$this->patient->populate();
$this->provider->populate();
$this->pharmacy->populate();
return $ret;
}
示例3: populate
public function populate()
{
$ret = parent::populate();
$this->reportFilters = array();
if (strlen($this->filters) > 0) {
$this->reportFilters = unserialize($this->filters);
}
return $ret;
}
示例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;
}
示例5: populate
public function populate()
{
$ret = parent::populate();
if ($this->building->buildingId > 0) {
$this->building->populate();
} else {
$this->_init();
}
return $ret;
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
}
示例10: populate
function populate()
{
$retval = parent::populate();
$this->_loadAddresses();
return $retval;
}
示例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;
}
示例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;
}
示例13: populate
public function populate()
{
$ret = parent::populate();
$this->practice->populate();
return $ret;
}
示例14: populate
public function populate()
{
parent::populate();
$this->building->populate();
}
示例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;
}