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


PHP WebVista_Model_ORM類代碼示例

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


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

 public function getIterator($dbSelect = null)
 {
     if ($dbSelect === null) {
         return $this->_getIteratorBy(1, 1);
     }
     return parent::getIterator($dbSelect);
 }
開發者ID:dragonlet,項目名稱:clearhealth,代碼行數:7,代碼來源:HealthStatusHandlerPatient.php

示例4: 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

示例5: 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

示例6: __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

示例7: populate

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

示例8: 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

示例9: 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

示例10: __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

示例11: __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

示例12: __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

示例13: 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

示例14: __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

示例15: 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


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