__construct() public méthode

public __construct ( )
Exemple #1
0
 /**
  * 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();
 }
Exemple #2
0
 public function __construct($aComponents = array(), $sSeparator = ',', $iLineNo = 0)
 {
     parent::__construct($iLineNo);
     if (!is_array($aComponents)) {
         $aComponents = array($aComponents);
     }
     $this->aComponents = $aComponents;
     $this->sSeparator = $sSeparator;
 }
Exemple #3
0
 /**
  * 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);
 }
 public function __construct($value = null)
 {
     parent::__construct();
     $this->value = $value;
 }
 public function __construct($value = NULL, $ValueType = NULL)
 {
     if (get_parent_class('TextValue')) {
         parent::__construct();
     }
     $this->value = $value;
     $this->ValueType = $ValueType;
 }
 public function __construct($value = NULL, $ValueType = NULL)
 {
     parent::__construct();
     $this->value = $value;
     $this->ValueType = $ValueType;
 }
Exemple #7
0
 /**
  * @param \DateTime $date Date.
  * @param float|int|null $value Result value.
  */
 public function __construct(\DateTime $date, $value)
 {
     $this->date = $date;
     parent::__construct($value);
 }
 public function __construct($value)
 {
     parent::__construct($value, ValueType::STRING);
 }
 public function __construct($value)
 {
     parent::__construct($value, ValueType::NUMBER);
 }
Exemple #10
0
 /**
  * @param string $type
  * @param mixed $value
  * @param string $alias
  */
 public function __construct($type, $value, $alias)
 {
     $this->alias = $alias;
     parent::__construct($type, $value);
 }
 public function __construct(&$object)
 {
     parent::__construct($object);
 }
Exemple #12
0
 public function __construct($field = null)
 {
     parent::__construct();
     $this->addDisallowedCharacterCode(ord(':'));
     $this->set(is_null($field) ? '' : $field);
 }
 public function __construct($iLineNo = 0)
 {
     parent::__construct($iLineNo);
 }
 public function __construct($value)
 {
     parent::__construct($value, ValueType::BOOLEAN);
 }