本文整理匯總了PHP中Variable::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Variable::__construct方法的具體用法?PHP Variable::__construct怎麽用?PHP Variable::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Variable
的用法示例。
在下文中一共展示了Variable::__construct方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct($name, $byRef, $scope = self::SCOPE_GLOBAL, $extra = null)
{
parent::__construct($name);
$this->byRef = (bool) $byRef;
$this->scope = $scope;
$this->extra = $extra;
}
示例2: __construct
public function __construct($id = '')
{
parent::__construct();
if ($id > 0) {
if (!$this->charger_id($id)) {
throw new TheliaAdminException("Variable not found", TheliaAdminException::VARIABLE_NOT_FOUND);
}
}
}
示例3: __construct
public function __construct($nom, $titre, $label, $defaut, $type)
{
parent::__construct();
$this->nom = $nom;
$this->titre = $titre;
$this->label = $label;
$this->defaut = $defaut;
$this->type = $type;
$this->charger();
}
示例4: __construct
/**
*
*/
public function __construct($domain, $section, $variable)
{
parent::__construct($domain, $section, $variable);
}
示例5: __construct
/**
* Construct the Variable object
* @param string $key The variable name
* @param string $value The variable's value
* @param integer $type Integer value of the type (@see Type)
*/
public function __construct($key, $value, $type)
{
parent::__construct($value, $type);
$this->key = $key;
}
示例6: __construct
/**
* VariableProperty class constructor.
*
* @param Variable $parent Parent Variable instance
* @param string $name Property name
* @param mixed $value Default Property value (default: null)
*/
public function __construct(Variable $parent, $name, $value = null)
{
$this->parent = $parent;
parent::__construct($name, $value);
}
示例7: __construct
public function __construct(&$key, $name, &$prior)
{
parent::__construct($name, $prior);
$this->_key =& $key;
}
示例8: __construct
/**
* Constructor
*
* @param string $name Name of variable
* @param \DateTime $date Value of variable
*/
public function __construct($name, \DateTime $date = null)
{
parent::__construct($name, $date);
}
示例9: __construct
public function __construct($value)
{
$this->value = $value;
parent::__construct();
}