本文整理汇总了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;
}
示例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;
}
示例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;
}
示例4:
function __construct()
{
parent::__construct();
$this->_locked =& $this->_external;
}
示例5: CPackItemExamenLabo
function CPackItemExamenLabo()
{
parent::__construct();
$this->_locked =& $this->_external;
}
示例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 = "";
}
示例7:
/**
* constructor
*/
function __construct()
{
parent::__construct();
// Hack to simulate the activeness of the class which has no real module
$this->_ref_module = $this;
}