Documentation TYPO3 par Ameos |
Public Member Functions | |
isLoaded ($key, $exitOnError=0) | |
extPath ($key, $script='') | |
extRelPath ($key) | |
siteRelPath ($key) | |
getCN ($key) | |
addTCAcolumns ($table, $columnArray, $addTofeInterface=0) | |
addToAllTCAtypes ($table, $str, $specificTypesList='', $position='') | |
allowTableOnStandardPages ($table) | |
addModule ($main, $sub='', $position='', $path='') | |
insertModuleFunction ($modname, $className, $classPath, $title, $MM_key='function', $WS='') | |
addPageTSConfig ($content) | |
addUserTSConfig ($content) | |
addLLrefForTCAdescr ($tca_descr_key, $file_ref) | |
addService ($extKey, $serviceType, $serviceKey, $info) | |
findService ($serviceType, $serviceSubType='', $excludeServiceKeys=array()) | |
deactivateService ($serviceType, $serviceKey) | |
addPlugin ($itemArray, $type='list_type') | |
addPiFlexFormValue ($piKeyToMatch, $value) | |
addToInsertRecords ($table, $content_table='tt_content', $content_field='records') | |
addPItoST43 ($key, $classFile='', $prefix='', $type='list_type', $cached=0) | |
addStaticFile ($extKey, $path, $title) | |
addTypoScriptSetup ($content) | |
addTypoScriptConstants ($content) | |
addTypoScript ($key, $type, $content, $afterStaticUid=0) | |
typo3_loadExtensions () | |
_makeIncludeHeader ($key, $file) | |
isCacheFilesAvailable ($cacheFilePrefix) | |
isLocalconfWritable () | |
cannotCacheFilesWritable ($cacheFilePrefix) | |
currentCacheFiles () | |
writeCacheFiles ($extensions, $cacheFilePrefix) | |
removeCacheFiles () |
Definition at line 114 of file class.t3lib_extmgm.php.
|
Returns the section headers for the compiled cache-files.
Definition at line 998 of file class.t3lib_extmgm.php. Referenced by writeCacheFiles(). |
|
Adds a reference to a locallang file with TCA_DESCR labels FOR USE IN ext_tables.php FILES eg. t3lib_extMgm::addLLrefForTCAdescr('pages','EXT:lang/locallang_csh_pages.xml'); for the pages table or t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout','EXT:cms/locallang_csh_weblayout.php'); for the Web > Page module. Usage: 31
Definition at line 437 of file class.t3lib_extmgm.php. |
|
Adds a module (main or sub) to the backend interface FOR USE IN ext_tables.php FILES Usage: 18
Definition at line 326 of file class.t3lib_extmgm.php. References t3lib_div::trimExplode(). Referenced by SC_mod_tools_em_index::makeDetailedExtensionAnalysis(). |
|
Adds $content to the default Page TSconfig as set in $TYPO3_CONF_VARS[BE]['defaultPageTSconfig'] Prefixed with a [GLOBAL] line FOR USE IN ext_tables.php/ext_locallang.php FILES Usage: 5
Definition at line 408 of file class.t3lib_extmgm.php. Referenced by SC_mod_tools_em_index::makeDetailedExtensionAnalysis(). |
|
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. Usage: 0
Definition at line 682 of file class.t3lib_extmgm.php. References t3lib_div::loadTCA(). |
|
Add PlugIn to 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. 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" $type determines the type of frontend plugin: "list_type" (default) - the good old "Insert plugin" entry "menu_type" - a "Menu/Sitemap" entry "splash_layout" - a "Textbox" entry "CType" - a new content element type "header_layout" - an additional header type (added to the selection of layout1-5) "includeLib" - just includes the library for manual use somewhere in TypoScript. (Remember that your $type definition should correspond to the column/items array in $TCA[tt_content] where you added the selector item for the element! See addPlugin() function) FOR USE IN ext_locallang.php FILES Usage: 2
Definition at line 733 of file class.t3lib_extmgm.php. References getCN(), and siteRelPath(). Referenced by SC_mod_tools_em_index::makeDetailedExtensionAnalysis(). |
|
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 $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 Usage: 13
Definition at line 657 of file class.t3lib_extmgm.php. References t3lib_div::loadTCA(). Referenced by SC_mod_tools_em_index::makeDetailedExtensionAnalysis(). |
|
Adds a service to the global services array
Definition at line 479 of file class.t3lib_extmgm.php. References deactivateService(), t3lib_div::isFirstPartOfStr(), and t3lib_div::trimExplode(). |
|
Call this method to add an entry in the static template list found in sys_templates "static template files" are the modern equalent (provided from extensions) to the traditional records in "static_templates" FOR USE IN ext_locallang.php FILES Usage: 3
Definition at line 808 of file class.t3lib_extmgm.php. References t3lib_div::loadTCA(). |
|
Adding fields to an existing table definition in $TCA Adds an array with $TCA column-configuration to the $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 Usage: 4
Definition at line 227 of file class.t3lib_extmgm.php. References t3lib_div::loadTCA(). |
|
Makes fields visible in the TCEforms, adding them to the end of (all) "types"-configurations Adds a string $str (comma list of field names) to all ["types"][xxx]["showitem"] entries for table $table (unless limited by $specificTypesList) 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 Usage: 1
Definition at line 251 of file class.t3lib_extmgm.php. References t3lib_div::inList(), t3lib_div::loadTCA(), and t3lib_div::trimExplode(). |
|
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 Usage: 9
Definition at line 702 of file class.t3lib_extmgm.php. References t3lib_div::loadTCA(). |
|
Adds $content to the default TypoScript code for either setup, constants or editorcfg as set in $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_locallang.php FILES Usage: 7
Definition at line 858 of file class.t3lib_extmgm.php. |
|
Adds $content to the default TypoScript constants code as set in $TYPO3_CONF_VARS[FE]['defaultTypoScript_constants'] Prefixed with a [GLOBAL] line FOR USE IN ext_locallang.php FILES Usage: 0
Definition at line 841 of file class.t3lib_extmgm.php. Referenced by SC_mod_tools_em_index::makeDetailedExtensionAnalysis(). |
|
Adds $content to the default TypoScript setup code as set in $TYPO3_CONF_VARS[FE]['defaultTypoScript_setup'] Prefixed with a [GLOBAL] line FOR USE IN ext_locallang.php FILES Usage: 6
Definition at line 827 of file class.t3lib_extmgm.php. Referenced by SC_mod_tools_em_index::makeDetailedExtensionAnalysis(). |
|
Adds $content to the default User TSconfig as set in $TYPO3_CONF_VARS[BE]['defaultUserTSconfig'] Prefixed with a [GLOBAL] line FOR USE IN ext_tables.php/ext_locallang.php FILES Usage: 3
Definition at line 422 of file class.t3lib_extmgm.php. Referenced by SC_mod_tools_em_index::makeDetailedExtensionAnalysis(). |
|
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 Usage: 11
Definition at line 309 of file class.t3lib_extmgm.php. |
|
Returns an error string if typo3conf/ or cache-files with $cacheFilePrefix are NOT writable Returns false if no problem. Usage: 1
Definition at line 1045 of file class.t3lib_extmgm.php. Referenced by typo3_loadExtensions(). |
|
Returns an array with the two cache-files (0=>localconf, 1=>tables) from typo3conf/ if they (both) exist. Otherwise false. Evaluation relies on $TYPO3_LOADED_EXT['_CACHEFILE'] Usage: 2
Definition at line 1069 of file class.t3lib_extmgm.php. References isCacheFilesAvailable(). Referenced by removeCacheFiles(). |
|
Deactivate a service
Definition at line 618 of file class.t3lib_extmgm.php. Referenced by addService(), t3lib_svbase::deactivateService(), findService(), and t3lib_div::makeInstanceService(). |
|
Returns the absolute path to the extension with extension key $key If the extension is not loaded the function will die with an error message Useful for internal fileoperations Usage: 136
Definition at line 147 of file class.t3lib_extmgm.php. References siteRelPath(). Referenced by tx_rtehtmlarea_base::buildJSLangArray(), SC_mod_tools_dbint_index::func_refindex(), t3lib_div::getFileAbsFileName(), t3lib_TStemplate::getFileName(), ux_t3lib_DB::handler_init(), tx_indexedsearch_indexer::includeCrawlerClass(), t3lib_TStemplate::includeStaticTypoScriptSources(), tx_dbal_handler_openoffice::init(), tx_tstemplateceditor::initialize_editor(), tx_install::isGIF(), tx_install::isPNG(), tx_indexedsearch_files::loadIndexerClass(), tx_indexedsearch_crawler::loadIndexerClass(), tslib_pibase::pi_loadLL(), and siteRelPath(). |
|
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 Usage: 54
Definition at line 165 of file class.t3lib_extmgm.php. Referenced by tx_version_cm1::adminLinks(), clickMenu::DB_newWizard(), tx_version_cm1::displayWorkspaceOverview_commandLinks(), SC_mod_user_ws_index::displayWorkspaceOverview_commandLinks(), tx_version_cm1::displayWorkspaceOverview_commandLinksSub(), SC_mod_user_ws_index::displayWorkspaceOverview_commandLinksSub(), t3lib_tsfeBeUserAuth::ext_makeToolBar(), TBE_browser_recordList::listURL(), tx_version_cm1::main(), tx_impexp_clickmenu::main(), SC_db_new::regularNew(), localRecordList::renderListHeader(), and localRecordList::writeTop(). |
|
Find the available service with highest priority
Definition at line 547 of file class.t3lib_extmgm.php. References t3lib_exec::checkCommand(), deactivateService(), and t3lib_div::trimExplode(). Referenced by t3lib_div::makeInstanceService(). |
|
Returns the correct class name prefix for the extension key $key Usage: 3
Definition at line 194 of file class.t3lib_extmgm.php. Referenced by addPItoST43(). |
|
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 Usage: 26
Definition at line 389 of file class.t3lib_extmgm.php. Referenced by SC_mod_tools_em_index::makeDetailedExtensionAnalysis(). |
|
Returns true if both the localconf and tables cache file exists (with $cacheFilePrefix) Usage: 2
Definition at line 1019 of file class.t3lib_extmgm.php. Referenced by currentCacheFiles(), and typo3_loadExtensions(). |
|
|
Returns true if the "localconf.php" file in "typo3conf/" is writable Usage: 1
Definition at line 1032 of file class.t3lib_extmgm.php. Referenced by SC_mod_tools_em_index::installExtension(), and SC_mod_tools_em_index::showExtDetails(). |
|
Unlink (delete) cache files
Definition at line 1130 of file class.t3lib_extmgm.php. References currentCacheFiles(). Referenced by SC_mod_tools_em_index::removeCacheFiles(), and t3lib_TCEmain::removeCacheFiles(). |
|
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 Usage: 6
Definition at line 182 of file class.t3lib_extmgm.php. References extPath(). Referenced by addPItoST43(), tx_rtehtmlarea_pi2::drawRTE(), tx_rtehtmlarea_base::drawRTE(), t3lib_tsparser_ext::ext_detectAndFixExtensionPrefix(), extPath(), and tslib_cObj::filelink(). |
|
Loading extensions configured in $TYPO3_CONF_VARS['EXT']['extList'] CACHING ON: ($TYPO3_CONF_VARS['EXT']['extCache'] = 1 or 2) If caching is enabled (and possible), the output will be $extensions['_CACHEFILE'] set to the cacheFilePrefix. Subsequently the cache files must be included then since those will eventually set up the extensions. If cachefiles are not found they will be generated CACHING OFF: ($TYPO3_CONF_VARS['EXT']['extCache'] = 0) The returned value will be an array where each key is an extension key and the value is an array with filepaths for the extension. This array will later be set in the global var $TYPO3_LOADED_EXT Usages of this function can be seen in config_default.php Extensions are always detected in the order local - global - system. Usage: 1
Definition at line 921 of file class.t3lib_extmgm.php. References cannotCacheFilesWritable(), isCacheFilesAvailable(), t3lib_div::shortMD5(), t3lib_div::trimExplode(), and writeCacheFiles(). Referenced by SC_mod_tools_em_index::refreshGlobalExtList(). |
|
Compiles/Creates the two cache-files in typo3conf/ based on $cacheFilePrefix Returns a array with the key "_CACHEFILE" set to the $cacheFilePrefix value Usage: 1
Definition at line 1092 of file class.t3lib_extmgm.php. References _makeIncludeHeader(), and t3lib_div::writeFile(). Referenced by typo3_loadExtensions(). |