Public Member Functions | |
| deleteClause ($table, $tableAlias='') | |
| getRecord ($table, $uid, $fields='*', $where='') | |
| getRecordWSOL ($table, $uid, $fields='*', $where='') | |
| getRecordRaw ($table, $where='', $fields='*') | |
| getRecordsByField ($theTable, $theField, $theValue, $whereClause='', $groupBy='', $orderBy='', $limit='') | |
| searchQuery ($searchWords, $fields, $table='') | |
| listQuery ($field, $value) | |
| splitTable_Uid ($str) | |
| getSQLselectableList ($in_list, $tablename, $default_tablename) | |
| BEenableFields ($table, $inv=0) | |
| mm_query ($select, $local_table, $mm_table, $foreign_table, $whereClause='', $groupBy='', $orderBy='', $limit='') | |
| DBcompileInsert ($table, $fields_values) | |
| DBcompileUpdate ($table, $where, $fields_values) | |
| BEgetRootLine ($uid, $clause='', $workspaceOL=FALSE) | |
| openPageTree ($pid, $clearExpansion) | |
| getRecordPath ($uid, $clause, $titleLimit, $fullTitleLimit=0) | |
| getExcludeFields () | |
| getExplicitAuthFieldValues () | |
| getSystemLanguages () | |
| readPageAccess ($id, $perms_clause) | |
| getTCAtypes ($table, $rec, $useFieldNameAsKey=0) | |
| getTCAtypeValue ($table, $rec) | |
| getSpecConfParts ($str, $defaultExtras) | |
| getSpecConfParametersFromArray ($pArr) | |
| getFlexFormDS ($conf, $row, $table, $fieldName='', $WSOL=TRUE) | |
| storeHash ($hash, $data, $ident) | |
| getHash ($hash, $expTime=0) | |
| getPagesTSconfig ($id, $rootLine='', $returnPartArray=0) | |
| updatePagesTSconfig ($id, $pageTS, $TSconfPrefix, $impParams='') | |
| implodeTSParams ($p, $k='') | |
| getUserNames ($fields='username, usergroup, usergroup_cached_list, uid', $where='') | |
| getGroupNames ($fields='title, uid', $where='') | |
| getListGroupNames ($fields='title, uid') | |
| blindUserNames ($usernames, $groupArray, $excludeBlindedFlag=0) | |
| blindGroupNames ($groups, $groupArray, $excludeBlindedFlag=0) | |
| daysUntil ($tstamp) | |
| date ($tstamp) | |
| datetime ($value) | |
| time ($value) | |
| calcAge ($seconds, $labels= 'min|hrs|days|yrs') | |
| dateTimeAge ($tstamp, $prefix=1, $date='') | |
| titleAttrib ($content='', $hsc=0) | |
| titleAltAttrib ($content) | |
| thumbCode ($row, $table, $field, $backPath, $thumbScript='', $uploaddir=NULL, $abs=0, $tparams='', $size='') | |
| getThumbNail ($thumbScript, $theFile, $tparams='', $size='') | |
| titleAttribForPages ($row, $perms_clause='', $includeAttrib=1) | |
| getRecordIconAltText ($row, $table='pages') | |
| getLabelFromItemlist ($table, $col, $key) | |
| getItemLabel ($table, $col, $printAllWrap='') | |
| getRecordTitle ($table, $row, $prep=0) | |
| getProcessedValue ($table, $col, $value, $fixed_lgd_chars=0, $defaultPassthrough=0, $noRecordLookup=FALSE, $uid=0) | |
| getProcessedValueExtra ($table, $fN, $fV, $fixed_lgd_chars=0, $uid=0) | |
| getFileIcon ($ext) | |
| getCommonSelectFields ($table, $prefix='') | |
| makeConfigForm ($configArray, $defaults, $dataPrefix) | |
| helpTextIcon ($table, $field, $BACK_PATH, $force=0) | |
| helpText ($table, $field, $BACK_PATH, $styleAttrib='') | |
| cshItem ($table, $field, $BACK_PATH, $wrap='', $onlyIconMode=FALSE, $styleAttrib='') | |
| editOnClick ($params, $backPath='', $requestUri='') | |
| viewOnClick ($id, $backPath='', $rootLine='', $anchor='', $altUrl='', $addGetVars='', $switchFocus=TRUE) | |
| getModTSconfig ($id, $TSref) | |
| getFuncMenu ($mainParams, $elementName, $currentValue, $menuItems, $script='', $addparams='') | |
| getFuncCheck ($mainParams, $elementName, $currentValue, $script='', $addparams='', $tagParams='') | |
| getFuncInput ($mainParams, $elementName, $currentValue, $size=10, $script="", $addparams="") | |
| unsetMenuItems ($modTSconfig, $itemArray, $TSref) | |
| getSetUpdateSignal ($set='') | |
| getModuleData ($MOD_MENU, $CHANGED_SETTINGS, $modName, $type='', $dontValidateList='', $setDefaultList='') | |
| compilePreviewKeyword ($getVarsStr, $beUserUid, $ttl=172800) | |
| lockRecords ($table='', $uid=0, $pid=0) | |
| isRecordLocked ($table, $uid) | |
| exec_foreign_table_where_query ($fieldValue, $field='', $TSconfig=array(), $prefix='') | |
| getTCEFORM_TSconfig ($table, $row) | |
| getTSconfig_pidValue ($table, $uid, $pid) | |
| getPidForModTSconfig ($table, $uid, $pid) | |
| getTSCpid ($table, $uid, $pid) | |
| firstDomainRecord ($rootLine) | |
| getDomainStartPage ($domain, $path='') | |
| RTEsetup ($RTEprop, $table, $field, $type='') | |
| & | RTEgetObj () |
| & | softRefParserObj ($spKey) |
| explodeSoftRefParserList ($parserList) | |
| isModuleSetInTBE_MODULES ($modName) | |
| referenceCount ($table, $ref, $msg='') | |
| selectVersionsOfRecord ($table, $uid, $fields='*', $workspace=0) | |
| fixVersioningPid ($table, &$rr, $ignoreWorkspaceMatch=FALSE) | |
| workspaceOL ($table, &$row, $wsid=-99) | |
| getWorkspaceVersionOfRecord ($workspace, $table, $uid, $fields='*') | |
| getLiveVersionOfRecord ($table, $uid, $fields='*') | |
| isPidInVersionizedBranch ($pid, $table='', $returnStage=FALSE) | |
| versioningPlaceholderClause ($table) | |
| countVersionsOfRecordsOnPage ($workspace, $pageId, $allTables=FALSE) | |
| wsMapId ($table, $uid) | |
| typo3PrintError ($header, $text, $js='', $head=1) | |
| TYPO3_copyRightNotice () | |
| displayWarningMessages () | |
| getPathType_web_nonweb ($path) | |
| ADMCMD_previewCmds ($pageinfo) | |
| processParams ($params) | |
| getListOfBackendModules ($name, $perms_clause, $backPath='', $script='index.php') | |
Definition at line 183 of file class.t3lib_befunc.php.
|
|
Creates ADMCMD parameters for the "viewpage" extension / "cms" frontend Usage: 1
Definition at line 3538 of file class.t3lib_befunc.php. |
|
||||||||||||
|
Backend implementation of enableFields() Notice that "fe_groups" is not selected for - only disabled, starttime and endtime. Notice that deleted-fields are NOT filtered - you must ALSO call deleteClause in addition. $GLOBALS["SIM_EXEC_TIME"] is used for date. Usage: 5
Definition at line 403 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Returns what is called the 'RootLine'. That is an array with information about the page records from a page id ($uid) and back to the root. By default deleted pages are filtered. This RootLine will follow the tree all the way to the root. This is opposite to another kind of root line known from the frontend where the rootline stops when a root-template is found. Usage: 1
Definition at line 533 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Corresponds to blindUserNames but works for groups instead Usage: 2 (module web_perm)
Definition at line 1387 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Returns the array $usernames with the names of all users NOT IN $groupArray changed to the uid (hides the usernames!). If $excludeBlindedFlag is set, then these records are unset from the array $usernames Takes $usernames (array made by t3lib_BEfunc.getUserNames()) and a $groupArray (array with the groups a certain user is member of) as input Usage: 8
Definition at line 1354 of file class.t3lib_befunc.php. |
|
||||||||||||
|
Returns the "age" in minutes / hours / days / years of the number of $seconds inputted. Usage: 15
Definition at line 1479 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Set preview keyword, eg: $previewUrl = t3lib_div.getIndpEnv('TYPO3_SITE_URL').'?ADMCMD_prev='.t3lib_BEfunc.compilePreviewKeyword('id='.$pageId.'&L='.$language.'&ADMCMD_view=1&ADMCMD_editIcons=1&ADMCMD_previewWS='.$this->workspace, $GLOBALS['BE_USER']->user['uid'], 120); todo for sys_preview:
Definition at line 2565 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Count number of versions on a page
Definition at line 3336 of file class.t3lib_befunc.php. |
|
||||||||||||||||||||||||||||
|
API for getting CSH icons/text for use in backend modules. TCA_DESCR will be loaded if it isn't already Usage: ?
Definition at line 2219 of file class.t3lib_befunc.php. |
|
|
Returns $tstamp formatted as "ddmmyy" (According to $TYPO3_CONF_VARS['SYS']['ddmmyy']) Usage: 11
Definition at line 1440 of file class.t3lib_befunc.php. |
|
|
Returns $tstamp formatted as "ddmmyy hhmm" (According to $TYPO3_CONF_VARS['SYS']['ddmmyy'] AND $TYPO3_CONF_VARS['SYS']['hhmm']) Usage: 28
Definition at line 1451 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Returns a formatted timestamp if $tstamp is set. The date/datetime will be followed by the age in parenthesis. Usage: 3
Definition at line 1505 of file class.t3lib_befunc.php. |
|
|
Returns the difference in days between input $tstamp and $EXEC_TIME Usage: 2 (class t3lib_BEfunc)
Definition at line 1428 of file class.t3lib_befunc.php. |
|
||||||||||||
|
Creates an INSERT SQL-statement for $table from the array with field/value pairs $fields_values. DEPRECATED - $GLOBALS['TYPO3_DB']->INSERTquery() directly instead! But better yet, use $GLOBALS['TYPO3_DB']->exec_INSERTquery()
Definition at line 489 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Creates an UPDATE SQL-statement for $table where $where-clause (typ. 'uid=...') from the array with field/value pairs $fields_values. DEPRECATED - $GLOBALS['TYPO3_DB']->UPDATEquery() directly instead! But better yet, use $GLOBALS['TYPO3_DB']->exec_UPDATEquery()
Definition at line 503 of file class.t3lib_befunc.php. |
|
||||||||||||
|
Returns the WHERE clause " AND NOT [tablename].[deleted-field]" if a deleted-field is configured in $TCA for the tablename, $table This function should ALWAYS be called in the backend for selection on tables which are configured in TCA since it will ensure consistent selection of records, even if they are marked deleted (in which case the system must always treat them as non-existent!) In the frontend a function, ->enableFields(), is known to filter hidden-field, start- and endtime and fe_groups as well. But that is a job of the frontend, not the backend. If you need filtering on those fields as well in the backend you can use ->BEenableFields() though. Usage: 71
Definition at line 204 of file class.t3lib_befunc.php. |
|
|
Display some warning messages if this installation is obviously insecure!! These warnings are only displayed to admin users
Definition at line 3469 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Returns a JavaScript string (for an onClick handler) which will load the alt_doc.php script that shows the form for editing of the record(s) you have send as params. REMEMBER to always htmlspecialchar() content in href-properties to ampersands get converted to entities (XHTML requirement and XSS precaution) Usage: 35
Definition at line 2257 of file class.t3lib_befunc.php. |
|
||||||||||||||||||||
|
Returns select statement for MM relations (as used by TCEFORMs etc) Usage: 3
Definition at line 2662 of file class.t3lib_befunc.php. |
|
|
Returns array of soft parser references
Definition at line 2998 of file class.t3lib_befunc.php. |
|
|
Returns first found domain record "domainName" (without trailing slash) if found in the input $rootLine Usage: 2
Definition at line 2856 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Find page-tree PID for versionized record Will look if the "pid" value of the input record is -1 and if the table supports versioning - if so, it will translate the -1 PID into the PID of the original record Used whenever you are tracking something back, like making the root line. Will only translate if the workspace of the input record matches that of the current user (unless flag set) Principle; Record offline! => Find online?
Definition at line 3160 of file class.t3lib_befunc.php. |
|
||||||||||||
|
Returns fields for a table, $table, which would typically be interesting to select This includes uid, the fields defined for title, icon-field. Returned as a list ready for query ($prefix can be set to eg. "pages." if you are selecting from the pages table and want the table name prefixed) Usage: 3
Definition at line 2027 of file class.t3lib_befunc.php. |
|
||||||||||||
|
Returns the sys_domain record for $domain, optionally with $path appended. Usage: 2
Definition at line 2878 of file class.t3lib_befunc.php. |
|
|
Returns an array with the exclude-fields as defined in TCA Used for listing the exclude-fields in be_groups forms Usage: 2 (t3lib_tceforms + t3lib_transferdata)
Definition at line 677 of file class.t3lib_befunc.php. |
|
|
Returns an array with explicit Allow/Deny fields. Used for listing these field/value pairs in be_groups forms
Definition at line 707 of file class.t3lib_befunc.php. |
|
|
Returns file icon name (from $FILEICONS) for the fileextension $ext Usage: 10
Definition at line 2013 of file class.t3lib_befunc.php. |
|
||||||||||||||||||||||||
|
Finds the Data Structure for a FlexForm field Usage: 5
Definition at line 969 of file class.t3lib_befunc.php. |
|
||||||||||||||||||||||||||||
|
Checkbox function menu. Works like ->getFuncMenu() but takes no $menuItem array since this is a simple checkbox. Usage: 34
Definition at line 2372 of file class.t3lib_befunc.php. |
|
||||||||||||||||||||||||||||
|
Input field function menu Works like ->getFuncMenu() / ->getFuncCheck() but displays a input field instead which updates the script "onchange" Usage: 1
Definition at line 2397 of file class.t3lib_befunc.php. |
|
||||||||||||||||||||||||||||
|
Returns a selector box "function menu" for a module Requires the JS function jumpToUrl() to be available See Inside TYPO3 for details about how to use / make Function menus Usage: 50
Definition at line 2329 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Returns an array with be_groups records (title, uid) of all groups NOT DELETED sorted by their title Usage: 8 (spec. ext. "beuser" and module "web_perm")
Definition at line 1318 of file class.t3lib_befunc.php. |
|
||||||||||||
|
Retrieves the string content stored with hash key, $hash, in cache_hash IDENTICAL to the function by same name found in t3lib_page: Usage: 2
Definition at line 1116 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Returns the label-value for fieldname $col in table, $table If $printAllWrap is set (to a "wrap") then it's wrapped around the $col value IF THE COLUMN $col DID NOT EXIST in TCA!, eg. $printAllWrap='|' and the fieldname was 'not_found_field' then the return value would be 'not_found_field' Usage: 17
Definition at line 1775 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Returns the label of the first found entry in an "items" array from $TCA (tablename=$table/fieldname=$col) where the value is $key Usage: 9
Definition at line 1749 of file class.t3lib_befunc.php. |
|
||||||||||||
|
Returns an array with be_groups records (like ->getGroupNames) but:
Definition at line 1335 of file class.t3lib_befunc.php. |
|
||||||||||||||||||||
|
Returns "list of backend modules". Most likely this will be obsolete soon / removed. Don't use. Usage: 3
Definition at line 3586 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Returns live version of record
Definition at line 3277 of file class.t3lib_befunc.php. |
|
||||||||||||
|
Returns the merged User/Page TSconfig for page id, $id. Please read details about module programming elsewhere! Usage: 15
Definition at line 2308 of file class.t3lib_befunc.php. |
|
||||||||||||||||||||||||||||
|
Returns an array which is most backend modules becomes MOD_SETTINGS containing values from function menus etc. determining the function of the module. This is kind of session variable management framework for the backend users. If a key from MOD_MENU is set in the CHANGED_SETTINGS array (eg. a value is passed to the script from the outside), this value is put into the settings-array Ultimately, see Inside TYPO3 for how to use this function in relation to your modules. Usage: 23
Definition at line 2492 of file class.t3lib_befunc.php. |
|
||||||||||||||||
|
Returns the Page TSconfig for page with id, $id Requires class "t3lib_TSparser" Usage: 26 (spec. in ext info_pagetsconfig)
Definition at line 1152 of file class.t3lib_befunc.php. |
|
|
Returns "web" if the $path (absolute) is within the DOCUMENT ROOT - and thereby qualifies as a "web" folder. Usage: 4
|