SC_mod_tools_em_index Klassenreferenz

Klassendiagramm für SC_mod_tools_em_index:
t3lib_SCbase

Aufstellung aller Elemente

Öffentliche Methoden

 init ()
 handleExternalFunctionValue ($MM_key='function', $MS_value=NULL)
 menuConfig ()
 main ()
 printContent ()
 extensionList_loaded ()
 extensionList_installed ()
 extensionList_import ()
 browseLinks ()
 alterSettings ()
 translationHandling ()
 updateTranslation ($extKey, $lang, $mirrorURL)
 installTranslationsForExtension ($extKey, $mirrorURL)
 unzip ($file, $path)
 importExtInfo ($extKey, $version='')
 fetchMetaData ($metaType)
 getMirrorURL ()
 installExtension ($extKey, $version=null, $mode=EM_INSTALL_VERSION_MIN)
 refreshGlobalExtList ()
 importExtFromRep ($extKey, $version, $loc, $uploadFlag=0, $dontDelete=0, $directInput='')
 showExtDetails ($extKey)
 requestInstallExtensions ($extList)
 updatesForm ($extKey, $extInfo, $notSilent=0, $script='', $addFields='')
 extDumpTables ($extKey, $extInfo)
 getFileListOfExtension ($extKey, $conf)
 extDelete ($extKey, $extInfo)
 extUpdateEMCONF ($extKey, $extInfo)
 extBackup ($extKey, $extInfo)
 extBackup_dumpDataTablesLine ($tablesArray, $extKey)
 extInformationArray ($extKey, $extInfo, $remote=0)
 extInformationArray_dbReq ($techInfo, $tableHeader=0)
 extInformationArray_dbInst ($dbInst, $current)
 getRepositoryUploadForm ($extKey, $extInfo)
 extensionListRowHeader ($trAttrib, $cells, $import=0)
 extensionListRow ($extKey, $extInfo, $cells, $bgColorClass='', $inst_list=array(), $import=0, $altLinkUrl='')
 wrapEmail ($str, $email)
 helpCol ($key)
 labelInfo ($str)
 extensionTitleIconHeader ($extKey, $extInfo, $align='top')
 removeButton ()
 installButton ()
 noImportMsg ()
 depToString ($dep, $type='depends')
 stringToDep ($dep)
 getInstalledExtensions ()
 getInstExtList ($path, &$list, &$cat, $type)
 fixEMCONF ($emConf)
 splitVersionRange ($ver)
 prepareImportExtList ($unsetProc=false)
 setCat (&$cat, $listArrayPart, $extKey)
 makeDetailedExtensionAnalysis ($extKey, $extInfo, $validity=0)
 getClassIndexLocallangFiles ($absPath, $table_class_prefix, $extKey)
 modConfFileAnalysis ($confFilePath)
 serverExtensionMD5Array ($extKey, $conf)
 findMD5ArrayDiff ($current, $past)
 createDirsInPath ($dirs, $extDirPath)
 removeExtDirectory ($removePath, $removeContentOnly=0)
 clearAndMakeExtensionDir ($importedData, $type, $dontDelete=0)
 removeCacheFiles ()
 extractDirsFromFileList ($files)
 getExtPath ($extKey, $type)
 writeTYPO3_MOD_PATH ($confFilePath, $type, $mP)
 writeNewExtensionList ($newExtList)
 writeTsStyleConfig ($extKey, $arr)
 updateLocalEM_CONF ($extKey, $extInfo)
 construct_ext_emconf_file ($extKey, $EM_CONF)
 arrayToCode ($array, $level=0)
 makeUploadArray ($extKey, $conf)
 getSerializedLocalLang ($file, $content)
 addExtToList ($extKey, $instExtInfo)
 checkDependencies ($extKey, $conf, $instExtInfo)
 removeExtFromList ($extKey, $instExtInfo)
 removeRequiredExtFromListArr ($listArr)
 managesPriorities ($listArr, $instExtInfo)
 checkClearCache ($extInfo)
 checkUploadFolder ($extKey, $extInfo)
 checkDBupdates ($extKey, $extInfo, $infoOnly=0)
 forceDBupdates ($extKey, $extInfo)
 tsStyleConfigForm ($extKey, $extInfo, $output=0, $script='', $addFields='')
 dumpTableAndFieldStructure ($arr)
 dumpStaticTables ($tableList)
 dumpHeader ()
 dumpTableHeader ($table, $fieldKeyInfo, $dropTableIfExists=0)
 dumpTableContent ($table, $fieldStructure)
 getTableAndFieldStructure ($parts)
 uploadExtensionToTER ($em)
 listOrderTitle ($listOrder, $key)
 makeVersion ($v, $mode)
 renderVersion ($v, $raise='')
 ulFolder ($extKey)
 importAtAll ()
 importAsType ($type, $lockType='')
 deleteAsType ($type)
 versionDifference ($v1, $v2, $div=1)
 first_in_array ($str, $array, $caseInsensitive=FALSE)
 includeEMCONF ($path, $_EXTKEY)
 searchExtension ($extKey, $row)
 checkForUpdates ()
 showExtensionsToUpdate ()
 mergeExternalItems ($modName, $menuKey, $menuArr)
 getExternalItemConfig ($modName, $menuKey, $value='')
 checkExtObj ()
 checkSubExtObj ()
 extObjHeader ()
 extObjContent ()

Öffentliche Attribute

 $versionDiffFactor = 1
 $systemInstall = 0
 $requiredExt = ''
 $maxUploadSize = 31457280
 $kbMax = 500
 $doPrintContent = true
 $listingLimit = 500
 $listingLimitAuthor = 250
 $defaultCategories
 $categories
 $states
 $stateColors
 $typeLabels
 $typeDescr
 $typePaths = Array()
 $typeBackPaths = Array()
 $typeRelPaths
 $detailCols
 $fe_user
 $privacyNotice = 'When you interact with the online repository, server information may be sent and stored in the repository for statistics.'
 $securityHint = '<strong>Found a security problem? Please get in touch with us!</strong><br />If you think you have found a security issue in TYPO3 or an extension, please contact the <a href="http://typo3.org/teams/security/" target="_blank">TYPO3 security team</a>! Thank you!'
 $editTextExtensions = 'html,htm,txt,css,tmpl,inc,php,sql,conf,cnf,pl,pm,sh,xml,ChangeLog'
 $nameSpaceExceptions = 'beuser_tracking,design_components,impexp,static_file_edit,cms,freesite,quickhelp,classic_welcome,indexed_search,sys_action,sys_workflows,sys_todos,sys_messages,direct_mail,sys_stat,tt_address,tt_board,tt_calender,tt_guest,tt_links,tt_news,tt_poll,tt_rating,tt_products,setup,taskcenter,tsconfig_help,context_help,sys_note,tstemplate,lowlevel,install,belog,beuser,phpmyadmin,aboutmodules,imagelist,setup,taskcenter,sys_notepad,viewpage,adodb'
 $MCONF = array()
 $MOD_MENU = array()
 $MOD_SETTINGS = array()
 $doc
 $content
 $inst_keys = array()
 $gzcompress = 0
 $terConnection
 $xmlhandler
 $JScode
 $CMD = array()
 $listRemote
 $lookUpStr
 $id
 $perms_clause
 $modTSconfig
 $modMenu_type = ''
 $modMenu_dontValidateList = ''
 $modMenu_setDefaultList = ''
 $extClassConf
 $include_once = array()
 $extObj

Geschützte Methoden

 getFuncMenu ()
 getButtons ()

Dokumentation der Elementfunktionen

SC_mod_tools_em_index::addExtToList ( extKey,
instExtInfo 
)

Adds extension to extension list and returns new list. If -1 is returned, an error happend. Checks dependencies etc.

Parameter:
string Extension key
array Extension information array - information about installed extensions
Rückgabe:
string New list of installed extensions or -1 if error
Siehe auch:
showExtDetails()
SC_mod_tools_em_index::alterSettings (  ) 

Allows changing of settings

Rückgabe:
void
SC_mod_tools_em_index::arrayToCode ( array,
level = 0 
)

Enter description here...

Parameter:
unknown_type $array
unknown_type $lines
unknown_type $level
Rückgabe:
unknown
SC_mod_tools_em_index::browseLinks (  ) 

Generates a link to the next page of extensions

Rückgabe:
void
SC_mod_tools_em_index::checkClearCache ( extInfo  ) 

Check if clear-cache should be performed, otherwise show form (for installation of extension) Shown only if the extension has the clearCacheOnLoad flag set.

Parameter:
string Extension key
array Extension information array
Rückgabe:
string HTML output (if form is shown)
SC_mod_tools_em_index::checkDBupdates ( extKey,
extInfo,
infoOnly = 0 
)

Validates the database according to extension requirements Prints form for changes if any. If none, returns blank. If an update is ordered, empty is returned as well. DBAL compliant (based on Install Tool code)

Parameter:
string Extension key
array Extension information array
boolean If true, returns array with info.
Rückgabe:
mixed If $infoOnly, returns array with information. Otherwise performs update.
SC_mod_tools_em_index::checkDependencies ( extKey,
conf,
instExtInfo 
)

Enter description here...

Parameter:
string $extKey
array $conf
array $instExtInfo
Rückgabe:
array
t3lib_SCbase::checkExtObj (  )  [inherited]

Creates an instance of the class found in $this->extClassConf['name'] in $this->extObj if any (this should hold three keys, "name", "path" and "title" if a "Function menu module" tries to connect...) This value in extClassConf might be set by an extension (in a ext_tables/ext_localconf file) which thus "connects" to a module. The array $this->extClassConf is set in handleExternalFunctionValue() based on the value of MOD_SETTINGS[function] (Should be) called from global scope right after inclusion of files from the ->include_once array. If an instance is created it is initiated with $this passed as value and $this->extClassConf as second argument. Further the $this->MOD_SETTING is cleaned up again after calling the init function.

Rückgabe:
void
Siehe auch:
handleExternalFunctionValue(), t3lib_extMgm::insertModuleFunction(), $extObj
SC_mod_tools_em_index::checkForUpdates (  ) 

Checks if there are newer versions of installed extensions in the TER integrated from the extension "ter_update_check" for TYPO3 4.2 by Christian Welzel

Rückgabe:
nothing
t3lib_SCbase::checkSubExtObj (  )  [inherited]

Calls the checkExtObj function in sub module if present.

Rückgabe:
void
SC_mod_tools_em_index::checkUploadFolder ( extKey,
extInfo 
)

Check if upload folder / "createDir" directories should be created.

Parameter:
string Extension key
array Extension information array
Rückgabe:
string HTML content.
SC_mod_tools_em_index::clearAndMakeExtensionDir ( importedData,
type,
dontDelete = 0 
)

Removes the current extension of $type and creates the base folder for the new one (which is going to be imported)

Parameter:
array Data for imported extension
string Extension installation scope (L,G,S)
boolean If set, nothing will be deleted (neither directory nor files)
Rückgabe:
mixed Returns array on success (with extension directory), otherwise an error string.
SC_mod_tools_em_index::construct_ext_emconf_file ( extKey,
EM_CONF 
)

Compiles the ext_emconf.php file

Parameter:
string Extension key
array EM_CONF array
Rückgabe:
string PHP file content, ready to write to ext_emconf.php file
SC_mod_tools_em_index::createDirsInPath ( dirs,
extDirPath 
)

Creates directories in $extDirPath

Parameter:
array Array of directories to create relative to extDirPath, eg. "blabla", "blabla/blabla" etc...
string Absolute path to directory.
Rückgabe:
mixed Returns false on success or an error string
SC_mod_tools_em_index::deleteAsType ( type  ) 

Returns true if extensions in scope, $type, can be deleted (or installed for that sake)

Parameter:
string Scope: "G" or "L"
Rückgabe:
boolean True if possible.
SC_mod_tools_em_index::depToString ( dep,
type = 'depends' 
)

Checks whether the passed dependency is TER2-style (array) and returns a single string for displaying the dependencies.

It leaves out all version numbers and the "php" and "typo3" dependencies, as they are implicit and of no interest without the version number.

Parameter:
mixed $dep Either a string or an array listing dependencies.
string $type The dependency type to list if $dep is an array
Rückgabe:
string A simple dependency list for display
SC_mod_tools_em_index::dumpHeader (  ) 

Header comments of the SQL dump file

Rückgabe:
string Table header
SC_mod_tools_em_index::dumpStaticTables ( tableList  ) 

Dump content for static tables

Parameter:
string Comma list of tables from which to dump content
Rückgabe:
string Returns the content
Siehe auch:
dumpTableAndFieldStructure()
SC_mod_tools_em_index::dumpTableAndFieldStructure ( arr  ) 

Makes a dump of the tables/fields definitions for an extension

Parameter:
array Array with table => field/key definition arrays in
Rückgabe:
string SQL for the table definitions
Siehe auch:
dumpStaticTables()
SC_mod_tools_em_index::dumpTableContent ( table,
fieldStructure 
)

Dump table content Is DBAL compliant, but the dump format is written as MySQL standard. If the INSERT statements should be imported in a DBMS using other quoting than MySQL they must first be translated. t3lib_sqlengine can parse these queries correctly and translate them somehow.

Parameter:
string Table name
array Field structure
Rückgabe:
string SQL Content of dump (INSERT statements)
SC_mod_tools_em_index::dumpTableHeader ( table,
fieldKeyInfo,
dropTableIfExists = 0 
)

Dump CREATE TABLE definition

Parameter:
string Table name
array Field and key information (as provided from Install Tool class!)
boolean If true, add "DROP TABLE IF EXISTS"
Rückgabe:
string Table definition SQL
SC_mod_tools_em_index::extBackup ( extKey,
extInfo 
)

Download extension as file / make backup

Parameter:
string Extension key
array Extension information array
Rückgabe:
string HTML content
SC_mod_tools_em_index::extBackup_dumpDataTablesLine ( tablesArray,
extKey 
)

Link to dump of database tables

Parameter:
string Extension key
array Extension information array
Rückgabe:
string HTML
SC_mod_tools_em_index::extDelete ( extKey,
extInfo 
)

Delete extension from the file system

Parameter:
string Extension key
array Extension info array
Rückgabe:
string Returns message string about the status of the operation
SC_mod_tools_em_index::extDumpTables ( extKey,
extInfo 
)

Creates view for dumping static tables and table/fields structures...

Parameter:
string Extension key
array Extension information array
Rückgabe:
void
SC_mod_tools_em_index::extensionList_import (  ) 

Listing remote extensions from online repository

Rückgabe:
void
SC_mod_tools_em_index::extensionList_installed (  ) 

Listing of available (installed) extensions

Rückgabe:
void
SC_mod_tools_em_index::extensionList_loaded (  ) 

Listing of loaded (installed) extensions

Rückgabe:
void
SC_mod_tools_em_index::extensionListRow ( extKey,
extInfo,
cells,
bgColorClass = '',
inst_list = array(),
import = 0,
altLinkUrl = '' 
)

Prints a row with data for the various extension listings

Parameter:
string Extension key
array Extension information array
array Preset table cells, eg. install/uninstall icons.
string 

tag class

Parameter:
array Array with installed extension keys (as keys)
boolean If set, the list is coming from remote server.
string Alternative link URL
Rückgabe:
string HTML

content

SC_mod_tools_em_index::extensionListRowHeader ( trAttrib,
cells,
import = 0 
)

Prints the header row for the various listings

Parameter:
string Attributes for the

tag

Parameter:
array Preset cells in the beginning of the row. Typically a blank cell with a clear-gif
boolean If set, the list is coming from remote server.
Rückgabe:
string HTML

table row

SC_mod_tools_em_index::extensionTitleIconHeader ( extKey,
extInfo,
align = 'top' 
)

Returns a header for an extensions including icon if any

Parameter:
string Extension key
array Extension information array
string align-attribute value (for tag)
Rückgabe:
string HTML; Extension title and image.
SC_mod_tools_em_index::extInformationArray ( extKey,
extInfo,
remote = 0 
)

Prints a table with extension information in it.

Parameter:
string Extension key
array Extension information array
boolean If set, the information array shows information for a remote extension in TER, not a local one.
Rückgabe:
string HTML content.
SC_mod_tools_em_index::extInformationArray_dbInst ( dbInst,
current 
)

Double install warning.

Parameter:
string Double-install string, eg. "LG" etc.
string Current scope, eg. "L" or "G" or "S"
Rückgabe:
string Message
SC_mod_tools_em_index::extInformationArray_dbReq ( techInfo,
tableHeader = 0 
)

Returns HTML with information about database requirements

Parameter:
array Technical information array
boolean Table header displayed
Rückgabe:
string HTML content.
t3lib_SCbase::extObjContent (  )  [inherited]

Calls the 'main' function inside the "Function menu module" if present

Rückgabe:
void
t3lib_SCbase::extObjHeader (  )  [inherited]

Calls the 'header' function inside the "Function menu module" if present. A header function might be needed to add JavaScript or other stuff in the head. This can't be done in the main function because the head is already written. example call in the header function: $this->pObj->doc->JScode = $this->pObj->doc->wrapScriptTags(' ...

Rückgabe:
void
SC_mod_tools_em_index::extractDirsFromFileList ( files  ) 

Extracts the directories in the $files array

Parameter:
array Array of files / directories
Rückgabe:
array Array of directories from the input array.
SC_mod_tools_em_index::extUpdateEMCONF ( extKey,
extInfo 
)

Update extension EM_CONF...

Parameter:
string Extension key
array Extension information array
Rückgabe:
string HTML content.
SC_mod_tools_em_index::fetchMetaData ( metaType  ) 

Fetches metadata and stores it to the corresponding place. This includes the mirror list, extension XML files.

Parameter:
string Type of data to fetch: (mirrors)
boolean If true the method doesn't produce any output
Rückgabe:
void
SC_mod_tools_em_index::findMD5ArrayDiff ( current,
past 
)

Compares two arrays with MD5-hash values for analysis of which files has changed.

Parameter:
array Current values
array Past values
Rückgabe:
array Affected files
SC_mod_tools_em_index::first_in_array ( str,
array,
caseInsensitive = FALSE 
)

Returns true if the $str is found as the first part of a string in $array

Parameter:
string String to test with.
array Input array
boolean If set, the test is case insensitive
Rückgabe:
boolean True if found.
SC_mod_tools_em_index::fixEMCONF ( emConf  ) 

Fixes an old style ext_emconf.php array by adding constraints if needed and removing deprecated keys

Parameter:
array $emConf
Rückgabe:
array
SC_mod_tools_em_index::forceDBupdates ( extKey,
extInfo 
)

Updates the database according to extension requirements DBAL compliant (based on Install Tool code)

Parameter:
string Extension key
array Extension information array
Rückgabe:
void
SC_mod_tools_em_index::getButtons (  )  [protected]

Create the panel of buttons for submitting the form or otherwise perform operations.

Rückgabe:
array all available buttons as an assoc. array
SC_mod_tools_em_index::getClassIndexLocallangFiles ( absPath,
table_class_prefix,
extKey 
)

Analyses the php-scripts of an available extension on server

Parameter:
string Absolute path to extension
string Prefix for tables/classes.
string Extension key
Rückgabe:
array Information array.
Siehe auch:
makeDetailedExtensionAnalysis()
t3lib_SCbase::getExternalItemConfig ( modName,
menuKey,
value = '' 
) [inherited]

Returns configuration values from the global variable $TBE_MODULES_EXT for the module given. For example if the module is named "web_info" and the "function" key ($menuKey) of MOD_SETTINGS is "stat" ($value) then you will have the values of $TBE_MODULES_EXT['webinfo']['MOD_MENU']['function']['stat'] returned.

Parameter:
string Module name
string Menu key, eg. "function" for the function menu. See $this->MOD_MENU
string Optionally the value-key to fetch from the array that would otherwise have been returned if this value was not set. Look source...
Rückgabe:
mixed The value from the TBE_MODULES_EXT array.
Siehe auch:
handleExternalFunctionValue()
SC_mod_tools_em_index::getExtPath ( extKey,
type 
)

Returns the absolute path where the extension $extKey is installed (based on 'type' (SGL))

Parameter:
string Extension key
string Install scope type: L, G, S
Rückgabe:
string Returns the absolute path to the install scope given by input $type variable. It is checked if the path is a directory. Slash is appended.
SC_mod_tools_em_index::getFileListOfExtension ( extKey,
conf 
)

Returns file-listing of an extension

Parameter:
string Extension key
array Extension information array
Rückgabe:
string HTML table.
SC_mod_tools_em_index::getFuncMenu (  )  [protected]

Create the function menu

Rückgabe:
string HTML of the function menu
SC_mod_tools_em_index::getInstalledExtensions (  ) 

Returns the list of available (installed) extensions

Rückgabe:
array Array with two arrays, list array (all extensions with info) and category index
Siehe auch:
getInstExtList()
SC_mod_tools_em_index::getInstExtList ( path,
&$  list,
&$  cat,
type 
)

Gathers all extensions in $path

Parameter:
string Absolute path to local, global or system extensions
array Array with information for each extension key found. Notice: passed by reference
array Categories index: Contains extension titles grouped by various criteria.
string Path-type: L, G or S
Rückgabe:
void "Returns" content by reference private
Siehe auch:
getInstalledExtensions()
SC_mod_tools_em_index::getMirrorURL (  ) 

Returns the base URL for the slected or a random mirror.

Rückgabe:
string The URL for the selected or a random mirror
SC_mod_tools_em_index::getRepositoryUploadForm ( extKey,
extInfo 
)

Prints the upload form for extensions

Parameter:
string Extension key
array Extension information array
Rückgabe:
string HTML content.
SC_mod_tools_em_index::getSerializedLocalLang ( file,
content 
)

Include a locallang file and return the $LOCAL_LANG array serialized.

Parameter:
string Absolute path to locallang file to include.
string Old content of a locallang file (keeping the header content)
Rückgabe:
array Array with header/content as key 0/1
Siehe auch:
makeUploadArray()
SC_mod_tools_em_index::getTableAndFieldStructure ( parts  ) 

Gets the table and field structure from database. Which fields and which tables are determined from the ext_tables.sql file

Parameter:
string Array with table.field values
Rückgabe:
array Array of tables and fields splitted.
SC_mod_tools_em_index::handleExternalFunctionValue ( MM_key = 'function',
MS_value = NULL 
)

This function is a copy of the same function in t3lib_SCbase with one modification: In contrast to t3lib_SCbase::handleExternalFunctionValue() this function merges the $this->extClassConf array instead of overwriting it. That was necessary for including the Kickstarter as a submodule into the 'singleDetails' selectorbox as well as in the main 'function' selectorbox.

Parameter:
string Mod-setting array key
string Mod setting value, overriding the one in the key
Rückgabe:
void
Siehe auch:
t3lib_SCbase::handleExternalFunctionValue()

Erneute Implementation von t3lib_SCbase.

SC_mod_tools_em_index::helpCol ( key  ) 

Returns help text if applicable.

Parameter:
string Help text key
Rückgabe:
string HTML table cell
SC_mod_tools_em_index::importAsType ( type,
lockType = '' 
)

Reports back if installation in a certain scope is possible.

Parameter:
string Scope: G, L, S
string Extension lock-type (eg. "L" or "G")
Rückgabe:
boolean True if installation is allowed.
SC_mod_tools_em_index::importAtAll (  ) 

Returns true if global OR local installation of extensions is allowed/possible.

Rückgabe:
boolean Returns true if global OR local installation of extensions is allowed/possible.
SC_mod_tools_em_index::importExtFromRep ( extKey,
version,
loc,
uploadFlag = 0,
dontDelete = 0,
directInput = '' 
)

Imports an extensions from the online repository NOTICE: in version 4.0 this changed from "importExtFromRep_old($extRepUid,$loc,$uploadFlag=0,$directInput='',$recentTranslations=0,$incManual=0,$dontDelete=0)"

Parameter:
string Extension key
string Version
string Install scope: "L" or "G" or "S"
boolean If true, extension is uploaded as file
boolean If true, extension directory+files will not be deleted before writing the new ones. That way custom files stored in the extension folder will be kept.
array Direct input array (like from kickstarter)
Rückgabe:
string Return false on success, returns error message if error.
SC_mod_tools_em_index::importExtInfo ( extKey,
version = '' 
)

Returns detailed info about an extension in the online repository

Parameter:
string Extension repository uid + optional "private key": [uid]-[key].
[type] $version: ...
Rückgabe:
void
SC_mod_tools_em_index::includeEMCONF ( path,
_EXTKEY 
)

Returns the $EM_CONF array from an extensions ext_emconf.php file

Parameter:
string Absolute path to EMCONF file.
string Extension key.
Rückgabe:
array EMconf array values.
SC_mod_tools_em_index::init (  ) 

Standard init function of a module.

Rückgabe:
void

Erneute Implementation von t3lib_SCbase.

SC_mod_tools_em_index::installButton (  ) 

Returns image for "install"

Rückgabe:
string tag
SC_mod_tools_em_index::installExtension ( extKey,
version = null,
mode = EM_INSTALL_VERSION_MIN 
)

Installs (activates) an extension

For $mode use the three constants EM_INSTALL_VERSION_MIN, EM_INSTALL_VERSION_MAX, EM_INSTALL_VERSION_STRICT

If an extension is loaded or imported already and the version requirement is matched, it will not be fetched from the repository. This means, if you use EM_INSTALL_VERSION_MIN, you will not always get the latest version of an extension!

Parameter:
string $extKey The extension key to install
string $version A version number that should be installed
int $mode If a version is requested, this determines if it is the min, max or strict version requested
Rückgabe:
[type] ...
Noch zu erledigen:
Make the method able to handle needed interaction somehow (unmatched dependencies)
SC_mod_tools_em_index::installTranslationsForExtension ( extKey,
mirrorURL 
)

Install translations for all selected languages for an extension

Parameter:
string $extKey The extension key to install the translations for
string $mirrorURL Mirror URL to fetch data from
Rückgabe:
mixed true on success, error string on fauilure
SC_mod_tools_em_index::labelInfo ( str  ) 

Returns title and style attribute for mouseover help text.

Parameter:
string Help text.
Rückgabe:
string title="" attribute prepended with a single space
SC_mod_tools_em_index::listOrderTitle ( listOrder,
key 
)

Returns subtitles for the extension listings

Parameter:
string List order type
string Key value
Rückgabe:
string output.
SC_mod_tools_em_index::main (  ) 

Main function for Extension Manager module.

Rückgabe:
void
SC_mod_tools_em_index::makeDetailedExtensionAnalysis ( extKey,
extInfo,
validity = 0 
)

Perform a detailed, technical analysis of the available extension on server! Includes all kinds of verifications Takes some time to process, therfore use with care, in particular in listings.

Parameter:
string Extension key
array Extension information
boolean If set, checks for validity of classes etc.
Rückgabe:
array Information in an array.
SC_mod_tools_em_index::makeUploadArray ( extKey,
conf 
)

Make upload array out of extension

Parameter:
string Extension key
array Extension information array
Rückgabe:
mixed Returns array with extension upload array on success, otherwise an error string.
SC_mod_tools_em_index::makeVersion ( v,
mode 
)

Returns version information

Parameter:
string Version code, x.x.x
string part: "", "int", "main", "sub", "dev"
Rückgabe:
string
Siehe auch:
renderVersion()
SC_mod_tools_em_index::managesPriorities ( listArr,
instExtInfo 
)

Traverse the array of installed extensions keys and arranges extensions in the priority order they should be in

Parameter:
array Array of extension keys as values
array Extension information array
Rückgabe:
array Modified array of extention keys as values
Siehe auch:
addExtToList()
SC_mod_tools_em_index::menuConfig (  ) 

Configuration of which mod-menu items can be used

Rückgabe:
void

Erneute Implementation von t3lib_SCbase.

t3lib_SCbase::mergeExternalItems ( modName,
menuKey,
menuArr 
) [inherited]

Merges menu items from global array $TBE_MODULES_EXT

Parameter:
string Module name for which to find value
string Menu key, eg. 'function' for the function menu.
array The part of a MOD_MENU array to work on.
Rückgabe:
array Modified array part. private
Siehe auch:
t3lib_extMgm::insertModuleFunction(), menuConfig()
SC_mod_tools_em_index::modConfFileAnalysis ( confFilePath  ) 

Reads $confFilePath (a module $conf-file) and returns information on the existence of TYPO3_MOD_PATH definition and MCONF_name

Parameter:
string Absolute path to a "conf.php" file of a module which we are analysing.
Rückgabe:
array Information found.
Siehe auch:
writeTYPO3_MOD_PATH()
SC_mod_tools_em_index::noImportMsg (  ) 

Warning ( + text string) message about the impossibility to import extensions (both local and global locations are disabled...)

Rückgabe:
string + text string.
SC_mod_tools_em_index::prepareImportExtList ( unsetProc = false  ) 

Maps remote extensions information into $cat/$list arrays for listing

Parameter:
boolean If set the info in the internal extensionsXML array will be unset before returning the result.
Rückgabe:
array List array and category index as key 0 / 1 in an array.
SC_mod_tools_em_index::printContent (  ) 

Print module content. Called as last thing in the global scope.

Rückgabe:
void
SC_mod_tools_em_index::removeButton (  ) 

Returns image tag for "uninstall"

Rückgabe:
string tag
SC_mod_tools_em_index::removeCacheFiles (  ) 

Unlink (delete) cache files

Rückgabe:
integer Number of deleted files.
SC_mod_tools_em_index::removeExtDirectory ( removePath,
removeContentOnly = 0 
)

Removes the extension directory (including content)

Parameter:
string Extension directory to remove (with trailing slash)
boolean If set, will leave the extension directory
Rückgabe:
boolean False on success, otherwise error string.
SC_mod_tools_em_index::removeExtFromList ( extKey,
instExtInfo 
)

Remove extension key from the list of currently installed extensions and return list. If -1 is returned, an error happend. Checks dependencies etc.

Parameter:
string Extension key
array Extension information array - information about installed extensions
Rückgabe:
string New list of installed extensions or -1 if error
Siehe auch:
showExtDetails()
SC_mod_tools_em_index::removeRequiredExtFromListArr ( listArr  ) 

This removes any required extensions from the $listArr - they should NOT be added to the common extension list, because they are found already in "requiredExt" list

Parameter:
array Array of extension keys as values
Rückgabe:
array Modified array
Siehe auch:
removeExtFromList(), addExtToList()
SC_mod_tools_em_index::renderVersion ( v,
raise = '' 
)

Parses the version number x.x.x and returns an array with the various parts.

Parameter:
string Version code, x.x.x
string Increase version part: "main", "sub", "dev"
Rückgabe:
string
SC_mod_tools_em_index::requestInstallExtensions ( extList  ) 

Outputs a screen from where you can install multiple extensions in one go This can be called from external modules with ...index.php?CMD[requestInstallExtensions]=

Parameter:
string Comma list of extension keys to install. Renders a screen with checkboxes for all extensions not already imported or installed
Rückgabe:
void
SC_mod_tools_em_index::searchExtension ( extKey,
row 
)

Searches for ->lookUpStr in extension and returns true if found (or if no search string is set)

Parameter:
string Extension key
array Extension content
Rückgabe:
boolean If true, display extension in list
SC_mod_tools_em_index::serverExtensionMD5Array ( extKey,
conf 
)

Creates a MD5-hash array over the current files in the extension

Parameter:
string Extension key
array Extension information array
Rückgabe:
array MD5-keys
SC_mod_tools_em_index::setCat ( &$  cat,
listArrayPart,
extKey 
)

Set category array entries for extension

Parameter:
array Category index array
array Part of list array for extension.
string Extension key
Rückgabe:
array Modified category index array
SC_mod_tools_em_index::showExtDetails ( extKey  ) 

Display extensions details.

Parameter:
string Extension key
Rückgabe:
void Writes content to $this->content
SC_mod_tools_em_index::showExtensionsToUpdate (  ) 

Displays a list of extensions where a newer version is available in the TER than the one that is installed right now integrated from the extension "ter_update_check" for TYPO3 4.2 by Christian Welzel

Rückgabe:
nothing
SC_mod_tools_em_index::splitVersionRange ( ver  ) 

Splits a version range into an array.

If a single version number is given, it is considered a minimum value. If a dash is found, the numbers left and right are considered as minimum and maximum. Empty values are allowed.

Parameter:
string $ver A string with a version range.
Rückgabe:
array
SC_mod_tools_em_index::stringToDep ( dep  ) 

Checks whether the passed dependency is TER-style (string) or TER2-style (array) and returns a single string for displaying the dependencies.

It leaves out all version numbers and the "php" and "typo3" dependencies, as they are implicit and of no interest without the version number.

Parameter:
mixed $dep Either a string or an array listing dependencies.
string $type The dependency type to list if $dep is an array
Rückgabe:
string A simple dependency list for display
SC_mod_tools_em_index::translationHandling (  ) 

Allows to set the translation preferences and check the status

Rückgabe:
void
SC_mod_tools_em_index::tsStyleConfigForm ( extKey,
extInfo,
output = 0,
script = '',
addFields = '' 
)

Produces the config form for an extension (if any template file, ext_conf_template.txt is found)

Parameter:
string Extension key
array Extension information array
boolean If true, the form HTML content is returned, otherwise the content is set in $this->content.
string Submit-to URL (supposedly)
string Additional form fields to include.
Rückgabe:
string Depending on $output. Can return the whole form.
SC_mod_tools_em_index::ulFolder ( extKey  ) 

Returns upload folder for extension

Parameter:
string Extension key
Rückgabe:
string Upload folder for extension
SC_mod_tools_em_index::unzip ( file,
path 
)

Unzips a zip file in the given path.

Uses unzip binary if available, otherwise a pure PHP unzip is used.

Parameter:
string $file Full path to zip file
string $path Path to change to before extracting
Rückgabe:
boolean True on success, false in failure
SC_mod_tools_em_index::updateLocalEM_CONF ( extKey,
extInfo 
)

Forces update of local EM_CONF. This will renew the information of changed files.

Parameter:
string Extension key
array Extension information array
Rückgabe:
string Status message
SC_mod_tools_em_index::updatesForm ( extKey,
extInfo,
notSilent = 0,
script = '',
addFields = '' 
)

Creates a form for an extension which contains all options for configuration, updates of database, clearing of cache etc. This form is shown when

Parameter:
string Extension key
array Extension information array
boolean If set, the form will ONLY show if fields/tables should be updated (suppressing forms like general configuration and cache clearing).
string Alternative action=""-script
string HTML: Additional form fields
Rückgabe:
string HTML
SC_mod_tools_em_index::updateTranslation ( extKey,
lang,
mirrorURL 
)

Install translations for all selected languages for an extension

Parameter:
string $extKey The extension key to install the translations for
string $lang Language code of translation to fetch
string $mirrorURL Mirror URL to fetch data from
Rückgabe:
mixed true on success, error string on fauilure
SC_mod_tools_em_index::uploadExtensionToTER ( em  ) 

Processes return-data from online repository. Currently only the returned emconf array is written to extension.

Parameter:
array Command array returned from TER
Rückgabe:
string Message
SC_mod_tools_em_index::versionDifference ( v1,
v2,
div = 1 
)

Evaluates differences in version numbers with three parts, x.x.x. Returns true if $v1 is greater than $v2

Parameter:
string Version number 1
string Version number 2
integer Tolerance factor. For instance, set to 1000 to ignore difference in dev-version (third part)
Rückgabe:
boolean True if version 1 is greater than version 2
SC_mod_tools_em_index::wrapEmail ( str,
email 
)

Wrapping input string in a link tag with link to email address

Parameter:
string Input string, being wrapped in tags
string Email address for use in link.
Rückgabe:
string Output
SC_mod_tools_em_index::writeNewExtensionList ( newExtList  ) 

Writes the extension list to "localconf.php" file Removes the temp_CACHED* files before return.

Parameter:
string List of extensions
Rückgabe:
void
SC_mod_tools_em_index::writeTsStyleConfig ( extKey,
arr 
)

Writes the TSstyleconf values to "localconf.php" Removes the temp_CACHED* files before return.

Parameter:
string Extension key
array Configuration array to write back
Rückgabe:
void
SC_mod_tools_em_index::writeTYPO3_MOD_PATH ( confFilePath,
type,
mP 
)

Write new TYPO3_MOD_PATH to "conf.php" file.

Parameter:
string Absolute path to a "conf.php" file of the backend module which we want to write back to.
string Install scope type: L, G, S
string Relative path for the module folder in extenson
Rückgabe:
string Returns message about the status.
Siehe auch:
modConfFileAnalysis()

Dokumentation der Datenelemente

SC_mod_tools_em_index::$categories
Initialisierung:
 Array(
                'be' => 'Backend',
                'module' => 'Backend Modules',
                'fe' => 'Frontend',
                'plugin' => 'Frontend Plugins',
                'misc' => 'Miscellaneous',
                'services' => 'Services',
                'templates' => 'Templates',
                'example' => 'Examples',
                'doc' => 'Documentation'
        )

Extension Categories (static var) Content must be redundant with the same internal variable as in class.tx_extrep.php!

SC_mod_tools_em_index::$CMD = array()

The value of GET/POST var, 'CMD'

Siehe auch:
init()

Erneute Implementation von t3lib_SCbase.

SC_mod_tools_em_index::$content

Generally used for accumulating the output content of backend modules

Erneute Implementation von t3lib_SCbase.

SC_mod_tools_em_index::$defaultCategories
Initialisierung:
 Array(
                'cat' => Array (
                        'be' => array(),
                        'module' => array(),
                        'fe' => array(),
                        'plugin' => array(),
                        'misc' => array(),
                        'services' => array(),
                        'templates' => array(),
                        'example' => array(),
                        'doc' => array()
                )
        )

Internal variable loaded with extension categories (for display/listing). Should reflect $categories above Dynamic var.

SC_mod_tools_em_index::$detailCols
Initialisierung:
 Array (
                0 => 2,
                1 => 5,
                2 => 6,
                3 => 6,
                4 => 4,
                5 => 1
        )
t3lib_SCbase::$extClassConf [inherited]

Contains module configuration parts from TBE_MODULES_EXT if found

Siehe auch:
handleExternalFunctionValue()
t3lib_SCbase::$extObj [inherited]

May contain an instance of a 'Function menu module' which connects to this backend module.

Siehe auch:
checkExtObj()
SC_mod_tools_em_index::$fe_user
Initialisierung:
 array(
                'username' => '',
                'password' => '',
        )
t3lib_SCbase::$id [inherited]

The integer value of the GET/POST var, 'id'. Used for submodules to the 'Web' module (page id)

Siehe auch:
init()
t3lib_SCbase::$include_once = array() [inherited]

Contains absolute paths to class files to include from the global scope. This is done in the module index.php files after calling the init() function

Siehe auch:
handleExternalFunctionValue()
SC_mod_tools_em_index::$MCONF = array()

Loaded with the global array $MCONF which holds some module configuration from the conf.php file of backend modules.

Siehe auch:
init()

Erneute Implementation von t3lib_SCbase.

SC_mod_tools_em_index::$MOD_MENU = array()

The module menu items array. Each key represents a key for which values can range between the items in the array of that key.

Siehe auch:
init()

Erneute Implementation von t3lib_SCbase.

SC_mod_tools_em_index::$MOD_SETTINGS = array()

Current settings for the keys of the MOD_MENU array

Siehe auch:
$MOD_MENU

Erneute Implementation von t3lib_SCbase.

t3lib_SCbase::$modMenu_dontValidateList = '' [inherited]

dontValidateList can be used to list variables that should not be checked if their value is found in the MOD_MENU array. Used for dynamically generated menus. Can be set from extension classes of this class before the init() function is called.

Siehe auch:
menuConfig(), t3lib_BEfunc::getModuleData()
t3lib_SCbase::$modMenu_setDefaultList = '' [inherited]

List of default values from $MOD_MENU to set in the output array (only if the values from MOD_MENU are not arrays) Can be set from extension classes of this class before the init() function is called.

Siehe auch:
menuConfig(), t3lib_BEfunc::getModuleData()
t3lib_SCbase::$modMenu_type = '' [inherited]

If type is 'ses' then the data is stored as session-lasting data. This means that it'll be wiped out the next time the user logs in. Can be set from extension classes of this class before the init() function is called.

Siehe auch:
menuConfig(), t3lib_BEfunc::getModuleData()
t3lib_SCbase::$modTSconfig [inherited]

Module TSconfig based on PAGE TSconfig / USER TSconfig

Siehe auch:
menuConfig()
t3lib_SCbase::$perms_clause [inherited]

A WHERE clause for selection records from the pages table based on read-permissions of the current backend user.

Siehe auch:
init()
SC_mod_tools_em_index::$stateColors
Initialisierung:
 Array (
                'alpha' => '#d12438',
                'beta' => '#97b17e',
                'stable' => '#3bb65c',
                'experimental' => '#007eba',
                'test' => '#979797',
                'obsolete' => '#000000',
        )

Colors for extension states

SC_mod_tools_em_index::$states
Initialisierung:
 Array (
                'alpha' => 'Alpha',
                'beta' => 'Beta',
                'stable' => 'Stable',
                'experimental' => 'Experimental',
                'test' => 'Test',
                'obsolete' => 'Obsolete',
        )

Extension States Content must be redundant with the same internal variable as in class.tx_extrep.php!

SC_mod_tools_em_index::$typeDescr
Initialisierung:
 Array (
                'S' => 'System extension (typo3/sysext/) - Always distributed with source code (Static).',
                'G' => 'Global extensions (typo3/ext/) - Available for shared source on server (Dynamic).',
                'L' => 'Local extensions (typo3conf/ext/) - Local for this TYPO3 installation only (Dynamic).',
        )
SC_mod_tools_em_index::$typeLabels
Initialisierung:
 Array (
                'S' => 'System',
                'G' => 'Global',
                'L' => 'Local',
        )

"TYPE" information; labels, paths, description etc.

SC_mod_tools_em_index::$typeRelPaths
Initialisierung:
 Array (
                'S' => 'sysext/',
                'G' => 'ext/',
                'L' => '../typo3conf/ext/',
        )

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
 Alle Klassen Namensbereiche Funktionen Variablen

Erzeugt am Wed Oct 28 16:40:22 2009 für Typo3 von  doxygen 1.6.1