Exemplo n.º 1
0
 public function __construct($year = 0, $month = 0, $day = 0)
 {
     $this->_day = (int) $day;
     $this->_month = (int) $month;
     $this->_year = (int) $year;
     parent::__construct();
 }
Exemplo n.º 2
0
 public function __construct(h\string $charset)
 {
     $this->_charset = clone $charset;
     parent::__construct();
     $this->escapers['text'] = new h\escaper\html\text($this->_charset);
     $this->escapers['attribute'] = new h\escaper\html\attribute($this->_charset);
 }
Exemplo n.º 3
0
 public function __construct($name)
 {
     $this->_providers = new h\collection();
     $this->_cases = new h\collection();
     $this->_name = h\string($name);
     parent::__construct();
     $this->run();
 }
Exemplo n.º 4
0
 public function __construct(\mysqli $dbcon)
 {
     parent::__construct();
     $this->_handler = $dbcon;
     if ($this->_handler->connect_errno) {
         throw $this->_exception($this->_handler->connect_error);
     }
 }
Exemplo n.º 5
0
 /** If no $charset parameter provided, the ctor try to determines it from the $copied parameter. When a $copied
  *	parameter is provided, the ctor checks the type and decide what to do with. If the parameter can't be cast, an
  *	exception can be raised.
  *	\param	$copied		(any|null)		copied thing
  *	\param	$charset	(string|null)	\see _auto_charset()
  */
 public function __construct($copied = null, $charset = null)
 {
     parent::__construct();
     if (!is_null($copied)) {
         $copied = (string) $copied;
     }
     if (!is_null($charset) && !is_string($charset)) {
         throw $this->_exception('charset');
     }
     $this->scalar = $copied;
     $this->charset = $charset;
     $this->_auto_charset();
 }
Exemplo n.º 6
0
 public function __construct()
 {
     $this->_ip = h\string('');
     $this->_cookie = h\collection();
     parent::__construct();
 }
Exemplo n.º 7
0
 public function __construct(h\string $charset)
 {
     $this->_charset = clone $charset;
     parent::__construct();
 }
Exemplo n.º 8
0
 public function __construct($operand)
 {
     $this->_stack = h\collection();
     parent::__construct();
     $this->stack[] = $operand;
 }
Exemplo n.º 9
0
 public function __construct()
 {
     $this->_factories = new h\collection();
     parent::__construct();
 }
Exemplo n.º 10
0
 public function __construct(h\callback $callback, $expected_exception = false)
 {
     parent::__construct();
     $this->callback = $callback;
     $expected_exception and $this->expected_exception = $expected_exception;
 }
Exemplo n.º 11
0
 public function __construct(parser $parser, escaper $escaper)
 {
     $this->_parser = $parser;
     $this->_escaper = $escaper;
     parent::__construct();
 }
Exemplo n.º 12
0
 public function __construct()
 {
     $this->_object = new h\object_public();
     parent::__construct();
 }
Exemplo n.º 13
0
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 14
0
 protected function _call($method_name, $arguments)
 {
     foreach ($this->_sources as $source) {
         try {
             return call_user_func_array(array($source, $method_name), $arguments);
         } catch (h\exception_method_not_exists $e) {
             // This method doesn't exist, pass away to the next source
             // XXX should log that for debug?
         }
     }
     parent::_call($method_name, $arguments);
 }
Exemplo n.º 15
0
 public function __construct(decorator $next = null)
 {
     $this->_next = $next;
     parent::__construct();
 }
Exemplo n.º 16
0
 public function __construct(h\service_provider $services)
 {
     $this->_data = new h\collection();
     $this->_services = $services;
     parent::__construct();
 }
Exemplo n.º 17
0
 public function __construct($specification)
 {
     $this->_specification = $specification;
     parent::__construct();
 }
Exemplo n.º 18
0
 public function __construct()
 {
     $this->_scheme = new h\uri\scheme();
     $this->_scheme_specific_part = new h\uri\scheme_specific_part();
     parent::__construct();
 }
Exemplo n.º 19
0
 public function __construct(\domelement $canvas)
 {
     $this->_canvas = $canvas;
     parent::__construct();
 }
Exemplo n.º 20
0
 public function __construct($inplace = null)
 {
     parent::__construct();
     $this->_inplace = $inplace;
 }
Exemplo n.º 21
0
 public function __construct(h\configuration $configuration)
 {
     $this->_configuration = $configuration;
     parent::__construct();
 }
Exemplo n.º 22
0
 public function __construct()
 {
     $this->_name = new h\string();
     $this->_email = new h\string();
     $this->_created = h\today();
     $this->_modified = h\today();
     parent::__construct();
 }
Exemplo n.º 23
0
 public function __construct(h\crud_controller $ctrl, h\string $name, h\string $class)
 {
     $this->_ctrl = $ctrl;
     $this->_class = $class;
     $this->_name = $name;
     parent::__construct();
 }