Documentation TYPO3 par Ameos

SC_mod_tools_em_index Class Reference

Inheritance diagram for SC_mod_tools_em_index:

Inheritance graph
[legend]
Collaboration diagram for SC_mod_tools_em_index:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 init ()
 handleExternalFunctionValue ($MM_key='function', $MS_value=NULL)
 menuConfig ()
 main ()
 printContent ()
 extensionList_loaded ()
 extensionList_installed ()
 extensionList_import ()
 alterSettings ()
 importExtInfo ($extRepUid)
 importExtFromRep ($extRepUid, $loc, $uploadFlag=0, $directInput='', $recentTranslations=0, $incManual=0, $dontDelete=0)
 showExtDetails ($extKey)
 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 ()
 getInstalledExtensions ()
 getInstExtList ($path, &$list, &$cat, $type)
 getImportExtList ($listArr)
 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)
 makeUploadArray ($extKey, $conf)
 getSerializedLocalLang ($file, $content)
 addExtToList ($extKey, $instExtInfo)
 removeExtFromList ($extKey, $instExtInfo)
 removeRequiredExtFromListArr ($listArr)
 managesPriorities ($listArr, $instExtInfo)
 checkClearCache ($extKey, $extInfo)
 checkUploadFolder ($extKey, $extInfo)
 checkDBupdates ($extKey, $extInfo, $infoOnly=0)
 tsStyleConfigForm ($extKey, $extInfo, $output=0, $script='', $addFields='')
 dumpTableAndFieldStructure ($arr)
 dumpStaticTables ($tableList)
 dumpHeader ()
 dumpTableHeader ($table, $fieldKeyInfo, $dropTableIfExists=0)
 dumpTableContent ($table, $fieldStructure)
 getTableAndFieldStructure ($parts)
 fetchServerData ($repositoryUrl)
 decodeServerData ($externalData, $stat=array())
 decodeExchangeData ($str)
 makeUploadDataFromArray ($uploadArray, $local_gzcompress=-1)
 repTransferParams ()
 makeReturnUrl ()
 T3instID ()
 processRepositoryReturnData ($TER_CMD)
 listOrderTitle ($listOrder, $key)
 makeVersion ($v, $mode)
 renderVersion ($v, $raise='')
 ulFolder ($extKey)
 importAtAll ()
 importAsType ($type, $lockType='')
 deleteAsType ($type)
 getDocManual ($extension_key, $loc='')
 versionDifference ($v1, $v2, $div=1)
 first_in_array ($str, $array, $caseInsensitive=FALSE)
 includeEMCONF ($path, $_EXTKEY)
 searchExtension ($extKey, $row)

Public Attributes

 $versionDiffFactor = 1000
 $systemInstall = 0
 $repositoryUrl = ''
 $requiredExt = ''
 $maxUploadSize = 6024000
 $kbMax = 100
 $defaultCategories
 $categories
 $states
 $typeLabels
 $typeDescr
 $typePaths = Array()
 $typeBackPaths = Array()
 $typeRelPaths
 $remoteAccess
 $detailCols
 $fe_user
 $privacyNotice = 'When ever you interact with the online repository, server information is sent and stored in the repository for statistics. No personal information is sent, only identification of this TYPO3 install. If you want know exactly what is sent, look in typo3/mod/tools/em/index.php, function repTransferParams()'
 $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'
 $MCONF = array()
 $MOD_MENU = array()
 $MOD_SETTINGS = array()
 $doc
 $content
 $inst_keys = array()
 $gzcompress = 0
 $CMD = array()
 $listRemote
 $lookUpStr

Detailed Description

Definition at line 191 of file index.php.


Member Function Documentation

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.

Parameters:
string Extension key
array Extension information array - information about installed extensions
Returns:
string New list of installed extensions or -1 if error
See also:
showExtDetails()

Definition at line 3300 of file index.php.

References t3lib_extMgm::isLoaded(), and t3lib_div::trimExplode().

Referenced by showExtDetails().

SC_mod_tools_em_index::alterSettings  ) 
 

Allows changing of settings

Returns:
void

Definition at line 877 of file index.php.

References $content, and t3lib_BEfunc::cshItem().

Referenced by main().

SC_mod_tools_em_index::checkClearCache extKey,
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.

Parameters:
string Extension key
array Extension information array
Returns:
string HTML output (if form is shown)

Definition at line 3466 of file index.php.

References t3lib_div::_POST(), and t3lib_div::makeInstance().

Referenced by showExtDetails().

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)

Parameters:
string Extension key
array Extension information array
boolean If true, returns array with info.
Returns:
mixed If $infoOnly, returns array with information. Otherwise performs update.

Definition at line 3578 of file index.php.

References t3lib_div::_GP().

SC_mod_tools_em_index::checkUploadFolder extKey,
extInfo
 

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

Parameters:
string Extension key
array Extension information array
Returns:
string HTML content.

Definition at line 3493 of file index.php.

References t3lib_div::_POST(), t3lib_div::mkdir(), t3lib_div::trimExplode(), and t3lib_div::writeFile().

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)

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

Definition at line 2902 of file index.php.

References t3lib_div::mkdir().

Referenced by importExtFromRep().

SC_mod_tools_em_index::construct_ext_emconf_file extKey,
EM_CONF
 

Compiles the ext_emconf.php file

Parameters:
string Extension key
array EM_CONF array
Returns:
string PHP file content, ready to write to ext_emconf.php file

Definition at line 3154 of file index.php.

References t3lib_div::testInt().

Referenced by importExtFromRep().

SC_mod_tools_em_index::createDirsInPath dirs,
extDirPath
 

Creates directories in $extDirPath

Parameters:
array Array of directories to create relative to extDirPath, eg. "blabla", "blabla/blabla" etc...
string Absolute path to directory.
Returns:
mixed Returns false on success or an error string

Definition at line 2814 of file index.php.

References t3lib_div::mkdir(), and t3lib_div::trimExplode().

Referenced by importExtFromRep().

SC_mod_tools_em_index::decodeExchangeData str  ) 
 

Decodes extension upload array. This kind of data is when an extension is uploaded to TER

Parameters:
string Data stream
Returns:
mixed Array with result on success, otherwise an error string.

Definition at line 4022 of file index.php.

Referenced by importExtFromRep().

SC_mod_tools_em_index::decodeServerData externalData,
stat = array()
 

Decode server data This is information like the extension list, extension information etc., return data after uploads (new em_conf)

Parameters:
string Data stream from remove server
array Statistics array for request of external data
Returns:
mixed On success, returns an array with data array and stats array as key 0 and 1. Otherwise returns error string
See also:
fetchServerData(), processRepositoryReturnData()

Definition at line 3995 of file index.php.

SC_mod_tools_em_index::deleteAsType type  ) 
 

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

Parameters:
string Scope: "G" or "L"
Returns:
boolean True if possible.

Definition at line 4270 of file index.php.

SC_mod_tools_em_index::dumpHeader  ) 
 

Header comments of the SQL dump file

Returns:
string Table header

Definition at line 3826 of file index.php.

SC_mod_tools_em_index::dumpStaticTables tableList  ) 
 

Dump content for static tables

Parameters:
string Comma list of tables from which to dump content
Returns:
string Returns the content
See also:
dumpTableAndFieldStructure()

Definition at line 3797 of file index.php.

References t3lib_div::trimExplode().

SC_mod_tools_em_index::dumpTableAndFieldStructure arr  ) 
 

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

Parameters:
array Array with table => field/key definition arrays in
Returns:
string SQL for the table definitions
See also:
dumpStaticTables()

Definition at line 3772 of file index.php.

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.

Parameters:
string Table name
array Field structure
Returns:
string SQL Content of dump (INSERT statements)

Definition at line 3882 of file index.php.

SC_mod_tools_em_index::dumpTableHeader table,
fieldKeyInfo,
dropTableIfExists = 0
 

Dump CREATE TABLE definition

Parameters:
string Table name
array Field and key information (as provided from Install Tool class!)
boolean If true, add "DROP TABLE IF EXISTS"
Returns:
string Table definition SQL

Definition at line 3843 of file index.php.

SC_mod_tools_em_index::extBackup extKey,
extInfo
 

Download extension as file / make backup

Parameters:
string Extension key
array Extension information array
Returns:
string HTML content

Definition at line 1687 of file index.php.

Referenced by showExtDetails().

SC_mod_tools_em_index::extBackup_dumpDataTablesLine tablesArray,
extKey
 

Link to dump of database tables

Parameters:
string Extension key
array Extension information array
Returns:
string HTML

Definition at line 1755 of file index.php.

SC_mod_tools_em_index::extDelete extKey,
extInfo
 

Delete extension from the file system

Parameters:
string Extension key
array Extension info array
Returns:
string Returns message string about the status of the operation

Definition at line 1636 of file index.php.

References t3lib_div::inList(), and t3lib_extMgm::isLoaded().

Referenced by showExtDetails().

SC_mod_tools_em_index::extDumpTables extKey,
extInfo
 

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

Parameters:
string Extension key
array Extension information array
Returns:
void

Definition at line 1518 of file index.php.

References t3lib_div::formatSize(), and t3lib_div::writeFile().

Referenced by showExtDetails().

SC_mod_tools_em_index::extensionList_import  ) 
 

Listing remote extensions from online repository

Returns:
void

Definition at line 715 of file index.php.

References $content, $repositoryUrl, t3lib_BEfunc::cshItem(), extensionListRow(), extensionListRowHeader(), fetchServerData(), getImportExtList(), getInstalledExtensions(), importAsType(), importAtAll(), importExtInfo(), t3lib_extMgm::isLoaded(), noImportMsg(), repTransferParams(), and versionDifference().

Referenced by main().

SC_mod_tools_em_index::extensionList_installed  ) 
 

Listing of available (installed) extensions

Returns:
void

Definition at line 642 of file index.php.

References $content, t3lib_BEfunc::cshItem(), extensionListRow(), extensionListRowHeader(), getInstalledExtensions(), t3lib_extMgm::isLoaded(), and searchExtension().

Referenced by main().

SC_mod_tools_em_index::extensionList_loaded  ) 
 

Listing of loaded (installed) extensions

Returns:
void

Definition at line 600 of file index.php.

References $content, t3lib_BEfunc::cshItem(), extensionListRow(), extensionListRowHeader(), getInstalledExtensions(), and searchExtension().

Referenced by main().

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

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

tag class

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

content

Definition at line 2076 of file index.php.

References t3lib_div::fixed_lgd(), t3lib_div::inList(), t3lib_extMgm::isLoaded(), t3lib_div::trimExplode(), and t3lib_div::view_array().

Referenced by extensionList_import(), extensionList_installed(), and extensionList_loaded().

SC_mod_tools_em_index::extensionListRowHeader trAttrib,
cells,
import = 0
 

Prints the header row for the various listings

Parameters:
string Attributes for the

tag

Parameters:
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.
Returns:
string HTML

table row

Definition at line 2010 of file index.php.

Referenced by extensionList_import(), extensionList_installed(), and extensionList_loaded().

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

Returns a header for an extensions including icon if any

Parameters:
string Extension key
array Extension information array
string align-attribute value (for tag)
Returns:
string HTML; Extension title and image.

Definition at line 2243 of file index.php.

References t3lib_div::fixed_lgd().

Referenced by showExtDetails().

SC_mod_tools_em_index::extInformationArray extKey,
extInfo,
remote = 0
 

Prints a table with extension information in it.

Parameters:
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.
Returns:
string HTML content.

Definition at line 1783 of file index.php.

References t3lib_div::inList(), t3lib_extMgm::isLoaded(), and t3lib_div::view_array().

Referenced by importExtInfo(), and showExtDetails().

SC_mod_tools_em_index::extInformationArray_dbInst dbInst,
current
 

Double install warning.

Parameters:
string Double-install string, eg. "LG" etc.
string Current scope, eg. "L" or "G" or "S"
Returns:
string Message

Definition at line 1893 of file index.php.

SC_mod_tools_em_index::extInformationArray_dbReq techInfo,
tableHeader = 0
 

Returns HTML with information about database requirements

Parameters:
array Technical information array
boolean Table header displayed
Returns:
string HTML content.

Definition at line 1880 of file index.php.

SC_mod_tools_em_index::extractDirsFromFileList files  ) 
 

Extracts the directories in the $files array

Parameters:
array Array of files / directories
Returns:
array Array of directories from the input array.

Definition at line 2976 of file index.php.

Referenced by importExtFromRep().

SC_mod_tools_em_index::extUpdateEMCONF extKey,
extInfo
 

Update extension EM_CONF...

Parameters:
string Extension key
array Extension information array
Returns:
string HTML content.

Definition at line 1667 of file index.php.

Referenced by showExtDetails().

SC_mod_tools_em_index::fetchServerData repositoryUrl  ) 
 

Fetches data from the $repositoryUrl, un-compresses it, unserializes array and returns an array with the content if success.

Parameters:
string Request URL
Returns:
array Array with information and statistics.
See also:
importExtFromRep(), extensionList_import(), importExtInfo()

Definition at line 3965 of file index.php.

References t3lib_div::milliseconds().

Referenced by extensionList_import(), importExtFromRep(), and importExtInfo().

SC_mod_tools_em_index::findMD5ArrayDiff current,
past
 

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

Parameters:
array Current values
array Past values
Returns:
array Affected files

Definition at line 2782 of file index.php.

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

Parameters:
string String to test with.
array Input array
boolean If set, the test is case insensitive
Returns:
boolean True if found.

Definition at line 4316 of file index.php.

SC_mod_tools_em_index::getClassIndexLocallangFiles absPath,
table_class_prefix,
extKey
 

Analyses the php-scripts of an available extension on server

Parameters:
string Absolute path to extension
string Prefix for tables/classes.
string Extension key
Returns:
array Information array.
See also:
makeDetailedExtensionAnalysis()

Definition at line 2658 of file index.php.

References t3lib_div::getAllFilesAndFoldersInPath(), t3lib_div::isFirstPartOfStr(), and t3lib_div::removePrefixPathFromList().

SC_mod_tools_em_index::getDocManual extension_key,
loc = ''
 

Returns true if the doc/manual.sxw should be returned

Parameters:
string Extension key
string Extension install type (L, G, S)
Returns:
boolean Returns true if either the TYPO3_CONF_VARS flag for always including manuals are set OR if the manual is ALREADY found for the extension in question.

Definition at line 4288 of file index.php.

SC_mod_tools_em_index::getExtPath extKey,
type
 

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

Parameters:
string Extension key
string Install scope type: L, G, S
Returns:
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.

Definition at line 3002 of file index.php.

Referenced by showExtDetails().

SC_mod_tools_em_index::getFileListOfExtension extKey,
conf
 

Returns file-listing of an extension

Parameters:
string Extension key
array Extension information array
Returns:
string HTML table.

Definition at line 1585 of file index.php.

References t3lib_div::getAllFilesAndFoldersInPath(), t3lib_div::inList(), and t3lib_div::split_fileref().

Referenced by showExtDetails().

SC_mod_tools_em_index::getImportExtList listArr  ) 
 

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

Parameters:
array List of extensions from remote repository
Returns:
array List array and category index as key 0 / 1 in an array.

Definition at line 2362 of file index.php.

References t3lib_div::formatSize().

Referenced by extensionList_import(), and importExtInfo().

SC_mod_tools_em_index::getInstalledExtensions  ) 
 

Returns the list of available (installed) extensions

Returns:
array Array with two arrays, list array (all extensions with info) and category index
See also:
getInstExtList()

Definition at line 2301 of file index.php.

Referenced by extensionList_import(), extensionList_installed(), extensionList_loaded(), importExtFromRep(), and showExtDetails().

SC_mod_tools_em_index::getInstExtList path,
&$  list,
&$  cat,
type
 

Gathers all extensions in $path

Parameters:
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
Returns:
void "Returns" content by reference private
See also:
getInstalledExtensions()

Definition at line 2328 of file index.php.

References t3lib_div::get_dirs(), and t3lib_div::getFilesInDir().

SC_mod_tools_em_index::getRepositoryUploadForm extKey,
extInfo
 

Prints the upload form for extensions

Parameters:
string Extension key
array Extension information array
Returns:
string HTML content.

Definition at line 1912 of file index.php.

Referenced by showExtDetails().

SC_mod_tools_em_index::getSerializedLocalLang file,
content
 

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

Parameters:
string Absolute path to locallang file to include.
string Old content of a locallang file (keeping the header content)
Returns:
array Array with header/content as key 0/1
See also:
makeUploadArray()

Definition at line 3266 of file index.php.

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

Parameters:
string Array with table.field values
Returns:
array Array of tables and fields splitted.

Definition at line 3917 of file index.php.

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.

Parameters:
string Mod-setting array key
string Mod setting value, overriding the one in the key
Returns:
void
See also:
t3lib_SCbase::handleExternalFunctionValue()

Reimplemented from t3lib_SCbase.

Definition at line 415 of file index.php.

References t3lib_SCbase::getExternalItemConfig().

Referenced by init().

SC_mod_tools_em_index::helpCol key  ) 
 

Returns help text if applicable.

Parameters:
string Help text key
Returns:
string HTML table cell

Definition at line 2217 of file index.php.

References t3lib_BEfunc::helpText(), and t3lib_BEfunc::helpTextIcon().

SC_mod_tools_em_index::importAsType type,
lockType = ''
 

Reports back if installation in a certain scope is possible.

Parameters:
string Scope: G, L, S
string Extension lock-type (eg. "L" or "G")
Returns:
boolean True if installation is allowed.

Definition at line 4250 of file index.php.

Referenced by extensionList_import(), importExtFromRep(), and importExtInfo().

SC_mod_tools_em_index::importAtAll  ) 
 

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

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

Definition at line 4239 of file index.php.

Referenced by extensionList_import(), and importExtInfo().

SC_mod_tools_em_index::importExtFromRep extRepUid,
loc,
uploadFlag = 0,
directInput = '',
recentTranslations = 0,
incManual = 0,
dontDelete = 0
 

Imports an extensions from the online repository

Parameters:
string Extension repository uid + optional "private key": [uid]-[key].
string Install scope: "L" or "G"
boolean If true, extension is uploaded as file
string "Direct input" of the extension stream. Debugging purpuses, it seems.
boolean If true, recent translations are included.
boolean If true, manual is included.
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.
Returns:
string Return false on success, returns error message if error.

Definition at line 1026 of file index.php.

References $content, $repositoryUrl, clearAndMakeExtensionDir(), construct_ext_emconf_file(), createDirsInPath(), decodeExchangeData(), extractDirsFromFileList(), fetchServerData(), getInstalledExtensions(), importAsType(), t3lib_extMgm::isLoaded(), removeCacheFiles(), repTransferParams(), serverExtensionMD5Array(), t3lib_div::trimExplode(), t3lib_div::unlink_tempfile(), updatesForm(), t3lib_div::upload_to_tempfile(), t3lib_div::writeFile(), and writeTYPO3_MOD_PATH().

Referenced by main().

SC_mod_tools_em_index::importExtInfo extRepUid  ) 
 

Returns detailed info about an extension in the online repository

Parameters:
string Extension repository uid + optional "private key": [uid]-[key].
Returns:
void

Definition at line 924 of file index.php.

References $content, $repositoryUrl, extInformationArray(), fetchServerData(), getImportExtList(), importAsType(), importAtAll(), noImportMsg(), repTransferParams(), and t3lib_div::trimExplode().

Referenced by extensionList_import(), and main().

SC_mod_tools_em_index::includeEMCONF path,
_EXTKEY
 

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

Parameters:
string Absolute path to EMCONF file.
string Extension key.
Returns:
array EMconf array values.

Definition at line 4333 of file index.php.

SC_mod_tools_em_index::init  ) 
 

Standard init function of a module.

Returns:
void

Reimplemented from t3lib_SCbase.

Definition at line 341 of file index.php.

References t3lib_div::_GP(), handleExternalFunctionValue(), t3lib_div::makeInstance(), menuConfig(), and t3lib_div::trimExplode().

SC_mod_tools_em_index::installButton  ) 
 

Returns image for "install"

Returns:
string tag

Definition at line 2267 of file index.php.

SC_mod_tools_em_index::labelInfo str  ) 
 

Returns title and style attribute for mouseover help text.

Parameters:
string Help text.
Returns:
string title="" attribute prepended with a single space

Definition at line 2231 of file index.php.

SC_mod_tools_em_index::listOrderTitle listOrder,
key
 

Returns subtitles for the extension listings

Parameters:
string List order type
string Key value
Returns:
string output.

Definition at line 4150 of file index.php.

SC_mod_tools_em_index::main  ) 
 

Main function for Extension Manager module.

Returns:
void

Definition at line 501 of file index.php.

References alterSettings(), extensionList_import(), extensionList_installed(), extensionList_loaded(), t3lib_SCbase::extObjContent(), t3lib_BEfunc::getFuncCheck(), t3lib_BEfunc::getFuncMenu(), importExtFromRep(), importExtInfo(), t3lib_div::inList(), and showExtDetails().

Referenced by showExtDetails().

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.

Parameters:
string Extension key
array Extension information
boolean If set, checks for validity of classes etc.
Returns:
array Information in an array.

Definition at line 2476 of file index.php.

References t3lib_extMgm::addModule(), t3lib_extMgm::addPageTSConfig(), t3lib_extMgm::addPItoST43(), t3lib_extMgm::addPlugin(), t3lib_extMgm::addTypoScriptConstants(), t3lib_extMgm::addTypoScriptSetup(), t3lib_extMgm::addUserTSConfig(), t3lib_div::get_dirs(), t3lib_extMgm::insertModuleFunction(), t3lib_div::isFirstPartOfStr(), t3lib_extMgm::isLoaded(), t3lib_div::loadTCA(), and t3lib_div::trimExplode().

SC_mod_tools_em_index::makeReturnUrl  ) 
 

Returns the return Url of the current script (for repository exchange)

Returns:
string Value of t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');
See also:
repTransferParams()

Definition at line 4085 of file index.php.

References t3lib_div::getIndpEnv().

SC_mod_tools_em_index::makeUploadArray extKey,
conf
 

Make upload array out of extension

Parameters:
string Extension key
array Extension information array
Returns:
mixed Returns array with extension upload array on success, otherwise an error string.

Definition at line 3199 of file index.php.

References t3lib_div::getAllFilesAndFoldersInPath(), and t3lib_div::inList().

SC_mod_tools_em_index::makeUploadDataFromArray uploadArray,
local_gzcompress = -1
 

Encodes extension upload array

Parameters:
array Array containing extension
integer Overriding system setting for compression. 1=compression, 0=no compression.
Returns:
string Content stream

Definition at line 4044 of file index.php.

SC_mod_tools_em_index::makeVersion v,
mode
 

Returns version information

Parameters:
string Version code, x.x.x
string part: "", "int", "main", "sub", "dev"
Returns:
string
See also:
renderVersion()

Definition at line 4181 of file index.php.

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

Parameters:
array Array of extension keys as values
array Extension information array
Returns:
array Modified array of extention keys as values
See also:
addExtToList()

Definition at line 3414 of file index.php.

SC_mod_tools_em_index::menuConfig  ) 
 

Configuration of which mod-menu items can be used

Returns:
void

Reimplemented from t3lib_SCbase.

Definition at line 429 of file index.php.

References t3lib_div::_GP(), t3lib_BEfunc::getModuleData(), and t3lib_SCbase::mergeExternalItems().

Referenced by init().

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

Parameters:
string Absolute path to a "conf.php" file of a module which we are analysing.
Returns:
array Information found.
See also:
writeTYPO3_MOD_PATH()

Definition at line 2729 of file index.php.

SC_mod_tools_em_index::noImportMsg  ) 
 

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

Returns:
string + text string.

Definition at line 2276 of file index.php.

Referenced by extensionList_import(), and importExtInfo().

SC_mod_tools_em_index::printContent  ) 
 

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

Returns:
void

Definition at line 573 of file index.php.

SC_mod_tools_em_index::processRepositoryReturnData TER_CMD  ) 
 

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

Parameters:
array Command array returned from TER
Returns:
string Message

Definition at line 4106 of file index.php.

References t3lib_div::writeFile().

Referenced by showExtDetails().

SC_mod_tools_em_index::removeButton  ) 
 

Returns image tag for "uninstall"

Returns:
string tag

Definition at line 2258 of file index.php.

SC_mod_tools_em_index::removeCacheFiles  ) 
 

Unlink (delete) cache files

Returns:
integer Number of deleted files.

Definition at line 2956 of file index.php.

References t3lib_extMgm::currentCacheFiles().

Referenced by importExtFromRep().

SC_mod_tools_em_index::removeExtDirectory removePath,
removeContentOnly = 0
 

Removes the extension directory (including content)

Parameters:
string Extension directory to remove (with trailing slash)
boolean If set, will leave the extension directory
Returns:
boolean False on success, otherwise error string.

Definition at line 2839 of file index.php.

References t3lib_div::getAllFilesAndFoldersInPath(), t3lib_div::isFirstPartOfStr(), and t3lib_div::removePrefixPathFromList().

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.

Parameters:
string Extension key
array Extension information array - information about installed extensions
Returns:
string New list of installed extensions or -1 if error
See also:
showExtDetails()

Definition at line 3362 of file index.php.

References t3lib_div::trimExplode().

Referenced by 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

Parameters:
array Array of extension keys as values
Returns:
array Modified array
See also:
removeExtFromList(), addExtToList()

Definition at line 3399 of file index.php.

SC_mod_tools_em_index::renderVersion v,
raise = ''
 

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

Parameters:
string Version code, x.x.x
string Increase version part: "main", "sub", "dev"
Returns:
string

Definition at line 4193 of file index.php.

SC_mod_tools_em_index::repTransferParams  ) 
 

Compiles the additional GET-parameters sent to the repository during requests for information.

Returns:
string GET parameter for URL
See also:
importExtFromRep(), extensionList_import(), importExtInfo()

Definition at line 4069 of file index.php.

Referenced by extensionList_import(), importExtFromRep(), and importExtInfo().

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)

Parameters:
string Extension key
array Extension content
Returns:
boolean If true, display extension in list

Definition at line 4346 of file index.php.

Referenced by extensionList_installed(), and extensionList_loaded().

SC_mod_tools_em_index::serverExtensionMD5Array extKey,
conf
 

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

Parameters:
string Extension key
array Extension information array
Returns:
array MD5-keys

Definition at line 2757 of file index.php.

Referenced by importExtFromRep().

SC_mod_tools_em_index::setCat &$  cat,
listArrayPart,
extKey
 

Set category array entries for extension

Parameters:
array Category index array
array Part of list array for extension.
string Extension key
Returns:
array Modified category index array

Definition at line 2414 of file index.php.

References t3lib_div::trimExplode().

SC_mod_tools_em_index::showExtDetails extKey  ) 
 

Display extensions details.

Parameters:
string Extension key
Returns:
void Writes content to $this->content

Definition at line 1194 of file index.php.

References $content, t3lib_div::_GP(), t3lib_div::_POST(), addExtToList(), checkClearCache(), t3lib_BEfunc::cshItem(), extBackup(), extDelete(), extDumpTables(), extensionTitleIconHeader(), extInformationArray(), t3lib_SCbase::extObjContent(), extUpdateEMCONF(), t3lib_div::formatForTextarea(), getExtPath(), getFileListOfExtension(), t3lib_BEfunc::getFuncMenu(), getInstalledExtensions(), getRepositoryUploadForm(), t3lib_div::inList(), t3lib_div::isFirstPartOfStr(), t3lib_extMgm::isLoaded(), t3lib_extMgm::isLocalconfWritable(), t3lib_div::linkThisScript(), main(), processRepositoryReturnData(), removeExtFromList(), t3lib_div::split_fileref(), tsStyleConfigForm(), updatesForm(), t3lib_div::writeFile(), and writeNewExtensionList().

Referenced by main().

SC_mod_tools_em_index::T3instID  ) 
 

Returns the unique TYPO3 Install Identification (sent to repository for statistics)

Returns:
string Value of $GLOBALS['TYPO3_CONF_VARS']['SYS']['T3instID'];
See also:
repTransferParams()

Definition at line 4095 of file index.php.

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)

Parameters:
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.
Returns:
string Depending on $output. Can return the whole form.

Definition at line 3677 of file index.php.

References t3lib_div::_GP(), t3lib_div::_POST(), t3lib_div::callUserFunction(), t3lib_BEfunc::getModuleData(), and t3lib_div::makeInstance().

Referenced by showExtDetails().

SC_mod_tools_em_index::ulFolder extKey  ) 
 

Returns upload folder for extension

Parameters:
string Extension key
Returns:
string Upload folder for extension

Definition at line 4230 of file index.php.

SC_mod_tools_em_index::updateLocalEM_CONF extKey,
extInfo
 

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

Parameters:
string Extension key
array Extension information array
Returns:
string Status message

Definition at line 3116 of file index.php.

References t3lib_div::writeFile().

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

Parameters:
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
Returns:
string HTML

Definition at line 1487 of file index.php.

References t3lib_div::linkThisScript().

Referenced by importExtFromRep(), and showExtDetails().

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

Parameters:
string Version number 1
string Version number 2
integer Tolerance factor. For instance, set to 1000 to ignore difference in dev-version (third part)
Returns:
boolean True if version 1 is greater than version 2

Definition at line 4304 of file index.php.

Referenced by extensionList_import().

SC_mod_tools_em_index::wrapEmail str,
email
 

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

Parameters:
string Input string, being wrapped in tags
string Email address for use in link.
Returns:
string Output

Definition at line 2204 of file index.php.

SC_mod_tools_em_index::writeNewExtensionList newExtList  ) 
 

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

Parameters:
string List of extensions
Returns:
void

Definition at line 3071 of file index.php.

Referenced by showExtDetails().

SC_mod_tools_em_index::writeTsStyleConfig extKey,
arr
 

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

Parameters:
string Extension key
array Configuration array to write back
Returns:
void

Definition at line 3094 of file index.php.

SC_mod_tools_em_index::writeTYPO3_MOD_PATH confFilePath,
type,
mP
 

Write new TYPO3_MOD_PATH to "conf.php" file.

Parameters:
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
Returns:
string Returns message about the status.
See also:
modConfFileAnalysis()

Definition at line 3034 of file index.php.

Referenced by importExtFromRep().


Member Data Documentation

SC_mod_tools_em_index::$categories
 

Initial value:

 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!

Definition at line 223 of file index.php.

SC_mod_tools_em_index::$CMD = array()
 

The value of GET/POST var, 'CMD'

See also:
init()

Reimplemented from t3lib_SCbase.

Definition at line 314 of file index.php.

SC_mod_tools_em_index::$content
 

Generally used for accumulating the output content of backend modules

Reimplemented from t3lib_SCbase.

Definition at line 308 of file index.php.

Referenced by alterSettings(), extensionList_import(), extensionList_installed(), extensionList_loaded(), importExtFromRep(), importExtInfo(), and showExtDetails().

SC_mod_tools_em_index::$defaultCategories
 

Initial value:

 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.

Definition at line 205 of file index.php.

SC_mod_tools_em_index::$detailCols
 

Initial value:

 Array (
                0 => 2,
                1 => 5,
                2 => 6,
                3 => 6,
                4 => 4,
                5 => 1
        )

Definition at line 280 of file index.php.

SC_mod_tools_em_index::$doc
 

Generally used to hold an instance of the 'template' class from typo3/template.php

Reimplemented from t3lib_SCbase.

Definition at line 307 of file index.php.

SC_mod_tools_em_index::$fe_user
 

Initial value:

 array(
                        'username' => '',
                        'password' => '',
                        'uploadPass' => '',
                )

Definition at line 289 of file index.php.

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.

See also:
init()

Reimplemented from t3lib_SCbase.

Definition at line 304 of file index.php.

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.

See also:
init()

Reimplemented from t3lib_SCbase.

Definition at line 305 of file index.php.

SC_mod_tools_em_index::$MOD_SETTINGS = array()
 

Current settings for the keys of the MOD_MENU array

See also:
$MOD_MENU

Reimplemented from t3lib_SCbase.

Definition at line 306 of file index.php.

SC_mod_tools_em_index::$remoteAccess
 

Initial value:

 Array (
                'all' => '',
                'owner' => 'Owner',
                'selected' => 'Selected',
                'member' => 'Member',
        )
Remote access types (labels)

Definition at line 273 of file index.php.

SC_mod_tools_em_index::$states
 

Initial value:

 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!

Definition at line 239 of file index.php.

SC_mod_tools_em_index::$typeDescr
 

Initial value:

 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).',
        )

Definition at line 256 of file index.php.

SC_mod_tools_em_index::$typeLabels
 

Initial value:

 Array (
                'S' => 'System',
                'G' => 'Global',
                'L' => 'Local',
        )
"TYPE" information; labels, paths, description etc.

Definition at line 251 of file index.php.

SC_mod_tools_em_index::$typeRelPaths
 

Initial value:

 Array (
                'S' => 'sysext/',
                'G' => 'ext/',
                'L' => '../typo3conf/ext/',
        )

Definition at line 264 of file index.php.


The documentation for this class was generated from the following file:


Généré par Les experts TYPO3 avec  doxygen 1.4.6