public function __construct($dbo, $data = false) { $this->dbo = $dbo; parent::__construct($data); $this->range = new \Models\Range($this->range); // Force to UTC + set defaults $this->range->from = isset($this->range->from) ? \Bolt\Epoch::convert($this->range->from, "Y-m-d\\TH:i:sP", "UTC") : "2014-08-10T00:00:00+00:00"; $this->range->to = \Bolt\Epoch::convert(isset($this->range->to) ? $this->range->to : \Bolt\Epoch::time(), "Y-m-d\\TH:i:sP", "UTC"); }
public function __construct($data = false) { if (gettype($data) == "object") { if (get_class($data) == "Models\\Dbo\\Log") { $data = $data->fromDbo(); } } parent::__construct($data); }
public function __construct(\Bolt\Dbo $dbo = null, $data = null) { if ($dbo === null) { global $dbo; } $this->dbo = $dbo; //\Bolt\Dbo parent::__construct($data); }
public function __construct(\Bolt\Eso $eso, $data = false) { $this->eso = $eso; parent::__construct($data); }