Пример #1
0
 /**
  * Constructor
  * @param ... accepts variable arguments 'var1','var2'... variables to set initially
  * @throws InvalidArgumentException if any constants contain characters other
  * than [a-zA-Z0-9]
  */
 public function __construct()
 {
     parent::__construct(func_get_args());
     //..Hash the class name
     $this->hash = md5(__CLASS__);
     $this->inC = false;
 }
Пример #2
0
	public function __construct($set)
	{
		parent::__construct($set);
		$this->keys = array_keys($this->data);
		foreach( $this->keys as $key )
		{
			if ( array_key_exists( $key, $_GET ) )
			{
				$this->Mutate( $key, $_GET[$key] );
				$this->data[$key] = $_GET[$key];
			}
		}
	}
Пример #3
0
 public function __construct($x, $y, $hash)
 {
     parent::__construct($hash);
     $this->left = $x;
     $this->right = $y;
 }
Пример #4
0
 public function __construct($id)
 {
     parent::__construct($id);
 }