BabelKit Code Description Methods

[Perl Handle Creation] [Index] [HTML Select] ## BabelKit Code Description Methods These methods return a single code description value. ### Display Methods These display methods all perform `htmlspecialchars($code_desc)` on the code descriptions that they return. This translates ( & < " > ) into ( &amp; &lt; &quot; &gt; ) so that the actual characters will show on html pages. #### desc() `$code_desc = $babelkit->desc($code_set, $code_lang, $code_code);` desc() gets a code description for the language from the code set. If the language lacks a translation, it returns the native language description. If there is no description available, the code value is returned so that at least something gets displayed. #### ucfirst() `$Code_desc = $babelkit->ucfirst($code_set, $code_lang, $code_code);` Same as desc(), but returns the First word capitalized. #### ucwords() `$Code_Desc = $babelkit->ucwords($code_set, $code_lang, $code_code);` Same as desc(), but returns Each Word Capitalized. ### Data Methods These display methods return the raw code description value, not encoded for html display. This can be useful if a description contains html markup that you want rendered as markup! #### render() `$code_desc = $babelkit->render($code_set, $code_lang, $code_code);` The same as desc(), except that it does not do htmlspecialchars(). This allows the html tags to be rendered. #### data() `$code_desc = $babelkit->data($code_set, $code_lang, $code_code);` This returns the exact set/lang/code description requested, or else blank if it doesn't exist. #### param() `$parameter = $babelkit->param($code_set, $code_code);` Exactly the same as data(), except that it always returns the native language result, which is all there is for parameter code sets. Used for table driven operational parameters like the code_admin set. [Perl Handle Creation] [Index] [HTML Select]