Documentation TYPO3 par Ameos |
Public Member Functions | |
start ($data, $table='') | |
setParent ($data, $currentRecord) | |
getCurrentVal () | |
setCurrentVal ($value) | |
cObjGet ($setup, $addKey='') | |
cObjGetSingle ($name, $conf, $TSkey='__') | |
HTML ($conf) | |
TEXT ($conf) | |
CLEARGIF ($conf) | |
COBJ_ARRAY ($conf, $ext='') | |
USER ($conf, $ext='') | |
FILE ($conf) | |
IMAGE ($conf) | |
IMG_RESOURCE ($conf) | |
IMGTEXT ($conf) | |
CONTENT ($conf) | |
RECORDS ($conf) | |
HMENU ($conf) | |
CTABLE ($conf) | |
OTABLE ($conf) | |
COLUMNS ($conf) | |
HRULER ($conf) | |
CASEFUNC ($conf) | |
LOAD_REGISTER ($conf, $name) | |
FORM ($conf, $formData='') | |
SEARCHRESULT ($conf) | |
PHP_SCRIPT ($conf, $ext='') | |
TEMPLATE ($conf) | |
MULTIMEDIA ($conf) | |
getSlidePids ($pidList, $pidConf) | |
netprintApplication_offsiteLinkWrap ($str, $imgConf, $conf) | |
getFieldDefaultValue ($noValueInsert, $fieldName, $defaultVal) | |
cImage ($file, $conf) | |
getBorderAttr ($borderAttr) | |
imageLinkWrap ($string, $imageFile, $conf) | |
fileResource ($fName, $addParams='alt=""title=""') | |
lastChanged ($tstamp) | |
linkWrap ($content, $wrap) | |
getAltParam ($conf) | |
cleanFormName ($name) | |
getATagParams ($conf, $addGlobal=1) | |
getSubpart ($content, $marker) | |
substituteSubpart ($content, $marker, $subpartContent, $recursive=1) | |
substituteMarker ($content, $marker, $markContent) | |
substituteMarkerArrayCached ($content, $markContentArray=array(), $subpartContentArray=array(), $wrappedSubpartContentArray=array()) | |
substituteMarkerArray ($content, $markContentArray, $wrap='', $uppercase=0) | |
substituteMarkerInObject (&$tree, $markContentArray) | |
fillInMarkerArray ($markContentArray, $row, $fieldList='', $nl2br=TRUE, $prefix='FIELD_', $HSC=FALSE) | |
stdWrap ($content, $conf) | |
numRows ($conf) | |
listNum ($content, $listNum, $char) | |
checkIf ($conf) | |
filelist ($data) | |
clean_directory ($theDir) | |
HTMLparser_TSbridge ($theValue, $conf) | |
dataWrap ($content, $wrap) | |
insertData ($str) | |
prefixComment ($str, $conf, $content) | |
substring ($content, $options) | |
crop ($content, $options) | |
removeBadHTML ($text, $conf) | |
textStyle ($theValue, $conf) | |
tableStyle ($theValue, $conf) | |
addParams ($content, $conf) | |
filelink ($theValue, $conf) | |
locDataJU ($jumpUrl, $conf) | |
calc ($val) | |
calcIntExplode ($delim, $string) | |
splitObj ($value, $conf) | |
parseFunc ($theValue, $conf, $ref='') | |
_parseFunc ($theValue, $conf) | |
encaps_lineSplit ($theValue, $conf) | |
http_makelinks ($data, $conf) | |
mailto_makelinks ($data, $conf) | |
getImgResource ($file, $fileArray) | |
getFieldVal ($field) | |
getData ($string, $fieldArray) | |
rootLineValue ($key, $field, $slideBack=0, $altRootLine='') | |
getGlobal ($var, $source=NULL) | |
getKey ($key, $arr) | |
TCAlookup ($inputValue, $conf) | |
typoLink ($linktxt, $conf) | |
typoLink_URL ($conf) | |
getTypoLink ($label, $params, $urlParameters=array(), $target='') | |
getTypoLink_URL ($params, $urlParameters=array(), $target='') | |
typolinkWrap ($conf) | |
currentPageUrl ($urlParameters=array(), $id=0) | |
getClosestMPvalueForPage ($pageId, $raw=FALSE) | |
getMailTo ($mailAddress, $linktxt, $initP='?') | |
getQueryArguments ($conf, $overruleQueryArgs=array(), $forceArgs=FALSE) | |
wrap ($content, $wrap, $char='|') | |
noTrimWrap ($content, $wrap) | |
wrapSpace ($content, $wrap) | |
callUserFunction ($funcName, $conf, $content) | |
processParams ($params) | |
keywords ($content) | |
caseshift ($theValue, $case) | |
HTMLcaseshift ($theValue, $case) | |
bytes ($sizeInBytes, $labels) | |
calcAge ($seconds, $labels) | |
sendNotifyEmail ($msg, $recipients, $cc, $email_from, $email_fromName='', $replyTo='') | |
URLqMark ($url, $params) | |
checkEmail ($email) | |
clearTSProperties ($TSArr, $propList) | |
mergeTSRef ($confArr, $prop) | |
joinTSarrays ($conf, $old_conf) | |
gifBuilderTextBox ($gifbuilderConf, $conf, $text) | |
linebreaks ($string, $chars, $maxLines=0) | |
getUpdateJS ($dataArray, $formName, $arrPrefix, $fieldList) | |
DBgetDelete ($table, $uid, $doExec=FALSE) | |
DBgetUpdate ($table, $uid, $dataArr, $fieldList, $doExec=FALSE) | |
DBgetInsert ($table, $pid, $dataArr, $fieldList, $doExec=FALSE) | |
DBmayFEUserEdit ($table, $row, $feUserRow, $allowedGroups='', $feEditSelf=0) | |
DBmayFEUserEditSelect ($table, $feUserRow, $allowedGroups='', $feEditSelf=0) | |
enableFields ($table, $show_hidden=0) | |
getTreeList ($id, $depth, $begin=0, $dontCheckEnableFields=FALSE, $addSelectFields='', $moreWhereClauses='', $prevId_array=array(), $recursionLevel=0) | |
whereSelectFromList ($field, $value) | |
exec_mm_query ($select, $local_table, $mm_table, $foreign_table, $whereClause='', $groupBy='', $orderBy='', $limit='') | |
exec_mm_query_uidList ($select, $local_table_uidlist, $mm_table, $foreign_table='', $whereClause='', $groupBy='', $orderBy='', $limit='') | |
searchWhere ($sw, $searchFieldList, $searchTable='') | |
exec_getQuery ($table, $conf) | |
getQuery ($table, $conf, $returnQueryArray=FALSE) | |
getWhere ($table, $conf, $returnQueryArray=FALSE) | |
checkPidArray ($listArr) | |
checkPid ($uid) | |
editPanel ($content, $conf, $currentRecord='', $dataArr=array()) | |
editIcons ($content, $params, $conf=array(), $currentRecord='', $dataArr=array(), $addUrlParamStr='') | |
editPanelLinkWrap ($string, $formName, $cmd, $currentRecord='', $confirm='', $nPid='') | |
editPanelLinkWrap_doWrap ($string, $url, $currentRecord) | |
editPanelPreviewBorder ($table, $row, $content, $thick, $conf=array()) | |
isDisabled ($table, $row) | |
Public Attributes | |
$align = Array ('center', 'right', 'left') | |
$image_compression | |
$image_effects | |
$data = Array() | |
$oldData = Array() | |
$alternativeData = '' | |
$parameters = Array() | |
$currentValKey = 'currentValue_kidjls9dksoje' | |
$currentRecord = '' | |
$currentRecordTotal = 0 | |
$currentRecordNumber = 0 | |
$parentRecordNumber = 0 | |
$parentRecord = array() | |
$regObj | |
$INT_include = 0 | |
$checkPid_cache = Array() | |
$checkPid_badDoktypeList = '255' | |
$lastTypoLinkUrl = '' | |
$lastTypoLinkTarget = '' | |
$substMarkerCache = array() | |
$recordRegister = array() |
Definition at line 257 of file class.tslib_content.php.
|
Helper function for parseFunc()
Definition at line 4159 of file class.tslib_content.php. References t3lib_div::get_tag_attributes(), and t3lib_div::inList(). |
|
Implements the TypoScript function "addParams"
Definition at line 3794 of file class.tslib_content.php. References t3lib_div::get_tag_attributes(), and t3lib_div::implodeAttributes(). |
|
Formats a number to GB, Mb or Kb or just bytes
Definition at line 5777 of file class.tslib_content.php. References t3lib_div::formatSize(). |
|
Performs basic mathematical evaluation of the input string. Does NOT take parathesis and operator precedence into account! (for that, see t3lib_div::calcPriority())
Definition at line 3938 of file class.tslib_content.php. References t3lib_div::splitCalc(). Referenced by calcIntExplode(), and tslib_menu::makeMenu(). |
|
Returns the 'age' of the tstamp $seconds
Definition at line 5788 of file class.tslib_content.php. References t3lib_div::testInt(). |
|
This explodes a comma-list into an array where the values are parsed through tslib_cObj::calc() and intval() (so you are sure to have integers in the output array) Used to split and calculate min and max values for GMENUs.
Definition at line 3967 of file class.tslib_content.php. References calc(). |
|
Calling a user function/class-method Notice: For classes the instantiated object will have the internal variable, $cObj, set to be a *reference* to $this (the parent/calling object).
Definition at line 5647 of file class.tslib_content.php. References t3lib_div::isFirstPartOfStr(), and t3lib_div::makeInstanceClassName(). Referenced by USER(). |
|
Rendering the cObject, CASE
Definition at line 1500 of file class.tslib_content.php. Referenced by cObjGetSingle(). |
|
Changing character case of a string, converting typically used western charset characters as well.
Definition at line 5723 of file class.tslib_content.php. |
|
Checking syntax of input email address
Definition at line 5863 of file class.tslib_content.php. References t3lib_div::validEmail(). |
|
Compares values together based on the settings in the input TypoScript array and returns true or false based on the comparison result. Implements the "if" function in TYPO3 TypoScript
Definition at line 3348 of file class.tslib_content.php. References t3lib_div::inList(). Referenced by COBJ_ARRAY(), and IMAGE(). |
|
Checks if a page UID is available due to enableFields() AND the list of bad doktype numbers ($this->checkPid_badDoktypeList)
Definition at line 6734 of file class.tslib_content.php. |
|
Removes Page UID numbers from the input array which are not available due to enableFields() or the list of bad doktype numbers ($this->checkPid_badDoktypeList)
Definition at line 6711 of file class.tslib_content.php. |
|
Returns a tag with the image file defined by $file and processed according to the properties in the TypoScript array. Mostly this function is a sub-function to the IMAGE function which renders the IMAGE cObject in TypoScript. This function is called by "$this->cImage($conf['file'],$conf);" from IMAGE().
Definition at line 2599 of file class.tslib_content.php. References t3lib_div::png_to_gif_by_imagemagick(). Referenced by IMAGE(). |
|
Cleans $theDir for slashes in the end of the string and returns the new path, if it exists on the server.
Definition at line 3493 of file class.tslib_content.php. References t3lib_div::isAbsPath(), and t3lib_div::validPathStr(). |
|
Removes forbidden characters and spaces from name/id attributes in the form tag and formfields
Definition at line 2816 of file class.tslib_content.php. |
|
Rendering the cObject, CLEARGIF
Definition at line 607 of file class.tslib_content.php. References getBorderAttr(), stdWrap(), and wrap(). Referenced by cObjGetSingle(). |
|
Clears TypoScript properties listed in $propList from the input TypoScript array.
Definition at line 5875 of file class.tslib_content.php. |
|
Rendering the cObject, COBJ_ARRAY / COA and COBJ_ARRAY_INT
Definition at line 626 of file class.tslib_content.php. References checkIf(), cObjGet(), stdWrap(), and wrap(). Referenced by cObjGetSingle(). |
|
Rendering of a "numerical array" of cObjects from TypoScript Will call ->cObjGetSingle() for each cObject found and accumulate the output.
Definition at line 415 of file class.tslib_content.php. References cObjGetSingle(), and t3lib_TStemplate::sortedKeyList(). Referenced by COBJ_ARRAY(), and IMGTEXT(). |
|
Rendering the cObject, COLUMNS
Definition at line 1396 of file class.tslib_content.php. References t3lib_div::intInRange(). Referenced by cObjGetSingle(). |
|
Rendering the cObject, CONTENT
Definition at line 1145 of file class.tslib_content.php. References t3lib_div::makeInstance(). Referenced by cObjGetSingle(). |
|
Implements the stdWrap property "crop" which is a modified "substr" function allowing to limit a string lenght to a certain number of chars (from either start or end of string) and having a pre/postfix applied if the string really was cropped.
Definition at line 3610 of file class.tslib_content.php. |
|
Rendering the cObject, CTABLE
Definition at line 1343 of file class.tslib_content.php. References t3lib_div::makeInstance(). Referenced by cObjGetSingle(). |
|
Returns the current page URL
Definition at line 5405 of file class.tslib_content.php. |
|
Wrapping input value in a regular "wrap" but parses the wrapping value first for "insertData" codes.
Definition at line 3525 of file class.tslib_content.php. |
|
Returns an UPDATE/DELETE sql query which will "delete" the record. If the $TCA config for the table tells us to NOT "physically" delete the record but rather set the "deleted" field to "1" then an UPDATE query is returned doing just that. Otherwise it truely is a DELETE query.
Definition at line 6096 of file class.tslib_content.php. |
|
Returns an INSERT sql query which automatically added "system-fields" according to $TCA Automatically fields for "tstamp", "crdate", "cruser_id", "fe_cruser_id" and "fe_crgroup_id" is updated if they are configured in the "ctrl" part of $TCA. The "pid" field is overridden by the input $pid value if >= 0 (zero). "uid" can never be set as a field NOTICE: From TYPO3 3.6.0 this function ALWAYS adds slashes to values inserted in the query.
Definition at line 6170 of file class.tslib_content.php. References t3lib_div::inList(), and t3lib_div::trimExplode(). |
|
Returns an UPDATE sql query. If a "tstamp" field is configured for the $table tablename in $TCA then that field is automatically updated to the current time. Notice: It is YOUR responsibility to make sure the data being updated is valid according the tablefield types etc. Also no logging is performed of the update. It's just a nice general usage API function for creating a quick query. NOTICE: From TYPO3 3.6.0 this function ALWAYS adds slashes to values inserted in the query.
Definition at line 6128 of file class.tslib_content.php. References t3lib_div::inList(), and t3lib_div::trimExplode(). |
|
Checks if a frontend user is allowed to edit a certain record
Definition at line 6207 of file class.tslib_content.php. References t3lib_div::inList(), and t3lib_div::trimExplode(). |
|
Returns part of a where clause for selecting records from the input table name which the user may edit. Conceptually close to the function DBmayFEUserEdit(); It does the same thing but not for a single record, rather for a select query selecting all records which the user HAS access to.
Definition at line 6247 of file class.tslib_content.php. References t3lib_div::intExplode(), and t3lib_div::trimExplode(). |
|
Adds an edit icon to the content string. The edit icon links to alt_doc.php with proper parameters for editing the table/fields of the context. This implements TYPO3 context sensitive editing facilities. Only backend users will have access (if properly configured as well).
Definition at line 6977 of file class.tslib_content.php. References t3lib_div::_GP(), t3lib_div::getIndpEnv(), t3lib_BEfunc::getRecord(), and t3lib_div::trimExplode(). |
|
Generates the "edit panels" which can be shown for a page or records on a page when the Admin Panel is enabled for a backend users surfing the frontend. With the "edit panel" the user will see buttons with links to editing, moving, hiding, deleting the element This function is used for the cObject EDITPANEL and the stdWrap property ".editPanel"
Definition at line 6790 of file class.tslib_content.php. References t3lib_div::_GP(), t3lib_div::_POST(), t3lib_div::fixed_lgd(), t3lib_div::makeInstance(), and t3lib_div::trimExplode(). Referenced by cObjGetSingle(). |
|
Helper function for editPanel() which wraps icons in the panel in a link with the action of the panel. The links are for some of them not simple hyperlinks but onclick-actions which submits a little form which the panel is wrapped in.
Definition at line 7059 of file class.tslib_content.php. References t3lib_div::_GP(), t3lib_div::getIndpEnv(), and t3lib_div::testInt(). |
|
Creates a link to a script (eg. typo3/alt_doc.php or typo3/db_new.php) which either opens in the current frame OR in a pop-up window.
Definition at line 7101 of file class.tslib_content.php. References t3lib_div::getIndpEnv(). |
|
Wraps the input content string in a table with a gray border if the table/row combination evaluates to being disabled/hidden. Used for marking previewed records in the frontend.
Definition at line 7129 of file class.tslib_content.php. References t3lib_div::intInRange(). |
|
Returns a part of a WHERE clause which will filter out records with start/end times or hidden/fe_groups fields set to values that should de-select them according to the current time, preview settings or user login. Definitely a frontend function. THIS IS A VERY IMPORTANT FUNCTION: Basically you must add the output from this function for EVERY select query you create for selecting records of tables in your own applications - thus they will always be filtered according to the "enablefields" configured in TCA Simply calls t3lib_pageSelect::enableFields() BUT will send the show_hidden flag along! This means this function will work in conjunction with the preview facilities of the frontend engine/Admin Panel.
Definition at line 6287 of file class.tslib_content.php. Referenced by tslib_menu::makeMenu(). |
|
Lets you split the content by chr(10) and proces each line independently. Used to format content made with the RTE.
Definition at line 4361 of file class.tslib_content.php. References t3lib_div::get_tag_attributes(), t3lib_div::implodeAttributes(), t3lib_div::revExplode(), and t3lib_div::trimExplode(). |
|
Executes a SELECT query for records from $table and with conditions based on the configuration in the $conf array This function is preferred over ->getQuery() if you just need to create and then execute a query.
Definition at line 6519 of file class.tslib_content.php. |
|
Executes a SELECT query for joining three tables according to the MM-relation standards used for tables configured in $TCA. That means MM-joins where the join table has the fields "uid_local" and "uid_foreign"
Definition at line 6435 of file class.tslib_content.php. |
|
Executes a SELECT query for joining two tables according to the MM-relation standards used for tables configured in $TCA. That means MM-joins where the join table has the fields "uid_local" and "uid_foreign" The two tables joined is the join table ($mm_table) and the foreign table ($foreign_table) - so the "local table" is not included but instead you can supply a list of UID integers from the local table to match in the join-table.
Definition at line 6462 of file class.tslib_content.php. |
|
Rendering the cObject, FILE
Definition at line 689 of file class.tslib_content.php. References fileResource(), getAltParam(), linkWrap(), stdWrap(), and wrap(). Referenced by cObjGetSingle(). |
|
Creates a list of links to files. Implements the stdWrap property "filelink"
Definition at line 3837 of file class.tslib_content.php. References t3lib_div::inList(), t3lib_extMgm::siteRelPath(), and t3lib_div::split_fileref(). |
|
Reads a directory for files and returns the filepaths in a string list separated by comma. Implements the stdWrap property "filelist"
Definition at line 3411 of file class.tslib_content.php. References t3lib_div::inList(), t3lib_div::split_fileref(), and t3lib_div::uniqueList(). |
|
Returns content of a file. If it's an image the content of the file is not returned but rather an image tag is.
Definition at line 2723 of file class.tslib_content.php. References t3lib_div::inList(), and t3lib_div::split_fileref(). Referenced by FILE(). |
|
Adds elements to the input $markContentArray based on the values from the fields from $fieldList found in $row
Definition at line 3070 of file class.tslib_content.php. References t3lib_div::testInt(), and t3lib_div::trimExplode(). |
|
Rendering the cObject, FORM Note on $formData: In the optional $formData array each entry represents a line in the ordinary setup. In those entries each entry (0,1,2...) represents a space normally divided by the '|' line. $formData [] = array('Name:', 'name=input, 25 ', 'Default value....'); $formData [] = array('Email:', 'email=input, 25 ', 'Default value for email....');
If $formData is an array the value of $conf['data'] is ignored.
Definition at line 1565 of file class.tslib_content.php. References t3lib_div::formatForTextarea(), t3lib_div::inList(), t3lib_div::intInRange(), and t3lib_TStemplate::sortedKeyList(). Referenced by cObjGetSingle(). |
|
An abstraction method which creates an alt or title parameter for an HTML img tag. From the $conf array it implements the properties "altText", "titleText" and "longdescURL"
Definition at line 2781 of file class.tslib_content.php. Referenced by FILE(). |
|
An abstraction method to add parameters to an A tag. Uses the ATagParams property.
Definition at line 2832 of file class.tslib_content.php. |
|
Returns the 'border' attribute for an tag only if the doctype is not xhtml_strict,xhtml_11 or xhtml_2 or if the config parameter 'disableImgBorderAttr' is not set.
Definition at line 2627 of file class.tslib_content.php. References t3lib_div::inList(). Referenced by CLEARGIF(), and tslib_tmenu::getBeforeAfter(). |
|
Returns the &MP variable value for a page id. The function will do its best to find a MP value that will keep the page id inside the current Mount Point rootline if any.
Definition at line 5418 of file class.tslib_content.php. |
|
Returns the "current" value. The "current" value is just an internal variable that can be used by functions to pass a single value on to another function later in the TypoScript processing. It's like "load accumulator" in the good old C64 days... basically a "register" you can use as you like. The TSref will tell if functions are setting this value before calling some other object so that you know if it holds any special information.
Definition at line 391 of file class.tslib_content.php. |
|
Implements the TypoScript data type "getText". This takes a string with parameters and based on those a value from somewhere in the system is returned.
Definition at line 4766 of file class.tslib_content.php. References t3lib_div::_GP(), t3lib_div::getIndpEnv(), t3lib_div::trimExplode(), and t3lib_div::view_array(). |
|
Returns a default value for a form field in the FORM cObject. Page CANNOT be cached because that would include the inserted value for the current user.
Definition at line 2581 of file class.tslib_content.php. References t3lib_div::_GP(). |
|
Returns the value for the field from $this->data. If "//" is found in the $field value that token will split the field values apart and the first field having a non-blank value will be returned.
Definition at line 4746 of file class.tslib_content.php. |
|
Return global variable where the input string $var defines array keys separated by "|" Example: $var = "HTTP_SERVER_VARS | something" will return the value $GLOBALS['HTTP_SERVER_VARS']['something'] value
Definition at line 4918 of file class.tslib_content.php. |
|
Creates and returns a TypoScript "imgResource". The value ($file) can either be a file reference (TypoScript resource) or the string "GIFBUILDER". In the first case a current image is returned, possibly scaled down or otherwise processed. In the latter case a GIFBUILDER image is returned; This means an image is made by TYPO3 from layers of elements as GIFBUILDER defines. In the function IMG_RESOURCE() this function is called like $this->getImgResource($conf['file'],$conf['file.']);
Definition at line 4554 of file class.tslib_content.php. References t3lib_div::inList(), t3lib_div::intInRange(), t3lib_div::makeInstance(), t3lib_div::shortMD5(), and t3lib_div::split_fileref(). Referenced by IMG_RESOURCE(). |
|
Processing of key values pointing to entries in $arr; Here negative values are converted to positive keys pointer to an entry in the array but from behind (based on the negative value). Example: entrylevel = -1 means that entryLevel ends up pointing at the outermost-level, -2 means the level before the outermost...
Definition at line 4954 of file class.tslib_content.php. Referenced by tslib_menu::makeMenu(), and tslib_menu::start(). |
|
Creates a href attibute for given $mailAddress. The function uses spamProtectEmailAddresses and Jumpurl functionality for encoding the mailto statement. If spamProtectEmailAddresses is disabled, it'll just return a string like "mailto:user@example.tld".
Definition at line 5468 of file class.tslib_content.php. |
|
Creates and returns a SELECT query for records from $table and with conditions based on the configuration in the $conf array Implements the "select" function in TypoScript
Definition at line 6537 of file class.tslib_content.php. References t3lib_div::intInRange(). |
|
Gets the query arguments and assembles them for URLs. Arguments may be removed or set, depending on configuration.
Definition at line 5506 of file class.tslib_content.php. References t3lib_div::_GET(), t3lib_div::_POST(), t3lib_div::getIndpEnv(), and t3lib_div::trimExplode(). |
|
Returns all parents of the given PID (Page UID) list
Definition at line 2508 of file class.tslib_content.php. References t3lib_div::intExplode(). |
|
Returns a subpart from the input content stream. A subpart is a part of the input stream which is encapsulated in a string matching the input string, $marker. If this string is found inside of HTML comment tags the start/end points of the content block returned will be that right outside that comment block. Example: The contennt string is "Hello <!--###sub1### begin--> World. How are <!--###sub1### end--> you?" If $marker is "###sub1###" then the content returned is " World. How are ". The input content string could just as well have been "Hello ###sub1### World. How are ###sub1### you?" and the result would be the same Wrapper for t3lib_parsehtml::getSubpart which behaves identical
Definition at line 2879 of file class.tslib_content.php. References t3lib_parsehtml::getSubpart(). |
|
Generates a list of Page-uid's from $id. List does not include $id itself (unless the id specified is negative in which case it does!) The only pages WHICH PREVENTS DECENDING in a branch are
Definition at line 6311 of file class.tslib_content.php. Referenced by tslib_menu::makeMenu(). |
|
Returns a linked string made from typoLink parameters. This function takes $label as a string, wraps it in a link-tag based on the $params string, which should contain data like that you would normally pass to the popular <LINK>-tag in the TSFE. Optionally you can supply $urlParameters which is an array with key/value pairs that are rawurlencoded and appended to the resulting url.
Definition at line 5353 of file class.tslib_content.php. References t3lib_div::implodeArrayForUrl(). |
|
Returns the URL of a "typolink" create from the input parameter string, url-parameters and target
Definition at line 5380 of file class.tslib_content.php. |
|
Returns a JavaScript <script> section with some function calls to JavaScript functions from "t3lib/jsfunc.updateform.js" (which is also included by setting a reference in $GLOBALS['TSFE']->additionalHeaderData['JSincludeFormupdate']) The JavaScript codes simply transfers content into form fields of a form which is probably used for editing information by frontend users. Used by fe_adminLib.inc.
Definition at line 6027 of file class.tslib_content.php. References t3lib_div::quoteJSvalue(), and t3lib_div::trimExplode(). |
|
Helper function for getQuery(), creating the WHERE clause of the SELECT query
Definition at line 6616 of file class.tslib_content.php. References t3lib_div::intExplode(). |
|
This function creates a number of TEXT-objects in a Gifbuilder configuration in order to create a text-field like thing. Used with the script tslib/media/scripts/postit.inc
Definition at line 5940 of file class.tslib_content.php. |
|
Rendering the cObject, HMENU
Definition at line 1311 of file class.tslib_content.php. References t3lib_div::inList(), and t3lib_div::makeInstance(). Referenced by cObjGetSingle(). |
|
Rendering the cObject, HRULER
Definition at line 1475 of file class.tslib_content.php. References t3lib_div::intInRange(). Referenced by cObjGetSingle(). |
|
Rendering the cObject, HTML
Definition at line 585 of file class.tslib_content.php. References stdWrap(). Referenced by cObjGetSingle(). |
|
Shifts the case of characters outside of HTML tags in the input string
Definition at line 5748 of file class.tslib_content.php. |
|
Passes the input value, $theValue, to an instance of "t3lib_parsehtml" together with the TypoScript options which are first converted from a TS style array to a set of arrays with options for the t3lib_parsehtml class.
Definition at line 3511 of file class.tslib_content.php. References t3lib_div::makeInstance(). |
|
Finds URLS in text and makes it to a real link. Will find all strings prefixed with "http://" in the $data string and make them into a link, linking to the URL we should have found.
Definition at line 4444 of file class.tslib_content.php. |
|
Rendering the cObject, IMAGE
Definition at line 705 of file class.tslib_content.php. References checkIf(), cImage(), and stdWrap(). Referenced by cObjGetSingle(). |
|
Wraps the input string in link-tags that opens the image in a new window.
Definition at line 2643 of file class.tslib_content.php. References t3lib_div::inList(), t3lib_div::intExplode(), and t3lib_div::makeInstance(). |
|
Rendering the cObject, IMG_RESOURCE
Definition at line 724 of file class.tslib_content.php. References getImgResource(), and stdWrap(). Referenced by cObjGetSingle(). |
|
Rendering the cObject, IMGTEXT
Definition at line 736 of file class.tslib_content.php. References $align, cObjGet(), t3lib_div::intInRange(), stdWrap(), and t3lib_div::trimExplode(). Referenced by cObjGetSingle(). |
|
Implements the "insertData" property of stdWrap meaning that if strings matching {...} is found in the input string they will be substituted with the return value from getData (datatype) which is passed the content of the curly braces. Example: If input string is "This is the page title: {page:title}" then the part, '{page:title}', will be substituted with the current pages title field value.
Definition at line 3538 of file class.tslib_content.php. |
|
Returns true if the input table/row would be hidden in the frontend (according nto the current time and simulate user group)
Definition at line 7151 of file class.tslib_content.php. |
|
Merges two TypoScript propery array, overlaing the $old_conf onto the $conf array
Definition at line 5917 of file class.tslib_content.php. Referenced by cObjGetSingle(). |
|
Cleans up a string of keywords. Keywords at splitted by "," (comma) ";" (semi colon) and linebreak
Definition at line 5706 of file class.tslib_content.php. Referenced by tslib_menu::makeMenu(). |
|
Sets the SYS_LASTCHANGED timestamp if input timestamp is larger than current value. The SYS_LASTCHANGED timestamp can be used by various caching/indexing applications to determine if the page has new content. Therefore you should call this function with the last-changed timestamp of any element you display.
Definition at line 2746 of file class.tslib_content.php. |
|
Splits a text string into lines and returns an array with these lines but a max number of lines.
Definition at line 5996 of file class.tslib_content.php. |
|
Wraps the input string by the $wrap value and implements the "linkWrap" data type as well. The "linkWrap" data type means that this function will find any integer encapsulated in {} (curly braces) in the first wrap part and substitute it with the corresponding page uid from the rootline where the found integer is pointing to the key in the rootline. See link below.
Definition at line 2763 of file class.tslib_content.php. Referenced by FILE(). |
|
Exploding a string by the $char value (if integer its an ASCII value) and returning index $listNum
Definition at line 3328 of file class.tslib_content.php. References t3lib_div::testInt(). |
|
Rendering the cObject, LOAD_REGISTER and RESTORE_REGISTER NOTICE: This cObject does NOT return any content since it just sets internal data based on the TypoScript properties.
Definition at line 1525 of file class.tslib_content.php. Referenced by cObjGetSingle(). |
|
Returns a URL parameter string setting parameters for secure downloads by "jumpurl". Helper function for filelink()
Definition at line 3907 of file class.tslib_content.php. References t3lib_div::trimExplode(). |
|
Will find all strings prefixed with "mailto:" in the $data string and make them into a link, linking to the email address they point to.
Definition at line 4511 of file class.tslib_content.php. |
|
Resolves a TypoScript reference value to the full set of properties BUT overridden with any local properties set. So the reference is resolved but overlaid with local TypoScript properties of the reference value.
Definition at line 5894 of file class.tslib_content.php. References t3lib_div::makeInstance(). |
|
Rendering the cObject, MULTIMEDIA
Definition at line 2421 of file class.tslib_content.php. References t3lib_div::inList(), and t3lib_div::split_fileref(). Referenced by cObjGetSingle(). |
|
Creates a link to a netprint application on another website (where the "netprint" extension is running") Related to the extension "netprint"
Definition at line 2540 of file class.tslib_content.php. References t3lib_div::getIndpEnv(), and t3lib_div::makeInstance(). |
|
Wrapping a string, preserving whitespace in wrap value. Notice that the wrap value uses part 1/2 to wrap (and not 0/1 which wrap() does)
Definition at line 5607 of file class.tslib_content.php. |
|
Returns number of rows selected by the query made by the properties set. Implements the stdWrap "numRows" property
Definition at line 3307 of file class.tslib_content.php. |
|
Rendering the cObject, OTABLE
Definition at line 1381 of file class.tslib_content.php. References t3lib_div::makeInstance(). Referenced by cObjGetSingle(). |
|
Implements the stdWrap property, "parseFunc". This is a function with a lot of interesting uses. In classic TypoScript this is used to process text from the bodytext field; This included highlighting of search words, changing http:// and mailto: prefixed strings into links, parsing <typolist>, <typohead> and <typocode> tags etc. It is still a very important function for processing of bodytext which is normally stored in the database in a format which is not fully ready to be outputted. This situation has not become better by having a RTE around... This function is actually just splitting the input content according to the configuration of "external blocks". This means that before the input string is actually "parsed" it will be splitted into the parts configured to BE parsed (while other parts/blocks should NOT be parsed). Therefore the actual processing of the parseFunc properties goes on in ->_parseFunc()
Definition at line 4049 of file class.tslib_content.php. References t3lib_div::makeInstance(), and t3lib_div::trimExplode(). |
|
Rendering the cObject, PHP_SCRIPT, PHP_SCRIPT_INT and PHP_SCRIPT_EXT
Definition at line 2227 of file class.tslib_content.php. Referenced by cObjGetSingle(). |
|
Returns a HTML comment with the second part of input string (divided by "|") where first part is an integer telling how many trailing tabs to put before the comment on a new line. Notice; this function (used by stdWrap) can be disabled by a "config.disablePrefixComment" setting in TypoScript.
Definition at line 3568 of file class.tslib_content.php. |
|
Parses a set of text lines with "[parameters] = [values]" into an array with parameters as keys containing the value If lines are empty or begins with "/" or "#" then they are ignored.
Definition at line 5688 of file class.tslib_content.php. References t3lib_div::inList(), and t3lib_div::trimExplode(). |
|
Rendering the cObject, RECORDS
Definition at line 1231 of file class.tslib_content.php. References t3lib_div::makeInstance(). Referenced by cObjGetSingle(). |
|
Function for removing malicious HTML code when you want to provide some HTML code user-editable. The purpose is to avoid XSS attacks and the code will be continously modified to remove such code. For a complete reference with javascript-on-events, see http://www.wdvl.com/Authoring/JavaScript/Events/events_target.html
Definition at line 3642 of file class.tslib_content.php. |
|
Returns a value from the current rootline (site) from $GLOBALS['TSFE']->tmpl->rootLine;
Definition at line 4896 of file class.tslib_content.php. |
|
Rendering the cObject, SEARCHRESULT
Definition at line 2061 of file class.tslib_content.php. References t3lib_div::_GP(), t3lib_div::_POST(), t3lib_div::intInRange(), t3lib_div::makeInstance(), and t3lib_div::testInt(). Referenced by cObjGetSingle(). |
|
Generates a search where clause based on the input search words (AND operation - all search words must be found in record.) Example: The $sw is "content management, system" (from an input form) and the $searchFieldList is "bodytext,header" then the output will be ' AND (bodytext LIKE "%content%" OR header LIKE "%content%") AND (bodytext LIKE "%management%" OR header LIKE "%management%") AND (bodytext LIKE "%system%" OR header LIKE "%system%")'
Definition at line 6483 of file class.tslib_content.php. |
|
Sending a notification email using $GLOBALS['TSFE']->plainMailEncoded()
Definition at line 5820 of file class.tslib_content.php. References t3lib_div::trimExplode(). |
|
Sets the "current" value.
Definition at line 402 of file class.tslib_content.php. |
|
Sets the internal variable parentRecord with information about current record. If the tslib_cObj was started from CONTENT, RECORD or SEARCHRESULT cObject's this array has two keys, 'data' and 'currentRecord' which indicates the record and data for the parent cObj.
Definition at line 366 of file class.tslib_content.php. References $currentRecord, and $data. |
|
Implements the "split" property of stdWrap; Splits a string based on a token (given in TypoScript properties), sets the "current" value to each part and then renders a content object pointer to by a number. In classic TypoScript (like 'content (default)'/'styles.content (default)') this is used to render tables, splitting rows and cells by tokens and putting them together again wrapped in tags etc. Implements the "optionSplit" processing of the TypoScript options for each splitted value to parse.
Definition at line 3987 of file class.tslib_content.php. |
|
Class constructor. Well, it has to be called manually since it is not a real constructor function. So after making an instance of the class, call this function and pass to it a database record and the tablename from where the record is from. That will then become the "current" record loaded into memory and accessed by the .fields property found in eg. stdWrap.
Definition at line 351 of file class.tslib_content.php. References $data. |
|
The "stdWrap" function. This is the implementation of what is known as "stdWrap properties" in TypoScript. Basically "stdWrap" performs some processing of a value based on properties in the input $conf array (holding the TypoScript "stdWrap properties") See the link below for a complete list of properties and what they do. The order of the table with properties found in TSref (the link) follows the actual order of implementation in this function. If $this->alternativeData is an array it's used instead of the $this->data array in ->getData
Definition at line 3133 of file class.tslib_content.php. References t3lib_div::calcParenthesis(), t3lib_div::deHSCentities(), and t3lib_div::makeInstance(). Referenced by CLEARGIF(), COBJ_ARRAY(), FILE(), HTML(), IMAGE(), IMG_RESOURCE(), IMGTEXT(), and TEXT(). |
|
Substitutes a marker string in the input content (by a simple str_replace())
Definition at line 2908 of file class.tslib_content.php. |
|
Traverses the input $markContentArray array and for each key the marker by the same name (possibly wrapped and in upper case) will be substituted with the keys value in the array. This is very useful if you have a data-record to substitute in some content. In particular when you use the $wrap and $uppercase values to pre-process the markers. Eg. a key name like "myfield" could effectively be represented by the marker "###MYFIELD###" if the wrap value was "###|###" and the $uppercase boolean true.
Definition at line 3026 of file class.tslib_content.php. References t3lib_div::trimExplode(). |
|
Multi substitution function with caching. This function should be a one-stop substitution function for working with HTML-template. It does not substitute by str_replace but by splitting. This secures that the value inserted does not themselves contain markers or subparts. This function takes three kinds of substitutions in one: $markContentArray is a regular marker-array where the 'keys' are substituted in $content with their values $subpartContentArray works exactly like markContentArray only is whole subparts substituted and not only a single marker. $wrappedSubpartContentArray is an array of arrays with 0/1 keys where the subparts pointed to by the main key is wrapped with the 0/1 value alternating.
Definition at line 2928 of file class.tslib_content.php. |
|
Substitute marker array in an array of values
Definition at line 3047 of file class.tslib_content.php. |
|
Substitute subpart in input template stream. This function substitutes a subpart in $content with the content of $subpartContent. Wrapper for t3lib_parsehtml::substituteSubpart which behaves identical
Definition at line 2895 of file class.tslib_content.php. References t3lib_parsehtml::substituteSubpart(). |
|
Implements the stdWrap property "substring" which is basically a TypoScript implementation of the PHP function, substr()
Definition at line 3592 of file class.tslib_content.php. References t3lib_div::intExplode(). |
|
Implements the stdWrap property "tableStyle"; Basically this generates a
Definition at line 3753 of file class.tslib_content.php. |
|
Looks up the incoming value in the defined TCA configuration Works only with TCA-type 'select' and options defined in 'items'
Definition at line 4977 of file class.tslib_content.php. References t3lib_div::trimExplode(). |
|
Rendering the cObject, TEMPLATE
Definition at line 2270 of file class.tslib_content.php. References t3lib_div::makeInstance(). Referenced by cObjGetSingle(). |
|
Rendering the cObject, TEXT
Definition at line 596 of file class.tslib_content.php. References stdWrap(). Referenced by cObjGetSingle(). |
|
Implements the stdWrap property "textStyle"; This generates a <font>-tag (and a -tag for align-attributes) which is wrapped around the input value.
Definition at line 3686 of file class.tslib_content.php. |
|
Implements the "typolink" property of stdWrap (and others) Basically the input string, $linktext, is (typically) wrapped in a -tag linking to some page, email address, file or URL based on a parameter defined by the configuration array $conf. This function is best used from internal functions as is. There are some API functions defined after this function which is more suited for general usage in external applications. Generally the concept "typolink" should be used in your own applications as an API for making links to pages with parameters and more. The reason for this is that you will then automatically make links compatible with all the centralized functions for URL simulation and manipulation of parameters into hashes and more. For many more details on the parameters and how they are intepreted, please see the link to TSref below.
Definition at line 5037 of file class.tslib_content.php. References t3lib_div::cHashParams(), t3lib_div::inList(), t3lib_div::testInt(), t3lib_div::trimExplode(), and t3lib_div::unQuoteFilenames(). |
|
Based on the input "TypoLink" TypoScript configuration this will return the generated URL '
Definition at line 5335 of file class.tslib_content.php. |
|
Generates a typolink and returns the two link tags - start and stop - in an array
Definition at line 5392 of file class.tslib_content.php. |
|
Checks if $url has a '?' in it and if not, a '?' is inserted between $url and $params, which are anyway concatenated and returned
Definition at line 5847 of file class.tslib_content.php. |
|
Rendering the cObject, USER and USER_INT
Definition at line 662 of file class.tslib_content.php. References callUserFunction(). Referenced by cObjGetSingle(). |
|
Returns a part for a WHERE clause (without preceeding operator) which will select records based on the presence of a certain string in a string-list inside the record. Example: If you have a record with a field, "usergroup" and that field might contain a list like "1,2,3" (with no spaces between the values) then you can select all records having eg. "2" in this list by calling this function. This is regardless of whether the number "2" is in the start, end or middle of the list - or the only value at all.
Definition at line 6417 of file class.tslib_content.php. |
|
Wrapping a string. Implements the TypoScript "wrap" property. Example: $content = "HELLO WORLD" and $wrap = "<b> | </b>", result: "<b>HELLO WORLD</b>"
Definition at line 5591 of file class.tslib_content.php. Referenced by CLEARGIF(), COBJ_ARRAY(), and FILE(). |
|
Adds space above/below the input HTML string. It is done by adding a clear-gif and
Definition at line 5621 of file class.tslib_content.php. |
|
Loaded with the current data-record. If the instance of this class is used to render records from the database those records are found in this array. The function stdWrap has TypoScript properties that fetch field-data from this array.
Definition at line 321 of file class.tslib_content.php. Referenced by setParent(), and start(). |
|
Initial value: Array( 10 => Array('params'=>'', 'ext'=>'gif'), 11 => Array('params'=>'-colors 128', 'ext'=>'gif'), 12 => Array('params'=>'-colors 64', 'ext'=>'gif'), 13 => Array('params'=>'-colors 32', 'ext'=>'gif'), 14 => Array('params'=>'-colors 16', 'ext'=>'gif'), 15 => Array('params'=>'-colors 8', 'ext'=>'gif'), 30 => Array('params'=>'-colors 256', 'ext'=>'png'), 31 => Array('params'=>'-colors 128', 'ext'=>'png'), 32 => Array('params'=>'-colors 64', 'ext'=>'png'), 33 => Array('params'=>'-colors 32', 'ext'=>'png'), 34 => Array('params'=>'-colors 16', 'ext'=>'png'), 35 => Array('params'=>'-colors 8', 'ext'=>'png'), 39 => Array('params'=>'', 'ext'=>'png'), 20 => Array('params'=>'-quality 100', 'ext'=>'jpg'), 21 => Array('params'=>'-quality 90', 'ext'=>'jpg'), 22 => Array('params'=>'-quality 80', 'ext'=>'jpg'), 23 => Array('params'=>'-quality 70', 'ext'=>'jpg'), 24 => Array('params'=>'-quality 60', 'ext'=>'jpg'), 25 => Array('params'=>'-quality 50', 'ext'=>'jpg'), 26 => Array('params'=>'-quality 40', 'ext'=>'jpg'), 27 => Array('params'=>'-quality 30', 'ext'=>'jpg'), 28 => Array('params'=>'-quality 20', 'ext'=>'jpg') )
Definition at line 270 of file class.tslib_content.php. |
|
Initial value: Array( 1 => '-rotate 90', 2 => '-rotate 270', 3 => '-rotate 180', 10 => '-colorspace GRAY', 11 => '-sharpen 70', 20 => '-normalize', 23 => '-contrast', 25 => '-gamma 1.3', 26 => '-gamma 0.8' )
Definition at line 302 of file class.tslib_content.php. |