Solutions Open Source

Référence de la classe SC_mod_tools_em_index

Graphe d'héritage de SC_mod_tools_em_index:

Inheritance graph
[légende]
Graphe de collaboration de SC_mod_tools_em_index:

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 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)

Attributs publics

 $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
 $CMD = array()
 $listRemote
 $lookUpStr


Documentation des fonctions membres

SC_mod_tools_em_index::init (  ) 

Standard init function of a module.

Renvoie:
void

Réimplémentée à partir de t3lib_SCbase.

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.

Paramètres:
string Mod-setting array key
string Mod setting value, overriding the one in the key
Renvoie:
void
Voir également:
t3lib_SCbase::handleExternalFunctionValue()

Réimplémentée à partir de t3lib_SCbase.

SC_mod_tools_em_index::menuConfig (  ) 

Configuration of which mod-menu items can be used

Renvoie:
void

Réimplémentée à partir de t3lib_SCbase.

SC_mod_tools_em_index::main (  ) 

Main function for Extension Manager module.

Renvoie:
void

SC_mod_tools_em_index::printContent (  ) 

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

Renvoie:
void

SC_mod_tools_em_index::extensionList_loaded (  ) 

Listing of loaded (installed) extensions

Renvoie:
void

SC_mod_tools_em_index::extensionList_installed (  ) 

Listing of available (installed) extensions

Renvoie:
void

SC_mod_tools_em_index::extensionList_import (  ) 

Listing remote extensions from online repository

Renvoie:
void

SC_mod_tools_em_index::browseLinks (  ) 

Generates a link to the next page of extensions

Renvoie:
void

SC_mod_tools_em_index::alterSettings (  ) 

Allows changing of settings

Renvoie:
void

SC_mod_tools_em_index::translationHandling (  ) 

Allows to set the translation preferences and check the status

Renvoie:
void

SC_mod_tools_em_index::updateTranslation ( extKey,
lang,
mirrorURL 
)

Install translations for all selected languages for an extension

Paramètres:
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
Renvoie:
mixed true on success, error string on fauilure

SC_mod_tools_em_index::installTranslationsForExtension ( extKey,
mirrorURL 
)

Install translations for all selected languages for an extension

Paramètres:
string $extKey The extension key to install the translations for
string $mirrorURL Mirror URL to fetch data from
Renvoie:
mixed true on success, error string on fauilure

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.

Paramètres:
string $file Full path to zip file
string $path Path to change to before extracting
Renvoie:
boolean True on success, false in failure

SC_mod_tools_em_index::importExtInfo ( extKey,
version = '' 
)

Returns detailed info about an extension in the online repository

Paramètres:
string Extension repository uid + optional "private key": [uid]-[key].
[type] $version: ...
Renvoie:
void

SC_mod_tools_em_index::fetchMetaData ( metaType  ) 

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

Paramètres:
string Type of data to fetch: (mirrors)
boolean If true the method doesn't produce any output
Renvoie:
void

SC_mod_tools_em_index::getMirrorURL (  ) 

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

Renvoie:
string The URL for the selected or a random mirror

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!

Paramètres:
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
Renvoie:
[type] ...
À faire:
Make the method able to handle needed interaction somehow (unmatched dependencies)

SC_mod_tools_em_index::refreshGlobalExtList (  ) 

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)"

Paramètres:
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)
Renvoie:
string Return false on success, returns error message if error.

SC_mod_tools_em_index::showExtDetails ( extKey  ) 

Display extensions details.

Paramètres:
string Extension key
Renvoie:
void Writes content to $this->content

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]=

Paramètres:
string Comma list of extension keys to install. Renders a screen with checkboxes for all extensions not already imported or installed
Renvoie:
void

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

Paramètres:
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
Renvoie:
string HTML

SC_mod_tools_em_index::extDumpTables ( extKey,
extInfo 
)

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

Paramètres:
string Extension key
array Extension information array
Renvoie:
void

SC_mod_tools_em_index::getFileListOfExtension ( extKey,
conf 
)

Returns file-listing of an extension

Paramètres:
string Extension key
array Extension information array
Renvoie:
string HTML table.

SC_mod_tools_em_index::extDelete ( extKey,
extInfo 
)

Delete extension from the file system

Paramètres:
string Extension key
array Extension info array
Renvoie:
string Returns message string about the status of the operation

SC_mod_tools_em_index::extUpdateEMCONF ( extKey,
extInfo 
)

Update extension EM_CONF...

Paramètres:
string Extension key
array Extension information array
Renvoie:
string HTML content.

SC_mod_tools_em_index::extBackup ( extKey,
extInfo 
)

Download extension as file / make backup

Paramètres:
string Extension key
array Extension information array
Renvoie:
string HTML content

SC_mod_tools_em_index::extBackup_dumpDataTablesLine ( tablesArray,
extKey 
)

Link to dump of database tables

Paramètres:
string Extension key
array Extension information array
Renvoie:
string HTML

SC_mod_tools_em_index::extInformationArray ( extKey,
extInfo,
remote = 0 
)

Prints a table with extension information in it.

Paramètres:
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.
Renvoie:
string HTML content.

SC_mod_tools_em_index::extInformationArray_dbReq ( techInfo,
tableHeader = 0 
)

Returns HTML with information about database requirements

Paramètres:
array Technical information array
boolean Table header displayed
Renvoie:
string HTML content.

SC_mod_tools_em_index::extInformationArray_dbInst ( dbInst,
current 
)

Double install warning.

Paramètres:
string Double-install string, eg. "LG" etc.
string Current scope, eg. "L" or "G" or "S"
Renvoie:
string Message

SC_mod_tools_em_index::getRepositoryUploadForm ( extKey,
extInfo 
)

Prints the upload form for extensions

Paramètres:
string Extension key
array Extension information array
Renvoie:
string HTML content.

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

Prints the header row for the various listings

Paramètres:
string Attributes for the

tag

Paramètres:
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.
Renvoie:
string HTML

table row

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

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

tag class

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

content

SC_mod_tools_em_index::wrapEmail ( str,
email 
)

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

Paramètres:
string Input string, being wrapped in tags
string Email address for use in link.
Renvoie:
string Output

SC_mod_tools_em_index::helpCol ( key  ) 

Returns help text if applicable.

Paramètres:
string Help text key
Renvoie:
string HTML table cell

SC_mod_tools_em_index::labelInfo ( str  ) 

Returns title and style attribute for mouseover help text.

Paramètres:
string Help text.
Renvoie:
string title="" attribute prepended with a single space

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

Returns a header for an extensions including icon if any

Paramètres:
string Extension key
array Extension information array
string align-attribute value (for tag)
Renvoie:
string HTML; Extension title and image.

SC_mod_tools_em_index::removeButton (  ) 

Returns image tag for "uninstall"

Renvoie:
string tag

SC_mod_tools_em_index::installButton (  ) 

Returns image for "install"

Renvoie:
string tag

SC_mod_tools_em_index::noImportMsg (  ) 

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

Renvoie:
string + text string.

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.

Paramètres:
mixed $dep Either a string or an array listing dependencies.
string $type The dependency type to list if $dep is an array
Renvoie:
string A simple dependency list for display

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.

Paramètres:
mixed $dep Either a string or an array listing dependencies.
string $type The dependency type to list if $dep is an array
Renvoie:
string A simple dependency list for display

SC_mod_tools_em_index::getInstalledExtensions (  ) 

Returns the list of available (installed) extensions

Renvoie:
array Array with two arrays, list array (all extensions with info) and category index
Voir également:
getInstExtList()

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

Gathers all extensions in $path

Paramètres:
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
Renvoie:
void "Returns" content by reference private
Voir également:
getInstalledExtensions()

SC_mod_tools_em_index::fixEMCONF ( emConf  ) 

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

Paramètres:
array $emConf
Renvoie:
array

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.

Paramètres:
string $ver A string with a version range.
Renvoie:
array

SC_mod_tools_em_index::prepareImportExtList ( unsetProc = false  ) 

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

Paramètres:
boolean If set the info in the internal extensionsXML array will be unset before returning the result.
Renvoie:
array List array and category index as key 0 / 1 in an array.

SC_mod_tools_em_index::setCat ( &$  cat,
listArrayPart,
extKey 
)

Set category array entries for extension

Paramètres:
array Category index array
array Part of list array for extension.
string Extension key
Renvoie:
array Modified category index array

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.

Paramètres:
string Extension key
array Extension information
boolean If set, checks for validity of classes etc.
Renvoie:
array Information in an array.

SC_mod_tools_em_index::getClassIndexLocallangFiles ( absPath,
table_class_prefix,
extKey 
)

Analyses the php-scripts of an available extension on server

Paramètres:
string Absolute path to extension
string Prefix for tables/classes.
string Extension key
Renvoie:
array Information array.
Voir également:
makeDetailedExtensionAnalysis()

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

Paramètres:
string Absolute path to a "conf.php" file of a module which we are analysing.
Renvoie:
array Information found.
Voir également:
writeTYPO3_MOD_PATH()

SC_mod_tools_em_index::serverExtensionMD5Array ( extKey,
conf 
)

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

Paramètres:
string Extension key
array Extension information array
Renvoie:
array MD5-keys

SC_mod_tools_em_index::findMD5ArrayDiff ( current,
past 
)

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

Paramètres:
array Current values
array Past values
Renvoie:
array Affected files

SC_mod_tools_em_index::createDirsInPath ( dirs,
extDirPath 
)

Creates directories in $extDirPath

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

SC_mod_tools_em_index::removeExtDirectory ( removePath,
removeContentOnly = 0 
)

Removes the extension directory (including content)

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

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)

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

SC_mod_tools_em_index::removeCacheFiles (  ) 

Unlink (delete) cache files

Renvoie:
integer Number of deleted files.

SC_mod_tools_em_index::extractDirsFromFileList ( files  ) 

Extracts the directories in the $files array

Paramètres:
array Array of files / directories
Renvoie:
array Array of directories from the input array.

SC_mod_tools_em_index::getExtPath ( extKey,
type 
)

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

Paramètres:
string Extension key
string Install scope type: L, G, S
Renvoie:
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::writeTYPO3_MOD_PATH ( confFilePath,
type,
mP 
)

Write new TYPO3_MOD_PATH to "conf.php" file.

Paramètres:
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
Renvoie:
string Returns message about the status.
Voir également:
modConfFileAnalysis()

SC_mod_tools_em_index::writeNewExtensionList ( newExtList  ) 

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

Paramètres:
string List of extensions
Renvoie:
void

SC_mod_tools_em_index::writeTsStyleConfig ( extKey,
arr 
)

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

Paramètres:
string Extension key
array Configuration array to write back
Renvoie:
void

SC_mod_tools_em_index::updateLocalEM_CONF ( extKey,
extInfo 
)

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

Paramètres:
string Extension key
array Extension information array
Renvoie:
string Status message

SC_mod_tools_em_index::construct_ext_emconf_file ( extKey,
EM_CONF 
)

Compiles the ext_emconf.php file

Paramètres:
string Extension key
array EM_CONF array
Renvoie:
string PHP file content, ready to write to ext_emconf.php file

SC_mod_tools_em_index::arrayToCode ( array,
level = 0 
)

Enter description here...

Paramètres:
unknown_type $array
unknown_type $lines
unknown_type $level
Renvoie:
unknown

SC_mod_tools_em_index::makeUploadArray ( extKey,
conf 
)

Make upload array out of extension

Paramètres:
string Extension key
array Extension information array
Renvoie:
mixed Returns array with extension upload array on success, otherwise an error string.

SC_mod_tools_em_index::getSerializedLocalLang ( file,
content 
)

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

Paramètres:
string Absolute path to locallang file to include.
string Old content of a locallang file (keeping the header content)
Renvoie:
array Array with head