当前位置: 首页>>代码示例>>PHP>>正文


PHP ORDataObject类代码示例

本文整理汇总了PHP中ORDataObject的典型用法代码示例。如果您正苦于以下问题:PHP ORDataObject类的具体用法?PHP ORDataObject怎么用?PHP ORDataObject使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ORDataObject类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: X12Partner

 /**
  * Constructor sets all Insurance attributes to their default value
  */
 function X12Partner($id = "", $prefix = "")
 {
     parent::ORDataObject();
     $this->id = $id;
     $this->_table = "x12_partners";
     $this->processing_format_array = $this->_load_enum("processing_format", false);
     $this->processing_format = $this->processing_format_array[0];
     //most recent x12 version mandated by HIPAA and CMS
     $this->x12_version = "004010X098A1";
     $this->x12_isa05 = "ZZ";
     $this->x12_isa07 = "ZZ";
     $this->x12_isa14 = "0";
     if ($id != "") {
         $this->populate();
     }
 }
开发者ID:stephen-smith,项目名称:openemr,代码行数:19,代码来源:X12Partner.class.php

示例2: ajaxComplete

 function ajaxComplete($appointmentId, $nextStationId, $fromStationId)
 {
     $app = ORDataObject::factory('Appointment', (int) $appointmentId);
     if ($app->get('patient_id') > 0) {
         $this->ajaxNextStation((int) $appointmentId, (int) $nextStationId, (int) $fromStationId);
         $personId = $app->get('patient_id');
         $db = Celini::dbInstance();
         $sql = "INSERT into routing_archive select * from routing where person_id = " . (int) $personId;
         $db->execute($sql);
         $sql = "DELETE from routing where person_id = " . (int) $personId;
         $db->execute($sql);
     }
 }
开发者ID:jakedorst,项目名称:ch3-dev-preview,代码行数:13,代码来源:RoutingController.php

示例3: populate

 function populate()
 {
     parent::populate();
     $ic = new InsuranceCompany($this->insurance_company_id);
     $this->insurance_company_name = $ic->get_name();
     $ic = null;
 }
开发者ID:aaricpittman,项目名称:openemr,代码行数:7,代码来源:InsuranceNumbers.class.php

示例4: persist

 function persist()
 {
     parent::persist();
     if (is_numeric($this->id) and !empty($this->checks)) {
         $sql = "delete FROM form_review_of_systems_checks where foreign_id = '" . $this->id . "'";
         sqlQuery($sql);
         foreach ($this->checks as $check) {
             if (!empty($check)) {
                 $sql = "INSERT INTO form_review_of_systems_checks set foreign_id='" . mysql_real_escape_string($this->id) . "', name = '" . mysql_real_escape_string($check) . "'";
                 sqlQuery($sql);
                 //echo "$sql<br>";
             }
         }
     }
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:15,代码来源:FormReviewOfSystems.class.php

示例5: persist

 function persist()
 {
     parent::persist();
 }
开发者ID:stephen-smith,项目名称:openemr,代码行数:4,代码来源:FormVitals.class.php

示例6: persist

 function persist()
 {
     parent::persist();
     $this->address->persist($this->id);
     foreach ($this->phone_numbers as $phone) {
         $phone->persist($this->id);
     }
 }
开发者ID:sivarajankumar,项目名称:openemr,代码行数:8,代码来源:InsuranceCompany.class.php

示例7: persist

 function persist($fid = "")
 {
     if (!empty($fid)) {
         $this->foreign_id = $fid;
     }
     parent::persist();
 }
开发者ID:aaricpittman,项目名称:openemr,代码行数:7,代码来源:Address.class.php

示例8: persist

 /**
  * @brief Store the current structure members representing the form into the database.
  */
 function persist()
 {
     /* Run our parent's implementation. */
     parent::persist();
 }
开发者ID:katopenzz,项目名称:openemr,代码行数:8,代码来源:AbstractClickmapModel.php

示例9: persist

 function persist()
 {
     parent::persist();
     if (is_numeric($this->id) and !empty($this->checks)) {
         $sql = "delete FROM form_hp_tje_checks where foreign_id = '" . $this->id . "'";
         sqlQuery($sql);
         foreach ($this->checks as $check) {
             if (!empty($check)) {
                 $sql = "INSERT INTO form_hp_tje_checks set foreign_id='" . add_escape_custom($this->id) . "', name = '" . add_escape_custom($check) . "'";
                 sqlQuery($sql);
                 //echo "$sql<br>";
             }
         }
     }
     if (is_numeric($this->id) and !empty($this->history)) {
         $sql = "delete FROM form_hp_tje_history where foreign_id = '" . $this->id . "'";
         sqlQuery($sql);
         foreach ($this->history as $history) {
             if (!empty($history)) {
                 $sql = "INSERT INTO form_hp_tje_history set foreign_id='" . add_escape_custom($this->id) . "'" . ", doctor = '" . add_escape_custom($history['doctor']) . "'" . ", specialty = '" . add_escape_custom($history['specialty']) . "'" . ", tx_rendered = '" . add_escape_custom($history['tx_rendered']) . "'" . ", effectiveness = '" . add_escape_custom($history['effectiveness']) . "'" . ", date = '" . add_escape_custom($history['date']) . "'";
                 sqlQuery($sql);
                 //echo "$sql<br>";
             }
         }
     }
     if (is_numeric($this->id) and !empty($this->previous_accidents)) {
         $sql = "delete FROM form_hp_tje_previous_accidents where foreign_id = '" . $this->id . "'";
         sqlQuery($sql);
         foreach ($this->previous_accidents as $pa) {
             if (!empty($pa)) {
                 $sql = "INSERT INTO form_hp_tje_previous_accidents set foreign_id='" . add_escape_custom($this->id) . "', nature_of_accident = '" . add_escape_custom($pa['nature_of_accident']) . "'" . ", injuries = '" . add_escape_custom($pa['injuries']) . "'" . ", date = '" . add_escape_custom($pa['date']) . "'";
                 sqlQuery($sql);
                 //echo "$sql<br>";
             }
         }
     }
 }
开发者ID:aaricpittman,项目名称:openemr,代码行数:37,代码来源:FormHpTjePrimary.class.php

示例10: populate

 function populate()
 {
     parent::populate();
 }
开发者ID:mi-squared,项目名称:openemr,代码行数:4,代码来源:Prescription.class.php

示例11: persist

 function persist()
 {
     parent::persist();
     if (is_numeric($this->id) and !empty($this->checks)) {
         $sql = "delete FROM form_evaluation_checks where foreign_id = '" . $this->id . "'";
         sqlQuery($sql);
         foreach ($this->checks as $check) {
             if (!empty($check)) {
                 $sql = "INSERT INTO form_evaluation_checks set foreign_id='" . add_escape_custom($this->id) . "', name = '" . add_escape_custom($check) . "'";
                 sqlQuery($sql);
                 //echo "$sql<br>";
             }
         }
     }
 }
开发者ID:aaricpittman,项目名称:openemr,代码行数:15,代码来源:FormEvaluation.class.php


注:本文中的ORDataObject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。