Exemplo n.º 1
0
 public static function getInstance()
 {
     if (!isset(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Exemplo n.º 2
0
 public function howLongAgo($date, $ago = null)
 {
     if ($ago === null) {
         $ago = Zmz_Translate::_('ago');
     }
     $string = Zmz_Date::getHowLongAgo($date, $ago);
     $html = '<span title="' . Zmz_Date::printDate($date, Zmz_Date::getLocaleDateTimeFormat('medium')) . '">' . $string . '</span>';
     return $html;
 }
Exemplo n.º 3
0
 public function _($string)
 {
     return $this->translate->_($string, $this->escape);
 }
Exemplo n.º 4
0
 public static function getSelectStringForSelect($string = null)
 {
     if ($string === null) {
         $string = strtolower(Zmz_Translate::_('Select'));
     }
     return array('' => '---' . $string . '---');
 }