本文整理汇总了PHP中Value::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Value::__construct方法的具体用法?PHP Value::__construct怎么用?PHP Value::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Value
的用法示例。
在下文中一共展示了Value::__construct方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor.
*
* @since __DEPLOY_VERSION__
*/
public function __construct()
{
// Save time of object construction as a property.
// Convert microtime to string to avoid loss of precision due to overflow.
$parts = explode(' ', microtime());
$this->raisedon = sprintf('%d%03d', $parts[1], $parts[0] * 1000);
parent::__construct();
}
示例2: __construct
public function __construct($aComponents = array(), $sSeparator = ',', $iLineNo = 0)
{
parent::__construct($iLineNo);
if (!is_array($aComponents)) {
$aComponents = array($aComponents);
}
$this->aComponents = $aComponents;
$this->sSeparator = $sSeparator;
}
示例3: __construct
/**
* Set constructor.
*
* A Set object is immutable, and is used by Variables for comparing their
* Default values or facts from the current Context.
*
* @param mixed $set Immutable value represented by this Value object
*/
public function __construct($set)
{
parent::__construct($set);
if (!is_array($this->value)) {
if (is_null($this->value)) {
$this->value = array();
} else {
$this->value = array($this->value);
}
}
foreach ($this->value as &$value) {
if (is_array($value)) {
$value = new Set($value);
}
}
$this->value = array_unique($this->value);
}
示例4: __construct
public function __construct($value = null)
{
parent::__construct();
$this->value = $value;
}
示例5: __construct
public function __construct($value = NULL, $ValueType = NULL)
{
if (get_parent_class('TextValue')) {
parent::__construct();
}
$this->value = $value;
$this->ValueType = $ValueType;
}
示例6: __construct
public function __construct($value = NULL, $ValueType = NULL)
{
parent::__construct();
$this->value = $value;
$this->ValueType = $ValueType;
}
示例7: __construct
/**
* @param \DateTime $date Date.
* @param float|int|null $value Result value.
*/
public function __construct(\DateTime $date, $value)
{
$this->date = $date;
parent::__construct($value);
}
示例8: __construct
public function __construct($value)
{
parent::__construct($value, ValueType::STRING);
}
示例9: __construct
public function __construct($value)
{
parent::__construct($value, ValueType::NUMBER);
}
示例10: __construct
/**
* @param string $type
* @param mixed $value
* @param string $alias
*/
public function __construct($type, $value, $alias)
{
$this->alias = $alias;
parent::__construct($type, $value);
}
示例11: __construct
public function __construct(&$object)
{
parent::__construct($object);
}
示例12: __construct
public function __construct($field = null)
{
parent::__construct();
$this->addDisallowedCharacterCode(ord(':'));
$this->set(is_null($field) ? '' : $field);
}
示例13: __construct
public function __construct($iLineNo = 0)
{
parent::__construct($iLineNo);
}
示例14: __construct
public function __construct($value)
{
parent::__construct($value, ValueType::BOOLEAN);
}