Example #1
0
 static function HelpText($ident, $return = false)
 {
     if (empty(self::$help_texts)) {
         $db = JFactory::getDBO();
         $qry = "SELECT * FROM #__fss_help_text WHERE published = 1";
         $db->setquery($qry);
         self::$help_texts = $db->loadObjectList("identifier");
         FSS_Translate_Helper::Tr(self::$help_texts);
     }
     if (!array_key_exists($ident, self::$help_texts)) {
         return "";
     }
     if ($return) {
         return self::$help_texts[$ident]->message;
     }
     echo self::$help_texts[$ident]->message;
 }