Documentation TYPO3 par Ameos |
Public Member Functions | |
main_wapversion ($content, $conf) | |
contentAbstract () | |
contentAll ($chunkLgd=850) | |
cHeader ($str) | |
cBodytext ($str, $start=0, $max=0) | |
nl2br ($str) | |
getContentResult ($table) | |
bold ($str) | |
paragraph ($str) | |
line ($str) | |
navLink ($str, $pointer) | |
menuCurrentLevel ($indent) | |
link ($str, $id, $deck='') | |
cleanMenuArray ($menu) | |
Public Attributes | |
$cObj | |
$idx = 0 |
Definition at line 129 of file wapversionLib.inc.
user_wapversion::main_wapversion | ( | $ | content, | |
$ | conf | |||
) |
Main function, called from TypoScript
string | Empty, ignore. | |
array | TypoScript properties for this content object/function call |
Definition at line 141 of file wapversionLib.inc.
References contentAbstract(), contentAll(), t3lib_div::intInRange(), t3lib_div::makeInstanceClassName(), menuCurrentLevel(), navLink(), and paragraph().
user_wapversion::contentAbstract | ( | ) |
Getting abstract of the first content elements header and bodytext for the menu
Definition at line 200 of file wapversionLib.inc.
References bold(), t3lib_div::fixed_lgd(), and getContentResult().
Referenced by main_wapversion().
user_wapversion::contentAll | ( | $ | chunkLgd = 850 |
) |
Returns all page content, but in an array where the content is divided into chunks or a max length (for WAP clients with limited memory capabilities) Content is then displayed using the pointer value found in $GLOBALS['TSFE']->idParts[1], see main_wapversion()
integer | Max length of each content chunk |
Definition at line 217 of file wapversionLib.inc.
References $idx, cBodytext(), and getContentResult().
Referenced by main_wapversion().
user_wapversion::cHeader | ( | $ | str | ) |
Formats the header for a content element
string | Header value to format |
Definition at line 277 of file wapversionLib.inc.
References bold().
user_wapversion::cBodytext | ( | $ | str, | |
$ | start = 0 , |
|||
$ | max = 0 | |||
) |
Formats the bodytext for a content element
string | The bodytext content | |
integer | Position where to start in the bodytext stream. If larger than zero a prefix, "...", is prepended. | |
integer | Max length |
Definition at line 291 of file wapversionLib.inc.
References t3lib_div::fixed_lgd(), and nl2br().
Referenced by contentAll().
user_wapversion::nl2br | ( | $ | str | ) |
Local version of ml2br(). Replaces linebreaks with
tags.
string | The input string to process |
Definition at line 303 of file wapversionLib.inc.
Referenced by cBodytext().
user_wapversion::getContentResult | ( | $ | table | ) |
Selects all records from $table having the current page id as PID (records belonging to that page) Used to select content elements from "tt_content"
string | A tablename found in $TCA |
Definition at line 314 of file wapversionLib.inc.
Referenced by contentAbstract(), and contentAll().
user_wapversion::bold | ( | $ | str | ) |
Simulates bold type - basically setting it in uppercase
string | The string for format in "bold" (uppercase) |
Definition at line 329 of file wapversionLib.inc.
Referenced by cHeader(), and contentAbstract().
user_wapversion::paragraph | ( | $ | str | ) |
Wraps a string in
... tags
string | The input string |
Definition at line 339 of file wapversionLib.inc.
Referenced by main_wapversion(), and menuCurrentLevel().
user_wapversion::line | ( | $ | str | ) |
Adds a linebreak character to the end of $str
string | The string/line |
Definition at line 349 of file wapversionLib.inc.
user_wapversion::navLink | ( | $ | str, | |
$ | pointer | |||
) |
Creates a navigation link to the next part of the page content!
string | The link text | |
integer | The pointer value |
Definition at line 360 of file wapversionLib.inc.
Referenced by main_wapversion().
user_wapversion::menuCurrentLevel | ( | $ | indent | ) |
Creates a menu for the current pagelevel. Navigation is both a path-menu (rootline) and a menu of current page subpages.
string | Indentation prefix string per menu item. |
Definition at line 370 of file wapversionLib.inc.
References cleanMenuArray(), link(), and paragraph().
Referenced by main_wapversion().
user_wapversion::link | ( | $ | str, | |
$ | id, | |||
$ | deck = '' | |||
) |
Creates a link around the input string to another page/deck Used to create menus
string | The string to be wrapped in tags | |
integer | The page id to link to | |
string | The deck name, if any |
Definition at line 405 of file wapversionLib.inc.
Referenced by menuCurrentLevel().
user_wapversion::cleanMenuArray | ( | $ | menu | ) |
Cleaning up the menu array returned from sys_page->getMenu(). Removing page types with doktype "5" (not in menu)
array | Menu item array |
Definition at line 421 of file wapversionLib.inc.
Referenced by menuCurrentLevel().