TYPO3 API  SVNRelease
Public Member Functions | Public Attributes
user_various Class Reference

List of all members.

Public Member Functions

 reverseString ($content, $conf)
 listContentRecordsOnPage ($content, $conf)
 selectThem ($query)
 reverseString ($content, $conf)
 listContentRecordsOnPage ($content, $conf)
 selectThem ($query)

Public Attributes

 $cObj

Detailed Description

Example of calling a method in a PHP class from TypoScript

Definition at line 100 of file example_callfunction.php.


Member Function Documentation

user_various::listContentRecordsOnPage ( content,
conf 
)

Testing USER cObject:

Example can be found in the testsite package at the page-path "/Intro/TypoScript examples/Custom Dynamic Co.../Calling a method.../" This TypoScript configuration will also demonstrate it:

includeLibs.something = media/scripts/example_callfunction.php page = PAGE page.30 = USER page.30 { userFunc = user_various->listContentRecordsOnPage reverseOrder = 1 }

Parameters:
stringEmpty string (no content to process)
arrayTypoScript configuration
Returns:
string HTML output, showing content elements (in reverse order if configured.)

Definition at line 140 of file example_callfunction.php.

References $GLOBALS, and $query.

user_various::listContentRecordsOnPage ( content,
conf 
)

Testing USER cObject:

Example can be found in the testsite package at the page-path "/Intro/TypoScript examples/Custom Dynamic Co.../Calling a method.../" This TypoScript configuration will also demonstrate it:

includeLibs.something = media/scripts/example_callfunction.php page = PAGE page.30 = USER page.30 { userFunc = user_various->listContentRecordsOnPage reverseOrder = 1 }

Parameters:
stringEmpty string (no content to process)
arrayTypoScript configuration
Returns:
string HTML output, showing content elements (in reverse order if configured.)

Definition at line 140 of file example_callfunction.php.

References $GLOBALS, and $query.

user_various::reverseString ( content,
conf 
)

Doing the same as user_reverseString() but with a class. Also demonstrates how this gives us the ability to use methods in the parent object.

Parameters:
stringString to process (from stdWrap)
arrayTypoScript properties passed on to this method.
Returns:
string The input string reversed. If the TypoScript property "uppercase" was set it will also be in uppercase. May also be linked.
See also:
user_reverseString()

Definition at line 111 of file example_callfunction.php.

References $content.

user_various::reverseString ( content,
conf 
)

Doing the same as user_reverseString() but with a class. Also demonstrates how this gives us the ability to use methods in the parent object.

Parameters:
stringString to process (from stdWrap)
arrayTypoScript properties passed on to this method.
Returns:
string The input string reversed. If the TypoScript property "uppercase" was set it will also be in uppercase. May also be linked.
See also:
user_reverseString()

Definition at line 111 of file example_callfunction.php.

References $content.

user_various::selectThem ( query)

Selecting the records by input $query and returning the header field values

Parameters:
stringSQL query selecting the content elements.
Returns:
string The header field values of the content elements imploded by a
tag private

Definition at line 159 of file example_callfunction.php.

References $GLOBALS, $query, $res, and $row.

user_various::selectThem ( query)

Selecting the records by input $query and returning the header field values

Parameters:
stringSQL query selecting the content elements.
Returns:
string The header field values of the content elements imploded by a
tag private

Definition at line 159 of file example_callfunction.php.

References $GLOBALS, $query, $res, and $row.


Member Data Documentation

user_various::$cObj

Definition at line 101 of file example_callfunction.php.


The documentation for this class was generated from the following files: