Ejemplo n.º 1
0
 protected function setupDefaultFormat($locale = null)
 {
     parent::setupDefaultFormat($locale);
     $this->format = $this->getLanguage()['time_format'];
 }
Ejemplo n.º 2
0
 /**
  * (PHP 5 &gt;= 5.1.0)<br/>
  * Constructs the object
  * @link http://php.net/manual/en/serializable.unserialize.php
  * @param string $serialized <p>
  *                           The string representation of the object.
  * </p>
  * @return mixed the original value unserialized.
  */
 public function unserialize($serialized)
 {
     parent::__construct($serialized);
     $this->setupDefaultFormat();
     return $this;
 }