Textpattern | PHP Cross Reference | Content Management Systems |
Description: Textpack parser.
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Parser:: (6 methods):
__construct()
setLanguage()
setOwner()
parse()
getStrings()
getLanguages()
__construct() line: 59 |
Constructor. |
setLanguage($language) line: 69 |
Set the default language. param: string $language The language code |
setOwner($owner) line: 80 |
Set the default owner. param: string $owner The default owner |
parse($textpack, $group = null) line: 91 |
Convert a Textpack to an array. <code> $textpack = \Textpattern\Textpack\Parser(); print_r( $textpack->parse("string => translation") ); </code> return: array An array of translations param: string $textpack The Textpack param: string|array $group Only return strings with the given event(s) |
getStrings($lang_code) line: 226 |
Fetch the language strings extracted by the last-parsed Textpack. return: array |
getLanguages() line: 243 |
Fetch the list of languages used in the last-parsed Textpack. return: array |
title