T3lib_DB
exec_INSERTquery ($table, $field_values) |
Inserts a row into the database |
exec_UPDATEquery ($table, $where, $field_values) |
Updates a row into the database |
exec_SELECTquery ($fields, $table, $where, $groupby, $orderby, $limit) |
Select rows from a database |
sql_query ($sql) |
Executes a typed query |
sql_num_rows ($res) |
Returns the number of rows |
sql_fetch_assoc ($res) |
Returns an associative row |
sql_insert_id ($res) |
Returns the last inserted autoincrement ID |
sql_affected_rows ($res) |
Returns the number of affected rows |
sql_error () |
Returns the last SQL error message |
fullQuoteStr ($str, $table) |
Escapes a string |
fullQuoteArray ($arr, $table) |
Escapes all of the values of an array |
Call with $GLOBALS['TYPO3_DB']->
tslib_cObj
enableFields ($table) |
Returns $where params to filter records |
getSubpart ($content, $marker) |
Returns a subpart from a template |
substituteMarker ($content, $marker, $content) |
substitute a single marker |
substituteMarkerArray ($content, $markerArray) |
Substitute all markers in the array |
substituteMarkerArrayCache ($content, $markers, $subparts, $wrapped) |
More advanced function. Causes Cache problems |
stdWrap ($content, $conf) |
Executes a stdWrap |
cObjGetSingle ($name, $conf ) |
Creates a TS object with the value $conf |
whereSelectFromList ($field, $value) |
Where to search for a value in a CSV list |
|
|
T3lib_DIV
makeInstance ($classname) |
Creates an instance of a TYPO3 class |
tempnam ($filePrefix) |
Create the name of a tempfile |
unlink_tempfile ( $tempfilename) |
Removes a tempfile |
upload_to_tempfile ($uploaded_filename) |
Moves a PHP uploaded file into a TYPO3 temp file |
_GET ($var=null) |
Retrieves a GET variable (or the _GET array) |
_POST ($var=null) |
Retrieves a POST variable (or the _POST array) |
_GPmerged ($var=null) |
Retrieves a GET or POST variable (POST takes priority) |
intExplode( $delimeter, $string ) |
Explodes a string, ensuring all values are INT |
trimExplode ($delimeter, $string) |
Explodes a string, trimming all values |
view_array ( $array) |
Returns the HTML output of an array |
getindpEnv ($envName) |
Returns System Variables like REMOTE_ADDR |
All T3lib_DIV functions are STATIC. Call by prefixing t3lib_div::
tslib_pibase
pi_get_LL ($key, $default) |
Retrieves a localized language label |
pi_linkToPage ($str, $id, $target, $params) |
Links to a page. Params need Prefix |
pi_linkTP ($str, $params, $cache, $id) |
Links to the current page. Params need Prefix |
pi_linkTP_keyPiVars ($str, $pivars, $cache, $clear, $id) |
Links to current page, keeping piVars. No Prefix. |
pi_linkTP_keepPivars_url ($pivars, $cache, $clear, $id) |
Same as above, but returns only the URL |
pi_list_linkSingle ($str, $uid, $cache, $pivars, $id ) |
Links to the Single View page of the plugin. |
pi_list_browserresults (...) |
Returns a browse result at bottom |
pi_list_searchBox () |
Makes a searchbox |
pi_getRecord ($table, $uid) |
Retrieves a record of a table |
pi_getFFvalue ($flexform, $field, $sheet, $lang, $value ) |
Allows to extract a value from a FlexForm |
This is the base class of front-end plugins
|
|
Typoscript Objects
HTML |
Allows to display HTML elements |
TEXT |
Allows to display TEXT (including data elements) |
COA |
Allows to show a list of objects |
COA_INT |
Same as COA, but no caching |
FILE |
Displays the content of a file |
IMAGES |
Displays an image |
IMG_RESOURCES |
Returns the reference to an image |
CONTENT |
Return Content Elements |
RECORDS |
Return records |
HMENU |
Creates a HMENU |
IMGTEXT |
Display an image with a caption |
CASE |
Like a COA, but displays only 1 |
LOAD_REGISTER |
Allows to retrieve a PHP value |
USER |
Allows to call a user script |
USER_INT |
Same as User but with no caching |
TEMPLATE |
Used to link a template |
MEDIA |
Return a video or audio player |
SWFOBJECT |
Return a flash object |
GIFBUILDER |
Used with an IMAGE to make an image |
TMENU |
Used with HMENU to make text menus |
TMENUITEM |
Implicitly used with TMENU to make menu items |
|