Méthode | Description | |
---|---|---|
addEnclosuresToTemplate ( object $objTemplate, array $arrItem, string $strKey = 'enclosure' ) | Add enclosures to a template | |
addImageToTemplate ( object $objTemplate, array $arrItem, integer $intMaxWidth = null, string $strLightboxId = null ) | Add an image to a template | |
addStaticUrlTo ( string $script ) : string | Add a static URL to a script | |
addToUrl ( string $strRequest, boolean $blnAddRef = true, array $arrUnset = [] ) : string | Add a request string to the current URL | |
convertRelativeUrls ( string $strContent, string $strBase = '', boolean $blnHrefOnly = false ) : string | Convert relative URLs in href and src attributes to absolute URLs | |
findContentElement ( string $strName ) : string | Find a content element in the TL_CTE array and return the class name | |
findFrontendModule ( string $strName ) : string | Find a front end module in the FE_MOD array and return the class name | |
generateFrontendUrl ( array $arrRow, string $strParams = null, string $strForceLang = null, boolean $blnFixDomain = false ) : string | Generate a front end URL | |
generateImage ( string $src, string $alt = '', string $attributes = '' ) : string | Generate an image tag and return it as string | |
generateMargin ( array $arrValues, string $strType = 'margin' ) : string | Compile the margin format definition based on an array of values | |
getArticle ( mixed $varId, boolean $blnMultiMode = false, boolean $blnIsInsertTag = false, string $strColumn = 'main' ) : string | boolean | Generate an article and return it as string | |
getBackendThemes ( ) : array | Return the back end themes as array | |
getContentElement ( mixed $intId, string $strColumn = 'main' ) : string | Generate a content element and return it as string | |
getForm ( mixed $varId, string $strColumn = 'main' ) : string | Generate a form and return it as string | |
getFrontendModule ( mixed $intId, string $strColumn = 'main' ) : string | Generate a front end module and return it as string | |
getPageDetails ( mixed $intId ) : |
Get the details of a page including inherited parameters | |
getPageSections ( ) : array | Return all page sections as array | |
getPageStatusIcon ( |
Calculate the page status icon name based on the page parameters | |
getTemplate ( string $strTemplate, string $strFormat = 'html5' ) : string | Find a particular template file and return its path | |
getTemplateGroup ( string $strPrefix ) : array | Return all template files of a particular group as array | |
getTheme ( ) : string | Return the current theme as string | |
isVisibleElement ( |
Check whether an element is visible in the front end | |
loadDataContainer ( string $strTable, boolean $blnNoCache = false ) | Load a set of DCA files | |
optionChecked ( string $strOption, mixed $varValues ) : string | Return a "checked" attribute if the option is checked | |
optionSelected ( string $strOption, mixed $varValues ) : string | Return a "selected" attribute if the option is selected | |
redirect ( string $strLocation, integer $intStatus = 303 ) | Redirect to another page | |
reload ( ) | Reload the current page | |
replaceDynamicScriptTags ( string $strBuffer ) : string | Replace the dynamic script tags (see #4203) | |
replaceInsertTags ( string $strBuffer, boolean $blnCache = true ) : string | Replace insert tags with their values | |
restoreBasicEntities ( string $strBuffer ) : string | Restore basic entities | |
sendFileToBrowser ( string $strFile ) | Send a file to the browser so the "save as …" dialogue opens | |
setStaticUrls ( |
Set the static URL constants |
Méthode | Description | |
---|---|---|
classFileExists ( string $strClass ) : boolean | Return true if a class exists (tries to autoload the class) | |
createInitialVersion ( string $strTable, integer $intId ) | Create an initial version of a record | |
createNewVersion ( string $strTable, integer $intId ) | Create a new version of a record | |
eliminateNestedPages ( array $arrPages, string $strTable = null, boolean $blnSorting = false ) : array | Take an array of pages and eliminate the nested ones | |
eliminateNestedPaths ( array $arrPaths ) : array | Take an array of file paths and eliminate the nested ones | |
getBackendLanguages ( ) : array | Return the installed back end languages as array | |
getChildRecords ( mixed $arrParentIds, string $strTable, boolean $blnSorting = false, array $arrReturn = [], string $strWhere = '' ) : array | Return the IDs of all child records of a particular record (see #2475) | |
getDatePickerString ( ) : boolean | Return the date picker string (see #3218) | |
getImage ( string $image, integer $width, integer $height, string $mode = '', string $target = null, boolean $force = false ) : string | null | Resize an image and crop it if necessary | |
getParentEntries ( string $strTable, integer $intId ) : string | Get the parent records of an entry and return them as string which can be used in a log message | |
getParentRecords ( integer $intId, string $strTable ) : array | Return the IDs of all parent records of a particular record | |
getSpellcheckerString ( ) : string | Return the languages for the TinyMCE spellchecker | |
parseSimpleTokens ( string $strBuffer, array $arrData ) : string | Parse simple tokens that can be used to personalize newsletters | |
prepareForWidget ( array $arrData, string $strName, mixed $varValue = null, string $strField = '', string $strTable = '' ) : array | Convert a DCA file configuration to be used with widgets | |
printArticleAsPdf ( |
Print an article as PDF and stream it to the browser | |
redirectToFrontendPage ( integer $intPage, mixed $varArticle = null, boolean $blnReturn = false ) : string | Redirect to a front end page | |
removeOldFeeds ( boolean $blnReturn = false ) : array | Remove old XML files from the share directory | |
replaceOldBePaths ( string $strContext ) : string | Replace the old back end paths | |
resizeImage ( string $image, integer $width, integer $height, string $mode = '' ) : boolean | Resize an image and crop it if necessary |
public static addImageToTemplate ( object $objTemplate, array $arrItem, integer $intMaxWidth = null, string $strLightboxId = null ) | ||
$objTemplate | object | The template object to add the image to |
$arrItem | array | The element or module as array |
$intMaxWidth | integer | An optional maximum width of the image |
$strLightboxId | string | An optional lightbox ID |
public static addStaticUrlTo ( string $script ) : string | ||
$script | string | The script path |
Résultat | string | The script path with the static URL |
protected classFileExists ( string $strClass ) : boolean | ||
$strClass | string | The class name |
Résultat | boolean | True if the class exists |
public static convertRelativeUrls ( string $strContent, string $strBase = '', boolean $blnHrefOnly = false ) : string | ||
$strContent | string | The text with the URLs to be converted |
$strBase | string | An optional base URL |
$blnHrefOnly | boolean | If true, only href attributes will be converted |
Résultat | string | The text with the replaced URLs |
protected createInitialVersion ( string $strTable, integer $intId ) | ||
$strTable | string | The table name |
$intId | integer | The ID of the element to be versioned |
protected createNewVersion ( string $strTable, integer $intId ) | ||
$strTable | string | The table name |
$intId | integer | The ID of the element to be versioned |
protected eliminateNestedPaths ( array $arrPaths ) : array | ||
$arrPaths | array | The array of file paths |
Résultat | array | The file paths array without the nested paths |
public static findContentElement ( string $strName ) : string | ||
$strName | string | The content element name |
Résultat | string | The class name |
public static findFrontendModule ( string $strName ) : string | ||
$strName | string | The front end module name |
Résultat | string | The class name |
public static generateFrontendUrl ( array $arrRow, string $strParams = null, string $strForceLang = null, boolean $blnFixDomain = false ) : string | ||
$arrRow | array | An array of page parameters |
$strParams | string | An optional string of URL parameters |
$strForceLang | string | Force a certain language |
$blnFixDomain | boolean | Check the domain of the target page and append it if necessary |
Résultat | string | An URL that can be used in the front end |
public static getArticle ( mixed $varId, boolean $blnMultiMode = false, boolean $blnIsInsertTag = false, string $strColumn = 'main' ) : string | boolean | ||
$varId | mixed | The article ID or a Model object |
$blnMultiMode | boolean | If true, only teasers will be shown |
$blnIsInsertTag | boolean | If true, there will be no page relation |
$strColumn | string | The name of the column |
Résultat | string | boolean | The article HTML markup or false |
protected getBackendLanguages ( ) : array | ||
Résultat | array | An array of available back end languages |
public static getBackendThemes ( ) : array | ||
Résultat | array | An array of available back end themes |
protected getChildRecords ( mixed $arrParentIds, string $strTable, boolean $blnSorting = false, array $arrReturn = [], string $strWhere = '' ) : array | ||
$arrParentIds | mixed | An array of parent IDs |
$strTable | string | The table name |
$blnSorting | boolean | True if the table has a sorting field |
$arrReturn | array | The array to be returned |
$strWhere | string | Additional WHERE condition |
Résultat | array | An array of child record IDs |
protected getDatePickerString ( ) : boolean | ||
Résultat | boolean |
protected getImage ( string $image, integer $width, integer $height, string $mode = '', string $target = null, boolean $force = false ) : string | null | ||
$image | string | The image path |
$width | integer | The target width |
$height | integer | The target height |
$mode | string | An optional resize mode |
$target | string | An optional target to be replaced |
$force | boolean | Override existing target images |
Résultat | string | null | The image path or null |
public static getPageDetails ( mixed $intId ) : |
||
$intId | mixed | A page ID or a Model object |
Résultat | The page model or null |
public static getPageSections ( ) : array | ||
Résultat | array | An array of active page sections |
public static getPageStatusIcon ( |
||
$objPage | The page object | |
Résultat | string | The status icon name |
protected getSpellcheckerString ( ) : string | ||
Résultat | string | The TinyMCE spellchecker language string |
public static getTemplateGroup ( string $strPrefix ) : array | ||
$strPrefix | string | The template name prefix (e.g. "ce_") |
Résultat | array | An array of template names |
public static isVisibleElement ( |
||
$objElement | The element model | |
Résultat | boolean | True if the element is visible |
public static loadDataContainer ( string $strTable, boolean $blnNoCache = false ) | ||
$strTable | string | The table name |
$blnNoCache | boolean | If true, the cache will be bypassed |
protected prepareForWidget ( array $arrData, string $strName, mixed $varValue = null, string $strField = '', string $strTable = '' ) : array | ||
$arrData | array | The field configuration array |
$strName | string | The field name in the form |
$varValue | mixed | The field value |
$strField | string | The field name in the database |
$strTable | string | The table name |
Résultat | array | An array that can be passed to a widget |
protected printArticleAsPdf ( |
||
$objArticle | An article object |
protected removeOldFeeds ( boolean $blnReturn = false ) : array | ||
$blnReturn | boolean | If true, only return the finds and don't delete |
Résultat | array | An array of old XML files |
public static replaceDynamicScriptTags ( string $strBuffer ) : string | ||
$strBuffer | string | The string with the tags to be replaced |
Résultat | string | The string with the replaced tags |
protected static replaceOldBePaths ( string $strContext ) : string | ||
$strContext | string | The context |
Résultat | string | The modified context |
public static restoreBasicEntities ( string $strBuffer ) : string | ||
$strBuffer | string | The string with the tags to be replaced |
Résultat | string | The string with the original entities |
public static sendFileToBrowser ( string $strFile ) | ||
$strFile | string | The file path |
public static setStaticUrls ( |
||
$objPage | An optional page object |