public function __construct($config = null) { parent::__construct(); $this->status(self::STATUS_NOTCONNECTED); if (is_array($config)) { $this->config($config); } }
public function __construct($file = null) { parent::__construct(); $this->_parser = \xml_parser_create(); \xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, true); \xml_set_object($this->_parser, $this); \xml_set_element_handler($this->_parser, array($this, 'startHandler'), array($this, 'endHandler')); \xml_set_character_data_handler($this->_parser, array($this, 'dataHandler')); if (DevValue::isNotNull($file)) { $this->file($file); $this->parseXML($file); } }
public function __construct($config = null) { parent::__construct($config); if (DevValue::isNotNull($config)) { if (DevArray::isAssoc($config)) { $this->config($config); $this->load($this->config('file')); } else { $this->load($config); } } $this->_cached = false; $this->dispatch(State::DRAFT); }
public function __construct($data = null) { parent::__construct(); if (DevValue::isNotNull($data)) { if (is_array($data)) { $this->config($data); } elseif ($this->stringIsDate($data)) { $this->date($data); } elseif (is_int($data)) { $data = $this->timestamp($data); $this->_data = $this->info($data); } else { $data = $this->timestamp(strtotime($data)); $this->_data = $this->info($data); } } else { $this->date(date($this->config('date_format'))); } }
public function __construct() { parent::__construct(); $this->_tasks = array(); }
public function __construct($config = null) { parent::__construct($config); }