Text Class provided by System to get Texts from the Database.
| package |
SYSTEM\PAGE |
|---|
delete(string $id, string $lang = null) : boolean
stringId of the text
stringLanguage of the text
booleanReturns true or false
get(string $id, string $lang = NULL, boolean $fallback = true) : string
stringId of the text requested
stringLanguage for the requested text
booleanFallback to default language if textid is not found for the specified language.
stringReturns the text if found empty string if not.
get_adv(string $id, string $lang = NULL, boolean $fallback = true) : \SYSTEM\PAGE\Databaseresult
stringId of the text requested
stringLanguage for the requested text
booleanFallback to default language if textid is not found for the specified language.
\SYSTEM\PAGE\DatabaseresultReturns Database Result to loop over.
get_latest(string $tag, integer $limit) : array
stringId of the tag requested
integerAmount of Texts to be requested
arrayReturns array with texts for given tag ordered by time
save(string $id, string $new_id, string $lang, array $tags, string $text) : boolean
stringId of the text
stringNew Id of the text
stringLanguage of the text
arrayArray with tags for that text
stringText to be saved
booleanReturns true or false
search(string $search, string $tag) : array
stringSearchstring "%" are added inside
stringSearch only texts with given tag
arrayReturns array with texts for given searchstring and tag
tag(string $tag, string $lang = NULL, boolean $fallback = true) : array
stringtag to be checked upon
stringLanguage for the requested texts
booleanFallback to default language if certain id is not found for the specified language.
arrayReturns array with texts for requested tag.
tag_adv(string $tag, string $lang = NULL, boolean $fallback = true) : array
stringtag to be checked upon
stringLanguage for the requested texts
booleanFallback to default language if certain id is not found for the specified language.
arrayReturns array with texts for requested tag including usernames etc for the texts
NEW_ENTRY