Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/vendors/Textpattern/Textpack/Parser.php - 158 lines - 3808 bytes - Source - Print

Description: Textpack parser.

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Parser:: (4 methods):
__construct()
setLanguage()
setOwner()
parse()

Class: Parser


__construct()  line: 51
Constructor.

setLanguage($language line: 61
Sets the default language.

param: string $language The language code
setOwner($owner line: 72
Sets the default owner.

param: string $owner The default owner
parse($textpack line: 83
Converts 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

title

Body