本文整理匯總了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);
}