本文整理汇总了PHP中WebVista_Model_ORM类的典型用法代码示例。如果您正苦于以下问题:PHP WebVista_Model_ORM类的具体用法?PHP WebVista_Model_ORM怎么用?PHP WebVista_Model_ORM使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WebVista_Model_ORM类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: persist
public function persist()
{
if ($this->_persistMode != WebVista_Model_ORM::DELETE && (int) $this->program_order === 0) {
$this->program_order = self::maxProgramOrder($this) + 1;
}
return parent::persist();
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:7,代码来源:InsuredRelationship.php
示例2: persist
public function persist()
{
$db = Zend_Registry::get('dbAdapter');
$reportBaseId = (int) $this->reportBaseId;
if ($this->_persistMode == self::DELETE) {
try {
$db->delete($this->_table, 'reportBaseId = ' . $reportBaseId);
$db->delete('reportQueries', 'reportBaseId = ' . $reportBaseId);
$db->delete('reportViews', 'reportBaseId = ' . $reportBaseId);
return true;
} catch (Exception $e) {
return false;
}
}
$data = $this->toArray();
unset($data['reportFilters']);
unset($data['reportQueries']);
unset($data['reportViews']);
if (strlen($data['guid']) <= 0) {
$data['guid'] = uniqid('', true);
}
if ($reportBaseId > 0) {
$ret = $db->update($this->_table, $data, 'reportBaseId = ' . $reportBaseId);
} else {
$this->reportBaseId = WebVista_Model_ORM::nextSequenceId();
$data['reportBaseId'] = $this->reportBaseId;
$ret = $db->insert($this->_table, $data);
}
return $ret;
}
开发者ID:jakedorst,项目名称:ch3-dev-preview,代码行数:30,代码来源:ReportBase.php
示例3: persist
/**
* Overrides WebVista_Model_ORM::persist()
*/
public function persist()
{
$order = (int) $this->order;
if (!$order > 0 && $this->_persistMode != WebVista_Model_ORM::DELETE) {
$db = Zend_Registry::get("dbAdapter");
$dbSelect = $db->select()->from($this->_table, "MAX(`order`) AS order");
$result = $db->fetchRow($dbSelect);
$this->order = $result['order'] + 1;
}
parent::persist();
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:14,代码来源:BarcodeMacro.php
示例4: persist
public function persist()
{
$db = Zend_Registry::get('dbAdapter');
$clinicalNoteTemplateId = (int) $this->clinicalNoteTemplateId;
$data = $this->toArray();
if ($clinicalNoteTemplateId > 0) {
$ret = $db->update($this->_table, $data, 'clinicalNoteTemplateId = ' . $clinicalNoteTemplateId);
} else {
$this->clinicalNoteTemplateId = WebVista_Model_ORM::nextSequenceId();
$data['clinicalNoteTemplateId'] = $this->clinicalNoteTemplateId;
$ret = $db->insert($this->_table, $data);
}
return $ret;
}
开发者ID:jakedorst,项目名称:ch3-dev-preview,代码行数:14,代码来源:ClinicalNoteTemplate.php
示例5: getIterator
public function getIterator($dbSelect = null)
{
if ($dbSelect === null) {
return $this->_getIteratorBy(1, 1);
}
return parent::getIterator($dbSelect);
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:7,代码来源:HealthStatusHandlerPatient.php
示例6: persist
public function persist()
{
if (!$this->dateTime || $this->dateTime == '0000-00-00 00:00:00') {
$this->dateTime = date('Y-m-d H:i:s');
}
return parent::persist();
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:7,代码来源:PatientVisitType.php
示例7: persist
public function persist()
{
if (!strlen($this->guid) > 0) {
$this->guid = str_replace('-', '', NSDR::create_guid());
}
return parent::persist();
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:7,代码来源:DiscountTable.php
示例8: __construct
public function __construct()
{
parent::__construct();
$this->audit = new Audit();
$this->audit->_cascadePersist = $this->_cascadePersist;
$this->handler = new Handler();
$this->handler->_cascadePersist = $this->_cascadePersist;
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:8,代码来源:ProcessingError.php
示例9: populate
public function populate()
{
$ret = parent::populate();
$this->patient->populate();
$this->provider->populate();
$this->pharmacy->populate();
return $ret;
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:8,代码来源:Medication.php
示例10: persist
public function persist()
{
$claimFileId = (int) $this->claimFileId;
if (!$claimFileId > 0) {
$this->claimFileId = $this->nextSequenceId('claimSequences');
}
return parent::persist();
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:8,代码来源:ClaimFile.php
示例11: getIterator
public function getIterator($dbSelect = null)
{
if ($dbSelect === null) {
$db = Zend_Registry::get('dbAdapter');
$dbSelect = $db->select()->from($this->_table)->where('handlerType = ?', $this->handlerType)->order('name');
}
return parent::getIterator($dbSelect);
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:8,代码来源:DataIntegration.php
示例12: __construct
public function __construct()
{
parent::__construct();
$this->building = new Building();
$this->building->_cascadePersist = false;
$this->provider = new Provider();
$this->provider->_cascadePersist = false;
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:8,代码来源:EPrescriber.php
示例13: __construct
public function __construct()
{
parent::__construct();
$this->insuranceProgram = new InsuranceProgram();
$this->insuranceProgram->_cascadePersist = $this->_cascadePersist;
$this->person = new Person();
$this->person->_cascadePersist = $this->_cascadePersist;
}
开发者ID:jakedorst,项目名称:ch3-dev-preview,代码行数:8,代码来源:InsuredRelationship.php
示例14: __construct
public function __construct()
{
parent::__construct();
$this->patient = new Patient();
$this->patient->_cascadePersist = $this->_cascadePersist;
$this->user = new User();
$this->user->_cascadePersist = $this->_cascadePersist;
}
开发者ID:jakedorst,项目名称:ch3-dev-preview,代码行数:8,代码来源:PatientNote.php
示例15: Medication
function __construct()
{
parent::__construct();
$this->medication = new Medication();
$this->medication->_cascadePersist = false;
$this->refillResponse = new MedicationRefillResponse();
$this->refillResponse->_cascadePersist = false;
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:8,代码来源:MedicationRefillRequest.php
示例16: __construct
public function __construct()
{
parent::__construct();
$this->company = new Company();
$this->company->_cascadePersist = $this->_cascadePersist;
$this->address = new Address();
$this->address->_cascadePersist = $this->_cascadePersist;
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:8,代码来源:InsuranceProgram.php
示例17: getIterator
public function getIterator($sqlSelect = null)
{
if ($sqlSelect === null) {
$db = Zend_Registry::get('dbAdapter');
$sqlSelect = $db->select()->from($this->_table)->order('dateTime DESC');
}
return parent::getIterator($sqlSelect);
}
开发者ID:jakedorst,项目名称:ch3-dev-preview,代码行数:8,代码来源:UpdateFile.php
示例18: populateByLabOrderId
public function populateByLabOrderId($labOrderId = null)
{
$db = Zend_Registry::get('dbAdapter');
if ($labOrderId === null) {
$labOrderId = $this->lab_order_id;
}
$sqlSelect = $db->select()->from($this->_table)->where('lab_order_id = ?', (int) $labOrderId)->limit(1);
return parent::populateWithSql($sqlSelect->__toString());
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:9,代码来源:LabTest.php
示例19: elseif
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);
}
开发者ID:dragonlet,项目名称:clearhealth,代码行数:9,代码来源:ClinicalNoteDefinition.php
示例20: 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
注:本文中的WebVista_Model_ORM类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论