Example #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();
 }
Example #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);
 }
Example #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();
 }
Example #4
0
 public function __construct(\mysqli $dbcon)
 {
     parent::__construct();
     $this->_handler = $dbcon;
     if ($this->_handler->connect_errno) {
         throw $this->_exception($this->_handler->connect_error);
     }
 }
Example #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();
 }
Example #6
0
 public function __construct()
 {
     $this->_ip = h\string('');
     $this->_cookie = h\collection();
     parent::__construct();
 }
Example #7
0
 public function __construct(h\string $charset)
 {
     $this->_charset = clone $charset;
     parent::__construct();
 }
Example #8
0
 public function __construct($operand)
 {
     $this->_stack = h\collection();
     parent::__construct();
     $this->stack[] = $operand;
 }
Example #9
0
 public function __construct()
 {
     $this->_factories = new h\collection();
     parent::__construct();
 }
Example #10
0
 public function __construct(h\callback $callback, $expected_exception = false)
 {
     parent::__construct();
     $this->callback = $callback;
     $expected_exception and $this->expected_exception = $expected_exception;
 }
Example #11
0
 public function __construct(parser $parser, escaper $escaper)
 {
     $this->_parser = $parser;
     $this->_escaper = $escaper;
     parent::__construct();
 }
Example #12
0
 public function __construct()
 {
     $this->_object = new h\object_public();
     parent::__construct();
 }
Example #13
0
 public function __construct()
 {
     parent::__construct();
 }
Example #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);
 }
Example #15
0
 public function __construct(decorator $next = null)
 {
     $this->_next = $next;
     parent::__construct();
 }
Example #16
0
 public function __construct(h\service_provider $services)
 {
     $this->_data = new h\collection();
     $this->_services = $services;
     parent::__construct();
 }
Example #17
0
 public function __construct($specification)
 {
     $this->_specification = $specification;
     parent::__construct();
 }
Example #18
0
 public function __construct()
 {
     $this->_scheme = new h\uri\scheme();
     $this->_scheme_specific_part = new h\uri\scheme_specific_part();
     parent::__construct();
 }
Example #19
0
 public function __construct(\domelement $canvas)
 {
     $this->_canvas = $canvas;
     parent::__construct();
 }
Example #20
0
 public function __construct($inplace = null)
 {
     parent::__construct();
     $this->_inplace = $inplace;
 }
Example #21
0
 public function __construct(h\configuration $configuration)
 {
     $this->_configuration = $configuration;
     parent::__construct();
 }
Example #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();
 }
Example #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();
 }