Ejemplo n.º 1
0
 public function __construct($name, $byRef, $scope = self::SCOPE_GLOBAL, $extra = null)
 {
     parent::__construct($name);
     $this->byRef = (bool) $byRef;
     $this->scope = $scope;
     $this->extra = $extra;
 }
 public function __construct($id = '')
 {
     parent::__construct();
     if ($id > 0) {
         if (!$this->charger_id($id)) {
             throw new TheliaAdminException("Variable not found", TheliaAdminException::VARIABLE_NOT_FOUND);
         }
     }
 }
 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();
 }
Ejemplo n.º 4
0
 /**
  * 
  */
 public function __construct($domain, $section, $variable)
 {
     parent::__construct($domain, $section, $variable);
 }
Ejemplo n.º 5
0
 /**
  * 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;
 }
Ejemplo n.º 6
0
 /**
  * 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);
 }
Ejemplo n.º 7
0
 public function __construct(&$key, $name, &$prior)
 {
     parent::__construct($name, $prior);
     $this->_key =& $key;
 }
Ejemplo n.º 8
0
 /**
  * Constructor
  *
  * @param string    $name Name of variable
  * @param \DateTime $date Value of variable
  */
 public function __construct($name, \DateTime $date = null)
 {
     parent::__construct($name, $date);
 }
Ejemplo n.º 9
0
 public function __construct($value)
 {
     $this->value = $value;
     parent::__construct();
 }