TYPO3
7.6
|
Static Public Member Functions | |
static | setPackageManager (PackageManager $packageManager) |
static | isLoaded ($key, $exitOnError=false) |
static | extPath ($key, $script= '') |
static | extRelPath ($key) |
static | siteRelPath ($key) |
static | getCN ($key) |
static | getExtensionKeyByPrefix ($prefix) |
static | clearExtensionKeyMap () |
static | getExtensionVersion ($key) |
static | addTCAcolumns ($table, $columnArray, $addTofeInterface=false) |
static | addToAllTCAtypes ($table, $newFieldsString, $typeList= '', $position= '') |
static | addFieldsToAllPalettesOfField ($table, $field, $addFields, $insertionPosition= '') |
static | addFieldsToPalette ($table, $palette, $addFields, $insertionPosition= '') |
static | addTcaSelectItem ($table, $field, array $item, $relativeToField= '', $relativePosition= '') |
static | getFileFieldTCAConfig ($fieldName, array $customSettingOverride=array(), $allowedFileExtensions= '', $disallowedFileExtensions= '') |
static | addFieldsToUserSettings ($addFields, $insertionPosition= '') |
static | allowTableOnStandardPages ($table) |
static | addExtJSModule ($extensionName, $mainModuleName, $subModuleName= '', $position= '', array $moduleConfiguration=array()) |
static | configureModule ($moduleSignature, $modulePath) |
static | addModule ($main, $sub= '', $position= '', $path= '', $moduleConfiguration=array()) |
static | registerExtDirectComponent ($endpointName, $callbackClass, $moduleName=null, $accessLevel=null) |
static | registerAjaxHandler ($ajaxId, $callbackMethod, $csrfTokenCheck=true) |
static | addModulePath ($name, $path) |
static | insertModuleFunction ($modname, $className, $classPath=null, $title, $MM_key= 'function', $WS= '') |
static | appendToTypoConfVars ($group, $key, $content) |
static | addPageTSConfig ($content) |
static | addUserTSConfig ($content) |
static | addLLrefForTCAdescr ($tca_descr_key, $file_ref) |
static | addNavigationComponent ($module, $componentId, $extensionKey=null) |
static | addCoreNavigationComponent ($module, $componentId) |
static | addService ($extKey, $serviceType, $serviceKey, $info) |
static | findService ($serviceType, $serviceSubType= '', $excludeServiceKeys=array()) |
static | findServiceByKey ($serviceKey) |
static | isServiceAvailable ($serviceType, $serviceKey, $serviceDetails) |
static | deactivateService ($serviceType, $serviceKey) |
static | addPlugin ($itemArray, $type= 'list_type', $extensionKey=null) |
static | addPiFlexFormValue ($piKeyToMatch, $value, $CTypeToMatch= 'list') |
static | addToInsertRecords ($table, $content_table= 'tt_content', $content_field= 'records') |
static | addPItoST43 ($key, $classFile= '', $suffix= '', $type= 'list_type', $cached=0) |
static | addStaticFile ($extKey, $path, $title) |
static | registerPageTSConfigFile ($extKey, $file, $title) |
static | addTypoScriptSetup ($content) |
static | addTypoScriptConstants ($content) |
static | addTypoScript ($key, $type, $content, $afterStaticUid=0) |
static | getExtensionIcon ($extensionPath, $returnFullPath=false) |
static | loadNewTcaColumnsConfigFiles () |
static | removeCacheFiles () |
static | getLoadedExtensionListArray () |
static | loadExtension ($extensionKey) |
static | unloadExtension ($extensionKey) |
Static Protected Member Functions | |
static | getCacheManager () |
static | getSignalSlotDispatcher () |
static | executePositionedStringInsertion ($list, $insertionList, $insertionPosition= '') |
static | removeDuplicatesForInsertion ($insertionList, $list= '') |
static | explodeItemList ($itemList) |
static | generateItemList (array $items, $useRawData=false) |
static | loadSingleExtLocalconfFiles () |
static | createExtLocalconfCacheEntry () |
static | getExtLocalconfCacheIdentifier () |
static | buildBaseTcaFromSingleFiles () |
static | emitTcaIsBeingBuiltSignal (array $tca) |
static | getBaseTcaCacheIdentifier () |
static | loadSingleExtTablesFiles () |
static | createExtTablesCacheEntry () |
static | getExtTablesCacheIdentifier () |
Static Protected Attributes | |
static | $extensionKeyMap |
static | $extTablesWasReadFromCacheOnce = false |
static | $packageManager |
static | $cacheManager |
static | $signalSlotDispatcher |
Extension Management functions
This class is never instantiated, rather the methods inside is called as functions like ::isLoaded('my_extension');
Definition at line 27 of file ExtensionManagementUtility.php.
|
static |
Registers a core navigation component
string | $module | |
string | $componentId |
Definition at line 1133 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adds an ExtJS module (main or sub) to the backend interface FOR USE IN ext_tables.php FILES
string | $extensionName | |
string | $mainModuleName | Is the main module key |
string | $subModuleName | Is the submodule key, if blank a plain main module is generated |
string | $position | Passed to ::addModule, see reference there |
array | $moduleConfiguration | Icon with array keys: access, icon, labels to configure the module |
\InvalidArgumentException |
Definition at line 832 of file ExtensionManagementUtility.php.
References $GLOBALS, GeneralUtility\camelCaseToLowerCaseUnderscored(), and ArrayUtility\mergeRecursiveWithOverrule().
|
static |
Adds new fields to all palettes that is defined after an existing field. If the field does not have a following palette yet, it's created automatically and gets called "generatedFor-$field".
See unit tests for more examples and edge cases.
Example:
'aTable' => array( 'types' => array( 'aType' => array( 'showitem' => 'aField, –palette–;;aPalette', ), ), 'palettes' => array( 'aPallete' => array( 'showitem' => 'fieldB, fieldC', ), ), ),
Calling addFieldsToAllPalettesOfField('aTable', 'aField', 'newA', 'before: fieldC') results in:
'aTable' => array( 'types' => array( 'aType' => array( 'showitem' => 'aField, –palette–;;aPalette', ), ), 'palettes' => array( 'aPallete' => array( 'showitem' => 'fieldB, newA, fieldC', ), ), ),
string | $table | Name of the table |
string | $field | Name of the field that has the palette to be extended |
string | $addFields | List of fields to be added to the palette |
string | $insertionPosition | Insert fields before (default) or after one |
Definition at line 407 of file ExtensionManagementUtility.php.
References $GLOBALS, StringUtility\beginsWith(), and GeneralUtility\trimExplode().
|
static |
Adds new fields to a palette. If the palette does not exist yet, it's created automatically.
string | $table | Name of the table |
string | $palette | Name of the palette to be extended |
string | $addFields | List of fields to be added to the palette |
string | $insertionPosition | Insert fields before (default) or after one |
Definition at line 460 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adds a list of new fields to the TYPO3 USER SETTINGS configuration "showitem" list, the array with the new fields itself needs to be added additionally to show up in the user setup, like $GLOBALS['TYPO3_USER_SETTINGS']['columns'] += $tempColumns
string | $addFields | List of fields to be added to the user settings |
string | $insertionPosition | Insert fields before (default) or after one |
Definition at line 628 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adds a reference to a locallang file with $GLOBALS['TCA_DESCR'] labels FOR USE IN ext_tables.php FILES eg. ::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf'); for the pages table or ::addLLrefForTCAdescr('_MOD_web_layout', 'EXT:frontend/Resources/Private/Language/locallang_csh_weblayout.xlf'); for the Web > Page module.
string | $tca_descr_key | Description key. Typically a database table (like "pages") but for applications can be other strings, but prefixed with "_MOD_") |
string | $file_ref | File reference to locallang file, eg. "EXT:lang/locallang_csh_pages.xlf" (or ".xml") |
Definition at line 1091 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adds a module (main or sub) to the backend interface FOR USE IN ext_tables.php FILES
string | $main | The main module key, $sub is the submodule key. So $main would be an index in the $TBE_MODULES array and $sub could be an element in the lists there. |
string | $sub | The submodule key. If $sub is not set a blank $main module is created. |
string | $position | Can be used to set the position of the $sub module within the list of existing submodules for the main module. $position has this syntax: [cmd]:[submodule-key]. cmd can be "after", "before" or "top" (or blank which is default). If "after"/"before" then submodule will be inserted after/before the existing submodule with [submodule-key] if found. If not found, the bottom of list. If "top" the module is inserted in the top of the submodule list. |
string | $path | The absolute path to the module. If this value is defined the path is added as an entry in $TBE_MODULES['_PATHS'][ main_sub ] = $path; and thereby tells the backend where the newly added modules is found in the system. This option is deprecated as of TYPO3 CMS 7, and will have no effect in TYPO3 CMS 8 anymore. |
array | $moduleConfiguration | additional configuration, previously put in "conf.php" of the module directory |
Definition at line 908 of file ExtensionManagementUtility.php.
References $GLOBALS, GeneralUtility\deprecationLog(), GeneralUtility\inList(), and GeneralUtility\trimExplode().
|
static |
Adds a module path to $GLOBALS['TBE_MODULES'] for used with the module dispatcher, index.php Used only for modules that are not placed in the main/sub menu hierarchy by the traditional mechanism of addModule() Examples for this is context menu functionality (like import/export) which runs as an independent module through index.php FOR USE IN ext_tables.php FILES Example: ::addModulePath('xMOD_tximpexp', ::extPath($_EXTKEY).'app/');
string | $name | The name of the module, refer to conf.php of the module. |
string | $path | The absolute path to the module directory inside of which "index.php" and "conf.php" is found. |
Definition at line 999 of file ExtensionManagementUtility.php.
References $GLOBALS, StringUtility\beginsWith(), ExtensionManagementUtility\extPath(), and GeneralUtility\logDeprecatedFunction().
|
static |
Registers a navigation component
string | $module | |
string | $componentId | |
string | $extensionKey |
\RuntimeException |
Definition at line 1113 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adds $content to the default Page TSconfig as set in $GLOBALS['TYPO3_CONF_VARS'][BE]['defaultPageTSconfig'] Prefixed with a [GLOBAL] line FOR USE IN ext_tables.php/ext_localconf.php FILES
string | $content | Page TSconfig content |
Definition at line 1060 of file ExtensionManagementUtility.php.
|
static |
Adds an entry to the "ds" array of the tt_content field "pi_flexform". This is used by plugins to add a flexform XML reference / content for use when they are selected as plugin or content element.
string | $piKeyToMatch | Plugin key as used in the list_type field. Use the asterisk * to match all list_type values. |
string | $value | Either a reference to a flex-form XML file (eg. "FILE:EXT:newloginbox/flexform_ds.xml") or the XML directly. |
string | $CTypeToMatch | Value of tt_content.CType (Content Type) to match. The default is "list" which corresponds to the "Insert Plugin" content element. Use the asterisk * to match all CType values. |
Definition at line 1358 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Add PlugIn to the default template rendering (previously called "Static Template #43")
When adding a frontend plugin you will have to add both an entry to the TCA definition of tt_content table AND to the TypoScript template which must initiate the rendering.
The naming of #43 has historic reason and is rooted inside code which is now put into a TER extension called "statictemplates". Since the static template with uid 43 is the "content.default" and practically always used for rendering the content elements it's very useful to have this function automatically adding the necessary TypoScript for calling your plugin. It will also work for the extension "css_styled_content". The logic is now generalized and called "defaultContentRendering", see addTypoScript() as well.
$type determines the type of frontend plugin:
string | $key | The extension key |
string | $classFile | The PHP-class filename relative to the extension root directory. If set to blank a default value is chosen according to convensions. |
string | $suffix | Is used as a suffix of the class name (e.g. "_pi1") |
string | $type | See description above |
int | $cached | If $cached is set as USER content object (cObject) is created - otherwise a USER_INT object is created. |
Definition at line 1410 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adds an entry to the list of plugins in content elements of type "Insert plugin" Takes the $itemArray (label, value[,icon]) and adds to the items-array of $GLOBALS['TCA'][tt_content] elements with CType "listtype" (or another field if $type points to another fieldname) If the value (array pos. 1) is already found in that items-array, the entry is substituted, otherwise the input array is added to the bottom. Use this function to add a frontend plugin to this list of plugin-types - or more generally use this function to add an entry to any selectorbox/radio-button set in the TCEFORMS FOR USE IN ext_tables.php FILES or files in Configuration/TCA/Overrides/*.php Use the latter to benefit from TCA caching!
array | $itemArray | Numerical array: [0] => Plugin label, [1] => Underscored extension key, [2] => Path to plugin icon relative to TYPO3_mainDir |
string | $type | Type (eg. "list_type") - basically a field from "tt_content" table |
string | $extensionKey | The extension key |
\RuntimeException |
Definition at line 1321 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adds a service to the global services array
string | $extKey | Extension key |
string | $serviceType | Service type, must not be prefixed "tx_" or "Tx_ @param string $serviceKey Service key, must be prefixed "tx_", "Tx_" or "user_ |
array | $info | Service description array |
Definition at line 1153 of file ExtensionManagementUtility.php.
References $GLOBALS, and GeneralUtility\trimExplode().
|
static |
Call this method to add an entry in the static template list found in sys_templates FOR USE IN ext_tables.php FILES or files in Configuration/TCA/Overrides/*.php Use the latter to benefit from TCA caching!
string | $extKey | Is of course the extension key |
string | $path | Is the path where the template files (fixed names) include_static.txt (integer list of uids from the table "static_templates"), constants.txt, setup.txt, and include_static_file.txt is found (relative to extPath, eg. 'static/'). The file include_static_file.txt, allows you to include other static templates defined in files, from your static template, and thus corresponds to the field 'include_static_file' in the sys_template table. The syntax for this is a comma separated list of static templates to include, like: EXT:css_styled_content/static/,EXT:da_newsletter_subscription/static/,EXT:cc_random_image/pi2/static/ |
string | $title | Is the title in the selector box. |
Definition at line 1468 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adding fields to an existing table definition in $GLOBALS['TCA'] Adds an array with $GLOBALS['TCA'] column-configuration to the $GLOBALS['TCA']-entry for that table. This function adds the configuration needed for rendering of the field in TCEFORMS - but it does NOT add the field names to the types lists! So to have the fields displayed you must also call fx. addToAllTCAtypes or manually add the fields to the types list. FOR USE IN ext_tables.php FILES or files in Configuration/TCA/Overrides/*.php Use the latter to benefit from TCA caching!
string | $table | The table name of a table already present in $GLOBALS['TCA'] with a columns section |
array | $columnArray | The array with the additional columns (typical some fields an extension wants to add) |
bool | $addTofeInterface | DEPRECATED: Usage of feInterface is no longer part of the TYPO3 CMS Core. Please check EXT:statictemplates. |
Definition at line 265 of file ExtensionManagementUtility.php.
References $GLOBALS, and GeneralUtility\deprecationLog().
Referenced by CategoryRegistry\addTcaColumn().
|
static |
Add an item to a select field item list.
Warning: Do not use this method for radio or check types, especially not with $relativeToField and $relativePosition parameters. This would shift existing database data 'off by one'.
As an example, this can be used to add an item to tt_content CType select drop-down after the existing 'mailform' field with these parameters:
\InvalidArgumentException | If given parameters are not of correct |
\RuntimeException | If reference to related position fields can not |
string | $table | Name of TCA table |
string | $field | Name of TCA field |
array | $item | New item to add |
string | $relativeToField | Add item relative to existing field |
string | $relativePosition | Valid keywords: 'before', 'after' |
Definition at line 501 of file ExtensionManagementUtility.php.
References $GLOBALS, and ArrayUtility\filterByValueRecursive().
|
static |
Makes fields visible in the TCEforms, adding them to the end of (all) "types"-configurations
Adds a string $string (comma separated list of field names) to all ["types"][xxx]["showitem"] entries for table $table (unless limited by $typeList) This is needed to have new fields shown automatically in the TCEFORMS of a record from $table. Typically this function is called after having added new columns (database fields) with the addTCAcolumns function FOR USE IN ext_tables.php FILES or files in Configuration/TCA/Overrides/*.php Use the latter to benefit from TCA caching!
string | $table | Table name |
string | $newFieldsString | Field list to add. |
string | $typeList | List of specific types to add the field list to. (If empty, all type entries are affected) |
string | $position | Insert fields before (default) or after one, or replace a field |
Definition at line 292 of file ExtensionManagementUtility.php.
References $GLOBALS, GeneralUtility\inList(), and GeneralUtility\trimExplode().
Referenced by CategoryRegistry\addToAllTCAtypes().
|
static |
Adds the $table tablename to the list of tables allowed to be includes by content element type "Insert records" By using $content_table and $content_field you can also use the function for other tables. FOR USE IN ext_tables.php FILES or files in Configuration/TCA/Overrides/*.php Use the latter to benefit from TCA caching!
string | $table | Table name to allow for "insert record |
string | $content_table | Table name TO WHICH the $table name is applied. See $content_field as well. |
string | $content_field | Field name in the database $content_table in which $table is allowed to be added as a reference ("Insert Record") |
Definition at line 1375 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adds $content to the default TypoScript code for either setup or constants as set in $GLOBALS['TYPO3_CONF_VARS'][FE]['defaultTypoScript_*'] (Basically this function can do the same as addTypoScriptSetup and addTypoScriptConstants - just with a little more hazzle, but also with some more options!) FOR USE IN ext_localconf.php FILES Note: As of TYPO3 CMS 6.2, static template #43 (content: default) was replaced with "defaultContentRendering" which makes it possible that a first extension like css_styled_content registers a "contentRendering" template (= a template that defines default content rendering TypoScript) by adding itself to $TYPO3_CONF_VARS[FE][contentRenderingTemplates][] = 'myext/Configuration/TypoScript'. An extension calling addTypoScript('myext', 'setup', $typoScript, 'defaultContentRendering') will add its TypoScript directly after; For now, "43" and "defaultContentRendering" can be used, but "defaultContentRendering" is more descriptive and should be used in the future.
string | $key | Is the extension key (informative only). |
string | $type | Is either "setup" or "constants" and obviously determines which kind of TypoScript code we are adding. |
string | $content | Is the TS content, will be prefixed with a [GLOBAL] line and a comment-header. |
int | string | $afterStaticUid | Is either an integer pointing to a uid of a static_template or a string pointing to the "key" of a static_file template ([reduced extension_key]/[local path]). The points is that the TypoScript you add is included only IF that static template is included (and in that case, right after). So effectively the TypoScript you set can specifically overrule settings from those static templates. |
Definition at line 1543 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adds $content to the default TypoScript constants code as set in $GLOBALS['TYPO3_CONF_VARS'][FE]['defaultTypoScript_constants'] Prefixed with a [GLOBAL] line FOR USE IN ext_localconf.php FILES
string | $content | TypoScript Constants string |
Definition at line 1518 of file ExtensionManagementUtility.php.
|
static |
Adds $content to the default TypoScript setup code as set in $GLOBALS['TYPO3_CONF_VARS'][FE]['defaultTypoScript_setup'] Prefixed with a [GLOBAL] line FOR USE IN ext_localconf.php FILES
string | $content | TypoScript Setup string |
Definition at line 1503 of file ExtensionManagementUtility.php.
|
static |
Adds $content to the default User TSconfig as set in $GLOBALS['TYPO3_CONF_VARS'][BE]['defaultUserTSconfig'] Prefixed with a [GLOBAL] line FOR USE IN ext_tables.php/ext_localconf.php FILES
string | $content | User TSconfig content |
Definition at line 1075 of file ExtensionManagementUtility.php.
|
static |
Add tablename to default list of allowed tables on pages (in $PAGES_TYPES) Will add the $table to the list of tables allowed by default on pages as setup by $PAGES_TYPES['default']['allowedTables'] FOR USE IN ext_tables.php FILES
string | $table | Table name |
Definition at line 815 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Adds some more content to a key of TYPO3_CONF_VARS array.
This also tracks which content was added by extensions (in TYPO3_CONF_VARS_extensionAdded) so that they cannot be editted again through the Install Tool.
string | $group | The group ('FE', 'BE', 'SYS' ...) |
string | $key | The key of this setting within the group |
string | $content | The text to add (include leading "\n" in case of multi-line entries) |
Definition at line 1046 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
staticprotected |
Find all Configuration/TCA/* files of extensions and create base TCA from it. The filename must be the table name in $GLOBALS['TCA'], and the content of the file should return an array with content of a specific table.
Definition at line 1738 of file ExtensionManagementUtility.php.
References $GLOBALS, GeneralUtility\deprecationLog(), CategoryRegistry\getInstance(), and GeneralUtility\makeInstance().
|
static |
Clears the extension key map.
Definition at line 217 of file ExtensionManagementUtility.php.
|
static |
This method is called from ::checkMod and it replaces old conf.php.
string | $moduleSignature | The module name |
string | $modulePath | Absolute path to module (not used by Extbase currently) |
Definition at line 872 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
staticprotected |
Create cache entry for concatenated ext_localconf.php files
Definition at line 1650 of file ExtensionManagementUtility.php.
References $_EXTCONF, $GLOBALS, and GeneralUtility\getUrl().
|
staticprotected |
Create concatenated ext_tables.php cache file
Definition at line 1903 of file ExtensionManagementUtility.php.
References $_EXTCONF, $GLOBALS, and GeneralUtility\getUrl().
|
static |
Deactivate a service
Definition at line 1297 of file ExtensionManagementUtility.php.
References $GLOBALS.
Referenced by GeneralUtility\makeInstanceService().
|
staticprotected |
Emits the signal and uses the result of slots for the final TCA This means, that all slots must return the complete TCA to be effective. If a slot calls methods that manipulate the global array, it needs to return the global array in the end. To be future proof, a slot should manipulate the signal argument only and return it after manipulation.
array | $tca |
Definition at line 1814 of file ExtensionManagementUtility.php.
|
staticprotected |
Inserts as list of data into an existing list. The insertion position can be defined accordant before of after existing list items.
Example:
$insertPosition may contain ; and - characters: after:–palette–;;title
string | $list | The list of items to be extended |
string | $insertionList | The list of items to inserted |
string | $insertionPosition | Insert fields before (default) or after one |
Definition at line 650 of file ExtensionManagementUtility.php.
References $list, and GeneralUtility\trimExplode().
|
staticprotected |
Generates an array of fields/items with additional information such as e.g. the name of the palette.
string | $itemList | List of fields/items to be splitted up |
Definition at line 745 of file ExtensionManagementUtility.php.
References GeneralUtility\trimExplode().
|
static |
Returns the absolute path to the extension with extension key $key.
$key | string Extension key |
$script | string $script is appended to the output if set. |
\BadFunctionCallException |
Definition at line 129 of file ExtensionManagementUtility.php.
Referenced by SystemInformationToolbarItem\__construct(), SchedulerModuleController\__construct(), TemplateService\addExtensionStatics(), ExtensionManagementUtility\addModulePath(), ModuleLoader\checkMod(), RecyclerAjaxController\dispatch(), TemplateViewTest\expandGenericPathPatternWorksWithNewNamingSchemeOfSubPackage(), TemplateViewTest\expandGenericPathPatternWorksWithOldNamingSchemeOfSubPackage(), TerService\fetchTranslation(), MiscUtility\getExtensionMetaData(), GeneralUtility\getFileAbsFileName(), MiscUtility\getIcon(), BackendUtility\getPagesTSconfig(), TemplateService\includeStaticTypoScriptSources(), CharsetConverter\initCharset(), EidUtility\initExtensionTCA(), TypoScriptTemplateConstantEditorModuleFunctionController\initialize_editor(), CharsetConverter\initUnicodeData(), FormResultCompiler\JSbottom(), BackendController\loadResourcesForRegisteredNavigationComponents(), LinkValidatorReport\main(), Bootstrap\registerExtDirectComponents(), NewRecordController\regularNew(), and DistributionController\showAction().
|
static |
Returns the relative path to the extension as measured from from the TYPO3_mainDir If the extension is not loaded the function will die with an error message Useful for images and links from backend
string | $key | Extension key |
\BadFunctionCallException |
Definition at line 147 of file ExtensionManagementUtility.php.
Referenced by TaskModuleController\__construct(), PreviewController\generateJavascript(), BackendController\generateJavascript(), RteHtmlAreaApi\getFullFileName(), RichTextElement\getRteInitJsCode(), DocumentTemplate\getSkinStylesheetDirectories(), TaskModuleController\indexAction(), SelectImage\initDocumentTemplate(), TypoScriptTemplateConstantEditorModuleFunctionController\initialize_editor(), PreviewController\initializeAction(), AbstractController\initializeAction(), WizardView\loadCss(), WizardView\loadJavascript(), BackendController\loadResourcesForRegisteredNavigationComponents(), BackendLayoutWizardController\main(), PagePositionMap\onClickEvent(), NewRecordController\regularNew(), and T3editorElement\render().
|
static |
Find the available service with highest priority
string | $serviceType | Service type |
string | $serviceSubType | Service sub type |
mixed | $excludeServiceKeys | Service keys that should be excluded in the search for a service. Array or comma list. |
Definition at line 1196 of file ExtensionManagementUtility.php.
References $GLOBALS, and GeneralUtility\trimExplode().
Referenced by GeneralUtility\makeInstanceService().
|
static |
Find a specific service identified by its key Note that this completely bypasses the notions of priority and quality
string | $serviceKey | Service key |
\TYPO3\CMS\Core\Exception |
Definition at line 1246 of file ExtensionManagementUtility.php.
References $GLOBALS.
Referenced by ServicesListReport\renderServiceRow().
|
staticprotected |
Generates a list of fields/items out of an array provided by the function getFieldsOfFieldList().
array | $items | The array of fields/items with optional additional information |
bool | $useRawData | Use raw data instead of building by using the details (default: FALSE) |
Definition at line 778 of file ExtensionManagementUtility.php.
|
staticprotected |
Cache identifier of base TCA cache entry.
Definition at line 1838 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
staticprotected |
Getter for the cache manager
Definition at line 73 of file ExtensionManagementUtility.php.
References GeneralUtility\makeInstance().
|
static |
Returns the correct class name prefix for the extension key $key
string | $key | Extension key |
Definition at line 182 of file ExtensionManagementUtility.php.
|
static |
Find extension icon
string | $extensionPath | Path to extension directory. |
bool | $returnFullPath | Return full path of file. |
Definition at line 1581 of file ExtensionManagementUtility.php.
Referenced by ListUtility\getAvailableExtensions(), ExtensionRepository\getExtensionIconWithPath(), and MiscUtility\getIcon().
|
static |
Returns the real extension key like 'tt_news' from an extension prefix like 'tx_ttnews'.
string | $prefix | The extension prefix (e.g. 'tx_ttnews') |
Definition at line 193 of file ExtensionManagementUtility.php.
|
static |
Retrieves the version of an installed extension. If the extension is not installed, this function returns an empty string.
string | $key | The key of the extension to look up, must not be empty |
\InvalidArgumentException | |
\TYPO3\CMS\Core\Package\Exception |
Definition at line 232 of file ExtensionManagementUtility.php.
Referenced by DependencyUtility\isLoadedVersionCompatible().
|
staticprotected |
Cache identifier of concatenated ext_localconf file
Definition at line 1691 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
staticprotected |
Cache identifier for concatenated ext_tables.php files
Definition at line 1991 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Gets the TCA configuration for a field handling (FAL) files.
string | $fieldName | Name of the field to be used |
array | $customSettingOverride | Custom field settings overriding the basics |
string | $allowedFileExtensions | Comma list of allowed file extensions (e.g. "jpg,gif,pdf") |
string | $disallowedFileExtensions |
Definition at line 558 of file ExtensionManagementUtility.php.
References ArrayUtility\mergeRecursiveWithOverrule().
|
static |
Gets an array of loaded extension keys
Definition at line 2021 of file ExtensionManagementUtility.php.
|
staticprotected |
Getter for the signal slot dispatcher
Definition at line 91 of file ExtensionManagementUtility.php.
References $signalSlotDispatcher, and GeneralUtility\makeInstance().
|
static |
Adds a "Function menu module" ('third level module') to an existing function menu for some other backend module The arguments values are generally determined by which function menu this is supposed to interact with See Inside TYPO3 for information on how to use this function. FOR USE IN ext_tables.php FILES
string | $modname | Module name |
string | $className | Class name |
string | $classPath | Class path, deprecated since 6.2, use auto-loading instead |
string | $title | Title of module |
string | $MM_key | Menu array key - default is "function @param string $WS Workspace conditions. Blank means all workspaces, any other string can be a comma list of "online", "offline" and "custom |
Definition at line 1024 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Returns TRUE if the extension with extension key $key is loaded.
string | $key | Extension key to test |
bool | $exitOnError | If $exitOnError is TRUE and the extension is not loaded the function will die with an error message |
\BadFunctionCallException |
Definition at line 112 of file ExtensionManagementUtility.php.
Referenced by DatabaseSystemLanguageRowsTest\addDataResolvesLanguageIsocodeFromStaticInfoTable(), Plaintext\applyToolbarConstraints(), Language\applyToolbarConstraints(), Plaintext\buildJavascriptConfiguration(), ExtensionManagerConfigurationUtility\checkConfigurationBackend(), ExtensionManagerConfigurationUtility\checkConfigurationFrontend(), ContentTypesToTextMediaUpdate\checkForUpdate(), WorkspacesNotificationSettingsUpdate\checkForUpdate(), TableFlexFormToTtContentFieldsUpdate\checkForUpdate(), LanguageIsoCodeUpdate\checkForUpdate(), MediaceExtractionUpdate\checkForUpdate(), StatusReportConflictsCheckHook\checkIfNoConflictingExtensionIsInstalled(), ModuleLoader\checkMod(), PageRepository\checkWorkspaceAccess(), SilentConfigurationUpgradeService\configureBackendLoginSecurity(), ClickMenu\DB_perms(), UninstallExtension\executeAction(), DatabaseRecordList\getButtons(), DatabaseRecordList\getDocHeaderButtons(), GeneralUtility\getFileAbsFileName(), AccessibilityLinkController\getFullFileName(), RteHtmlAreaApi\getFullFileName(), MiscUtility\getIcon(), Language\getLanguages(), BackendUtility\getPagesTSconfig(), DocumentTemplate\getSkinStylesheetDirectories(), TranslationConfigurationProvider\getSystemLanguages(), DocumentTemplate\getVersionSelector(), PageTreeNavigationController\getWorkspaceInfo(), TemplateService\includeStaticTypoScriptSources(), EditDocumentController\init(), DownloadController\installDistributionAction(), DependencyUtility\isDependentExtensionLoaded(), FormResultCompiler\JSbottom(), Language\main(), Spellchecker\main(), Abbreviation\main(), EvaluateDisplayConditions\matchExtensionCondition(), PagePositionMap\onClickEvent(), Clipboard\printClipboard(), IsExtensionLoadedViewHelper\renderStatic(), TypoScriptFrontendController\settingLanguage(), and TypoScriptFrontendController\whichWorkspace().
|
static |
Check if a given service is available, based on the executable files it depends on
string | $serviceType | Type of service |
string | $serviceKey | Specific key of the service |
array | $serviceDetails | Information about the service |
Definition at line 1273 of file ExtensionManagementUtility.php.
References CommandUtility\checkCommand(), and GeneralUtility\trimExplode().
|
static |
Loads given extension
Warning: This method only works if the ugrade wizard to transform localconf.php to LocalConfiguration.php was already run
string | $extensionKey | Extension key to load |
\RuntimeException |
Definition at line 2036 of file ExtensionManagementUtility.php.
|
static |
Loads "columns" of a $TCA table definition if extracted to a "dynamicConfigFile". This method is called after each single ext_tables.php files was included to immediately have the full $TCA ready for the next extension.
$TCA[$tableName]['ctrl']['dynamicConfigFile'] must be the absolute path to a file.
Be aware that 'dynamicConfigFile' is obsolete, and all TCA table definitions should be moved to Configuration/TCA/tablename.php to be fully loaded automatically.
Example: dynamicConfigFile = ::extPath($_EXTKEY) . 'SysNote.php',
\RuntimeException |
Definition at line 1964 of file ExtensionManagementUtility.php.
References GeneralUtility\isAbsPath(), and GeneralUtility\logDeprecatedFunction().
Referenced by CategoryRegistry\add(), and ExtensionCompatibilityTester\loadExtTablesForExtension().
|
staticprotected |
Execute ext_localconf.php files from extensions
Definition at line 1628 of file ExtensionManagementUtility.php.
|
staticprotected |
Load ext_tables.php as single files
Definition at line 1878 of file ExtensionManagementUtility.php.
|
static |
Registers an Ajax Handler
string | $ajaxId | Identifier of the handler, that is used in the request |
string | $callbackMethod | TYPO3 callback method (className->methodName). |
bool | $csrfTokenCheck | Only set this to FALSE if you are sure that the registered handler does not modify any data! |
Definition at line 979 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Registers an Ext.Direct component with access restrictions.
string | $endpointName | |
string | $callbackClass | |
string | $moduleName | Optional: must be <mainmodule> or <mainmodule>_<submodule> |
string | $accessLevel | Optional: can be 'admin' or 'user,group' |
Definition at line 963 of file ExtensionManagementUtility.php.
References $GLOBALS.
Referenced by Bootstrap\registerExtDirectComponents().
|
static |
Call this method to add an entry in the pageTSconfig list found in pages FOR USE in ext_tables.php FILES or files in Configuration/TCA/Overrides/*.php Use the latter to benefit from TCA caching!
string | $extKey | The extension key |
string | $file | The path and title where the TSconfig file is located |
string | $title | The title in the selector box |
Definition at line 1486 of file ExtensionManagementUtility.php.
References $GLOBALS.
|
static |
Remove cache files from php code cache, grouped by 'system'
This removes the following cache entries:
This method is usually only used by extension that fiddle with the loaded extensions. An example is the extension manager and the install tool.
Definition at line 2011 of file ExtensionManagementUtility.php.
|
staticprotected |
Compares an existing list of items and a list of items to be inserted and returns a duplicate-free variant of that insertion list.
Example:
Duplicate values in $insertionList are removed.
string | $insertionList | The list of items to inserted |
string | $list | The list of items to be extended (default: '') |
Definition at line 713 of file ExtensionManagementUtility.php.
References $list.
|
static |
Sets the package manager for all that backwards compatibility stuff, so it doesn't have to be fetched through the bootstap.
PackageManager | $packageManager |
Definition at line 58 of file ExtensionManagementUtility.php.
References ExtensionManagementUtility\$packageManager.
Referenced by TableFlexFormToTtContentFieldsUpdateTest\setUp(), ContentTypesToTextMediaUpdateTest\setUp(), ExtensionCompatibilityTesterTest\tearDown(), TableFlexFormToTtContentFieldsUpdateTest\tearDown(), ContentTypesToTextMediaUpdateTest\tearDown(), ExtensionCompatibilityTesterTest\tryToLoadExtLocalconfAndExtTablesOfExtensionsCallsLoadExtLocalconfForExtension(), ExtensionCompatibilityTesterTest\tryToLoadExtLocalconfAndExtTablesOfExtensionsCallsLoadExtTablesForExtension(), and ExtensionCompatibilityTesterTest\tryToLoadExtLocalconfAndExtTablesOfExtensionsCallsWriteCurrentExtensionToFile().
|
static |
Returns the relative path to the extension as measured from the PATH_site (frontend) If the extension is not loaded the function will die with an error message Useful for images and links from the frontend
string | $key | Extension key |
Definition at line 170 of file ExtensionManagementUtility.php.
References PathUtility\stripPathSitePrefix().
Referenced by RsaEncryptionEncoder\enableRsaEncryption(), RteHtmlAreaApi\getFullFileName(), MiscUtility\getIcon(), and SpellCheckingController\processRequest().
|
static |
Unloads given extension
Warning: This method only works if the ugrade wizard to transform localconf.php to LocalConfiguration.php was already run
string | $extensionKey | Extension key to remove |
\RuntimeException |
Definition at line 2054 of file ExtensionManagementUtility.php.
Referenced by UninstallExtension\executeAction().
|
staticprotected |
Definition at line 66 of file ExtensionManagementUtility.php.
|
staticprotected |
Definition at line 32 of file ExtensionManagementUtility.php.
|
staticprotected |
Definition at line 44 of file ExtensionManagementUtility.php.
|
staticprotected |
Definition at line 49 of file ExtensionManagementUtility.php.
Referenced by ExtensionManagementUtility\setPackageManager().
|
staticprotected |
Definition at line 84 of file ExtensionManagementUtility.php.