Solutions Open Source

Référence de la classe user_wapversion

Liste de tous les membres

Fonctions membres publiques

 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)

Attributs publics

 $cObj
 $idx = 0


Documentation des fonctions membres

user_wapversion::main_wapversion ( content,
conf 
)

Main function, called from TypoScript

Paramètres:
string Empty, ignore.
array TypoScript properties for this content object/function call
Renvoie:
string WML content

user_wapversion::contentAbstract (  ) 

Getting abstract of the first content elements header and bodytext for the menu

Renvoie:
string WML string

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()

Paramètres:
integer Max length of each content chunk
Renvoie:
array Array with the page content divided into chucks WML code (default length equals $chunkLgd; 850)
Voir également:
main_wapversion()

user_wapversion::cHeader ( str  ) 

Formats the header for a content element

Paramètres:
string Header value to format
Renvoie:
string Returns the formatted version, stripped from tags and htmlspecialchar()'ed
Voir également:
contentAll()

user_wapversion::cBodytext ( str,
start = 0,
max = 0 
)

Formats the bodytext for a content element

Paramètres:
string The bodytext content
integer Position where to start in the bodytext stream. If larger than zero a prefix, "...", is prepended.
integer Max length
Renvoie:
string Prepared content
Voir également:
contentAll()

user_wapversion::nl2br ( str  ) 

Local version of ml2br(). Replaces linebreaks with
tags.

Paramètres:
string The input string to process
Renvoie:
string The processed value returned.

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"

Paramètres:
string A tablename found in $TCA
Renvoie:
pointer A database resource pointer

user_wapversion::bold ( str  ) 

Simulates bold type - basically setting it in uppercase

Paramètres:
string The string for format in "bold" (uppercase)
Renvoie:
string Processed output.

user_wapversion::paragraph ( str  ) 

Wraps a string in

... tags

Paramètres:
string The input string
Renvoie:
string The wrapped string

user_wapversion::line ( str  ) 

Adds a linebreak character to the end of $str

Paramètres:
string The string/line
Renvoie:
string The input string with '
' prepended

user_wapversion::navLink ( str,
pointer 
)

Creates a navigation link to the next part of the page content!

Paramètres:
string The link text
integer The pointer value
Renvoie:
string The input string, linked with the pointer value to the current page.

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.

Paramètres:
string Indentation prefix string per menu item.
Renvoie:
string A paragraph with the menu items inside.

user_wapversion::link ( str,
id,
deck = '' 
)

Creates a link around the input string to another page/deck Used to create menus

Paramètres:
string The string to be wrapped in tags
integer The page id to link to
string The deck name, if any
Renvoie:
string String wrapped in tags
Voir également:
menuCurrentLevel()

user_wapversion::cleanMenuArray ( menu  ) 

Cleaning up the menu array returned from sys_page->getMenu(). Removing page types with doktype "5" (not in menu)

Paramètres:
array Menu item array
Renvoie:
array New menu item array with doktype-5 elements removed.


Documentation des données membres

user_wapversion::$cObj

user_wapversion::$idx = 0


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:44:22 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3