本文整理汇总了PHP中Unit::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Unit::__construct方法的具体用法?PHP Unit::__construct怎么用?PHP Unit::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Unit
的用法示例。
在下文中一共展示了Unit::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($result = null, Error $error = null, $id = null)
{
if ($result === null && $error === null) {
throw new \LogicException('Result or error must be defined.');
}
parent::__construct($id);
$this->result = $result;
$this->error = $error;
}
示例2: array
function __construct($props = array())
{
parent::__construct('tree', $props);
if (!empty($this->props['node']['module_id_name']) && $this->props['node']['module_id_name'] != 'tree') {
if (inc_u($this->props['node']['module_id_name'])) {
$unitName = ucfirst($this->props['node']['module_id_name']) . 'Unit';
$this->subunit = new $unitName($this->props);
$this->subunit_service = true;
} else {
$this->subunit = new Unit($this->props['node']['module_id_name'], $this->props);
$this->subunit_service = false;
}
}
}
示例3: __construct
public function __construct()
{
parent::__construct("Kilómetros cuadrados", "km2", "area");
}
示例4: __construct
/**
* @inheritdoc
*/
public function __construct($data)
{
parent::__construct($data);
$this->mark = $data['mark'];
}
示例5: array
function __construct($aProperties = array())
{
parent::__construct('auth', $aProperties);
$this->initializeUser();
}
示例6: array
function __construct($props = array())
{
parent::__construct('maillist', $props);
}
示例7: __construct
/**
* @inheritdoc
*/
public function __construct($data)
{
parent::__construct($data);
$this->specialistLevel = $data['specialistLevel'];
}
示例8: __construct
public function __construct($method, $params = null, $id = null)
{
parent::__construct($id);
$this->method = $method;
$this->params = $params;
}
示例9: __construct
public function __construct($aProperties = array())
{
parent::__construct('cart', $aProperties);
$this->smarty->assign('sess_name', session_name());
$this->smarty->assign('sess_id', session_id());
}
示例10:
function __construct($id, $phenomena, $name, $symbol = null)
{
//parent::Create($phenomena, $name, $symbol);
parent::__construct($id, $phenomena, $name, $symbol);
//Good or service/virtual product
}
示例11: array
function __construct($name, $props = array())
{
parent::__construct($name, $props);
}