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


PHP CMbObject::__construct方法代码示例

本文整理汇总了PHP中CMbObject::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP CMbObject::__construct方法的具体用法?PHP CMbObject::__construct怎么用?PHP CMbObject::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CMbObject的用法示例。


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

示例1:

 /**
  * Standard constructor
  */
 function __construct()
 {
     parent::__construct();
     static $score_possum_physio = null;
     if (!$score_possum_physio) {
         $score_possum_physio = $this->getScorePhysio();
     }
     $this->_score_possum_physio =& $score_possum_physio;
     static $score_possum_oper = null;
     if (!$score_possum_oper) {
         $score_possum_oper = $this->getScoreOper();
     }
     $this->_score_possum_oper =& $score_possum_oper;
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:17,代码来源:CExamPossum.class.php

示例2: foreach

 /**
  * Constructeur de la classe, créé dynamiquement tous les champs
  */
 function __construct()
 {
     foreach (self::$list_constantes as $_constant => $_params) {
         $this->{$_constant} = null;
         // Champs "composites"
         if (isset($_params["formfields"])) {
             foreach ($_params["formfields"] as $_formfield) {
                 $this->{$_formfield} = null;
             }
         }
     }
     parent::__construct();
     // Conversion des specs
     if (self::$_specs_converted) {
         return;
     }
     $group = CGroups::loadCurrent();
     foreach (self::$list_constantes as $_params) {
         if (empty($_params["unit_config"])) {
             continue;
         }
         $unit_config = $_params["unit_config"];
         $unit = CAppUI::conf("dPpatients CConstantesMedicales {$unit_config}", $group);
         if ($unit == $_params["orig_unit"]) {
             continue;
         }
         if (isset($_params["formfields"]) && isset($_params["conversion"])) {
             $conv = $_params["conversion"][$unit];
             $func_min = create_function('$matches', "return 'min|'.\$matches[1]*{$conv};");
             $func_max = create_function('$matches', "return 'max|'.\$matches[1]*{$conv};");
             foreach ($_params["formfields"] as $_formfield) {
                 $spec = $this->_specs[$_formfield];
                 $spec->prop = preg_replace_callback("/min\\|([0-9]+)/", $func_min, $spec->prop);
                 $spec->prop = preg_replace_callback("/max\\|([0-9]+)/", $func_max, $spec->prop);
                 if (isset($spec->min)) {
                     $spec->min *= $conv;
                 }
                 if (isset($spec->max)) {
                     $spec->max *= $conv;
                 }
             }
         } else {
             trigger_error("Un champ avec conversion d'unité doit avoir au moins un 'formfield'");
         }
     }
     self::$_specs_converted = true;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:50,代码来源:CConstantesMedicales.class.php

示例3: array

 function __construct()
 {
     parent::__construct();
     static $dispo = null;
     if (!$dispo) {
         $dispo = array();
     }
     $this->_dispo =& $dispo;
     static $compat = null;
     if (!$compat) {
         $this->addCompat($compat, "ORT", "ORT", false, false);
         $this->addCompat($compat, "ORL", "ORL", false, false);
         $this->addCompat($compat, "OPH", "ORT", null, false);
         $this->addCompat($compat, "OPH", "OPH");
         $this->addCompat($compat, "DER", "ORT", false, false);
         $this->addCompat($compat, "DER", "OPH", false);
         $this->addCompat($compat, "DER", "DER", true, true);
         $this->addCompat($compat, "STO", "DER", null, false);
         $this->addCompat($compat, "STO", "STO");
         $this->addCompat($compat, "GAS", "DER", false, false);
         $this->addCompat($compat, "GAS", "GAS");
         $this->addCompat($compat, "ARE", "ORT", null, false);
         $this->addCompat($compat, "ARE", "ORL", null, false);
         $this->addCompat($compat, "ARE", "ORT", null, false);
         $this->addCompat($compat, "ARE", "OPH");
         $this->addCompat($compat, "ARE", "DER", null, false);
         $this->addCompat($compat, "ARE", "ARE");
         $this->addCompat($compat, "RAD", "ORT", null, false);
         $this->addCompat($compat, "RAD", "ORL", null, false);
         $this->addCompat($compat, "RAD", "ORT", null, false);
         $this->addCompat($compat, "RAD", "OPH");
         $this->addCompat($compat, "RAD", "DER", null, false);
         $this->addCompat($compat, "RAD", "ARE");
         $this->addCompat($compat, "RAD", "RAD");
         $this->addCompat($compat, "GYN", "ORT", null, false);
         $this->addCompat($compat, "GYN", "ORL", null, false);
         $this->addCompat($compat, "GYN", "ORT", null, false);
         $this->addCompat($compat, "GYN", "OPH");
         $this->addCompat($compat, "GYN", "DER", null, false);
         $this->addCompat($compat, "GYN", "RAD");
         $this->addCompat($compat, "GYN", "ARE");
         $this->addCompat($compat, "GYN", "GYN");
         $this->addCompat($compat, "GEN", "GEN");
     }
     $this->_compat =& $compat;
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:46,代码来源:CDiscipline.class.php

示例4:

 function __construct()
 {
     parent::__construct();
     $this->_locked =& $this->_external;
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:5,代码来源:CExamenLabo.class.php

示例5: CPackItemExamenLabo

 function CPackItemExamenLabo()
 {
     parent::__construct();
     $this->_locked =& $this->_external;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:5,代码来源:CPackItemExamenLabo.class.php

示例6:

 /**
  * The constructor
  *
  * @param CInteropActor $actor The actor
  *
  * @return self
  */
 function __construct($actor = null)
 {
     parent::__construct();
     if ($actor) {
         $this->setActor($actor);
     }
     $this->group_id = CGroups::loadCurrent()->_id;
     $this->state = self::STA1;
     $this->begin_date = CMbDT::dateTime();
     $this->messages = "";
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:18,代码来源:CDicomSession.class.php

示例7:

 /**
  * constructor
  */
 function __construct()
 {
     parent::__construct();
     // Hack to simulate the activeness of the class which has no real module
     $this->_ref_module = $this;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:9,代码来源:CModule.class.php


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