public static function getInstance() { if (!isset(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }
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; }
public function _($string) { return $this->translate->_($string, $this->escape); }
public static function getSelectStringForSelect($string = null) { if ($string === null) { $string = strtolower(Zmz_Translate::_('Select')); } return array('' => '---' . $string . '---'); }