

| tx_install::tx_install | ( | ) |
Constructor
| tx_install::checkPassword | ( | $ | uKey | ) |
Returns true if submitted password is ok. Else displays a form in which to enter password.
| [type] | $uKey: ... |
| tx_install::loginForm | ( | ) |
[Describe function...]
| tx_install::init | ( | ) |
Calling function that checks system, IM, GD, dirs, database and lets you alter localconf.php This method is called from init.php to start the install Tool.
| tx_install::stepOutput | ( | ) |
Controls the step 1-2-3-go process
| tx_install::checkTheConfig | ( | ) |
Calling the functions that checks the system
| tx_install::typo3conf_edit | ( | ) |
Editing files in typo3conf directory (or elsewhere if enabled)
| tx_install::phpinformation | ( | ) |
Outputs system information
| tx_install::typo3TempManager | ( | ) |
Provides a tool for deleting temporary files located in typo3temp/
| tx_install::getSelectorOptions | ( | $ | deleteType, | |
| $ | tt = '' | |||
| ) |
[Describe function...]
| [type] | $deleteType: ... | |
| [type] | $tt: ... |
| tx_install::cleanupManager | ( | ) |
Provides a tool cleaning up various tables in the database
| tx_install::generateConfigForm | ( | $ | type = '' |
) |
Creating the form for editing the TYPO3_CONF_VARS options.
| [type] | $type: ... |
| tx_install::getDefaultConfigArrayComments | ( | $ | string, | |
| $ | mainArray = array(), |
|||
| $ | commentArray = array() | |||
| ) |
[Describe function...]
| [type] | $string: ... | |
| [type] | $mainArray: ... | |
| [type] | $commentArray: ... |
| tx_install::checkConfiguration | ( | ) |
Checking php.ini configuration and set appropriate messages and flags.
| tx_install::check_mail | ( | $ | cmd = '' |
) |
Check if PHP function mail() works
| string | $cmd If "get_form" then a formfield for the mail-address is shown. If not, it's checked if "check_mail" was in the INSTALL array and if so a test mail is sent to the recipient given. |
| tx_install::checkExtensions | ( | ) |
Checking php extensions, specifically GDLib and Freetype
| tx_install::checkDirs | ( | ) |
Checking and testing that the required writable directories are writable.
| tx_install::checkImageMagick | ( | $ | paths | ) |
Checking for existing ImageMagick installs.
This tries to find available ImageMagick installations and tries to find the version numbers by executing "convert" without parameters. If the ->checkIMlzw is set, LZW capabilities of the IM installs are check also.
| [type] | $paths: ... |
| tx_install::_checkImageMagickGifCapability | ( | $ | path | ) |
Checking GIF-compression capabilities of ImageMagick install
| [type] | $file: ... |
| tx_install::_checkImageMagick_getVersion | ( | $ | file, | |
| $ | path | |||
| ) |
Extracts the version number for ImageMagick
| string | The program name to execute in order to find out the version number | |
| string | Path for the above program |
| tx_install::checkDatabase | ( | ) |
Checks database username/password/host/database
| tx_install::setupGeneral | ( | $ | cmd = '' |
) |
Prints form for updating localconf.php or updates localconf.php depending on $cmd
| string | $cmd If "get_form" it outputs the form. Default is to write "localconf.php" based on input in ->INSTALL[localconf.php] array and flag ->setLocalconf |
| tx_install::writeToLocalconf_control | ( | $ | lines = '', |
|
| $ | showOutput = TRUE | |||
| ) |
Writes or returns lines from localconf.php
| array | Array of lines to write back to localconf.php. Possibly | |
| boolean | If TRUE then print what has been done. |
Réimplémentée à partir de t3lib_install.
| tx_install::outputExitBasedOnStep | ( | $ | content | ) |
[Describe function...]
| [type] | $content: ... |
| tx_install::setLabelValueArray | ( | $ | arr, | |
| $ | type | |||
| ) |
This appends something to value in the input array based on $type. Private.
| [type] | $arr: ... | |
| [type] | $type: ... |
| tx_install::getFormElement | ( | $ | labels, | |
| $ | values, | |||
| $ | fieldName, | |||
| $ | default, | |||
| $ | msg = '' | |||
| ) |
Returns a form-element for the localconf.php update form
| [type] | $labels: ... | |
| [type] | $values: ... | |
| [type] | $fieldName: ... | |
| [type] | $default: ... | |
| [type] | $msg: ... |
| tx_install::getDatabaseList | ( | ) |
Returns the list of available databases (with access-check based on username/password)
| tx_install::setupGeneralCalculate | ( | ) |
Calculates the suggested setup that should be written to localconf.php
If safe_mode
if PNG/GIF/GD
| tx_install::getGDPartOfPhpinfo | ( | ) |
Returns the part of phpinfo() output that tells about GD library (HTML-code)
| tx_install::isTTF | ( | $ | phpinfo = '' |
) |
Returns true if TTF lib is install according to phpinfo(). If $phpinfo supply as parameter that string is searched instead.
| [type] | $phpinfo: ... |
| tx_install::isGD | ( | ) |
| tx_install::isGIF | ( | ) |
[Describe function...]
| tx_install::isJPG | ( | ) |
[Describe function...]
| tx_install::isPNG | ( | ) |
[Describe function...]
| tx_install::ImageTypes | ( | ) |
[Describe function...]
| tx_install::getGDSoftwareInfo | ( | ) |
Returns general information about GDlib
| tx_install::generallyAboutConfiguration | ( | ) |
| tx_install::checkTheImageProcessing | ( | ) |
jesus.TIF: IBM/LZW jesus.GIF: Save for web, 32 colors jesus.JPG: Save for web, 30 quality jesus.PNG: Save for web, PNG-24 jesus.tga 24 bit TGA file jesus.pcx jesus.bmp 24 bit BMP file jesus_ps6.PDF: PDF w/layers and vector data typo3logo.ai: Illustrator 8 file pdf_from_imagemagick.PDF PDF-file made by Acrobat Distiller from InDesign PS-file
Imagemagick
Problems may arise from the use of safe_mode (eg. png) In safemode you will automatically execute the program convert in the safe_mode_exec_path no matter what other path you specify check fileexist before anything...
GDlib:
From TypoScript: (GD only, GD+IM, IM)
| tx_install::isExtensionEnabled | ( | $ | ext, | |
| $ | headCode, | |||
| $ | short | |||
| ) |
[Describe function...]
| [type] | $ext: ... | |
| [type] | $headCode: ... | |
| [type] | $short: ... |
| tx_install::displayTwinImage | ( | $ | imageFile, | |
| $ | IMcommands = array(), |
|||
| $ | note = '' | |||
| ) |
[Describe function...]
| [type] | $imageFile: ... | |
| [type] | $IMcommands: ... | |
| [type] | $note: ... |
| tx_install::getTwinImageMessage | ( | $ | message, | |
| $ | label_1 = "", |
|||
| $ | label_2 = '' | |||
| ) |
[Describe function...]
| [type] | $message: ... | |
| [type] | $label_1: ... | |
| [type] | $label_2: ... |
| tx_install::formatImCmds | ( | $ | arr | ) |
[Describe function...]
| [type] | $arr: ... |
| tx_install::imagemenu | ( | ) |
[Describe function...]
| tx_install::checkTheDatabase | ( | ) |
| tx_install::updateWizard | ( | ) |
Generates update wizard, outputs it as well
| tx_install::updateWizard_parts | ( | $ | action | ) |
Implements the steps for the update wizard
| string | action which should be done. |
| tx_install::getUpgradeObjInstance | ( | $ | className, | |
| $ | identifier | |||
| ) |
Creates instance of an upgrade object, setting the pObj, versionNumber and pObj
| string | class name | |
| identifier | identifier of upgrade object - needed to fetch user input |
| tx_install::isBackendAdminUser | ( | ) |
[Describe function...]
| tx_install::isStaticTemplates | ( | ) |
[Describe function...]
| tx_install::isBasicComplete | ( | $ | tLabel | ) |
[Describe function...]
| [type] | $tLabel: ... |
| tx_install::generateUpdateDatabaseForm | ( | $ | type, | |
| $ | arr_update, | |||
| $ | arr_remove, | |||
| $ | action_type | |||
| ) |
[Describe function...]
| [type] | $type: ... | |
| [type] | $arr_update: ... | |
| [type] | $arr_remove: ... | |
| [type] | $action_type: ... |
| tx_install::getUpdateDbFormWrap | ( | $ | action_type, | |
| $ | content, | |||
| $ | label = 'Write to database' | |||
| ) |
[Describe function...]
| [type] | $action_type: ... | |
| [type] | $content: ... | |
| [type] | $label: ... |
| tx_install::displayFields | ( | $ | arr, | |
| $ | pre = 0, |
|||
| $ | label = '' | |||
| ) |
[Describe function...]
| [type] | $arr: ... | |
| [type] | $pre: ... | |
| [type] | $label: ... |
| tx_install::displayFieldComp | ( | $ | arr, | |
| $ | arr_db | |||
| ) |
[Describe function...]
| [type] | $arr: ... | |
| [type] | $arr_db: ... |
| tx_install::displaySuggestions | ( | $ | arr, | |
| $ | excludeList = '' | |||
| ) |
[Describe function...]
| [type] | $arr: ... | |
| [type] | $excludeList: ... |
| tx_install::compareDatabaseAndTCA | ( | $ | FDsrc, | |
| $ | TCA, | |||
| $ | onlyFields = 0 | |||
| ) |
Compares an array with field definitions with $TCA array
| [type] | $FDsrc: ... | |
| [type] | $TCA: ... | |
| [type] | $onlyFields: ... |
| tx_install::compareTCAandDatabase | ( | $ | TCA, | |
| $ | FDcomp | |||
| ) |
Compares the $TCA array with a field definition array
| [type] | $TCA: ... | |
| [type] | $FDcomp: ... |
| tx_install::suggestFieldDefinition | ( | $ | fieldInfo | ) |
Suggests a field definition for a TCA config array.
| [type] | $fieldInfo: ... |
| tx_install::getItemArrayType | ( | $ | arr | ) |
Private
| [type] | $arr: ... |
| tx_install::getItemBlobSize | ( | $ | len | ) |
Private
| [type] | $len: ... |
| tx_install::suggestTCAFieldDefinition | ( | $ | fieldName, | |
| $ | fieldInfo | |||
| ) |
Should suggest a TCA configuration for a specific field.
| [type] | $fieldName: ... | |
| [type] | $fieldInfo: ... |
| tx_install::includeTCA | ( | ) |
Includes TCA
| tx_install::linkIt | ( | $ | url, | |
| $ | link = '' | |||
| ) |
This creates a link to the given $url. If $link is set, that'll be the link-text
| [type] | $url: ... | |
| [type] | $link: ... |
| tx_install::message | ( | $ | head, | |
| $ | short_string = '', |
|||
| $ | long_string = '', |
|||
| $ | type = 0, |
|||
| $ | force = 0 | |||
| ) |
Setting a message in the message-log and sets the fatalError flag if error type is 3.
| string | Section header | |
| string | A short description | |
| string | A long (more detailed) description | |
| integer | -1=OK sign, 0=message, 1=notification, 2=warning , 3=error | |
| boolean | Print message also in "Advanced" mode (not only in 1-2-3 mode) |
| tx_install::printSection | ( | $ | head, | |
| $ | short_string, | |||
| $ | long_string, | |||
| $ | type | |||
| ) |
This "prints" a section with a message to the ->sections array
| string | Section header | |
| string | A short description | |
| string | A long (more detailed) description | |
| integer | -1=OK sign, 0=message, 1=notification, 2=warning , 3=error |
| tx_install::fw | ( | $ | str, | |
| $ | size = 1 | |||
| ) |
Wraps the str in a font-tag with verdana 1
| [type] | $str: ... | |
| [type] | $size: ... |
| tx_install::fwheader | ( | $ | str | ) |
Wraps the str in a font-tag with verdana 1
| [type] | $str: ... |
| tx_install::wrapInCells | ( | $ | label, | |
| $ | content | |||
| ) |
Wrapping labal/content in a table-row.
| [type] | $label: ... | |
| [type] | $content: ... |
| tx_install::printAll | ( | ) |
This prints all the messages in the ->section array
| tx_install::outputWrapper | ( | $ | content | ) |
This wraps and returns the main content of the page into proper html-code.
| [type] | $content: ... |
| tx_install::menu | ( | ) |
[Describe function...]
| tx_install::stepHeader | ( | ) |
[Describe function...]
| tx_install::note123 | ( | ) |
[Describe function...]
| tx_install::endNotes | ( | ) |
[Describe function...]
| tx_install::convertByteSize | ( | $ | bytes | ) |
Convert a size from human-readable form into bytes
| string | A string containing the size in bytes, kilobytes or megabytes. Example: 64M |
| tx_install::securityRisk | ( | ) |
[Describe function...]
| tx_install::alterPasswordForm | ( | ) |
[Describe function...]
| tx_install::messageBasicFinished | ( | ) |
[Describe function...]
| tx_install::setScriptName | ( | $ | type | ) |
[Describe function...]
| [type] | $type: ... |
| tx_install::formWidth | ( | $ | size = 48, |
|
| $ | textarea = 0, |
|||
| $ | styleOverride = '' | |||
| ) |
[Describe function...]
| [type] | $size: ... | |
| [type] | $textarea: ... | |
| [type] | $styleOverride: ... |
| tx_install::formWidthText | ( | $ | size = 48, |
|
| $ | styleOverride = '', |
|||
| $ | wrap = '' | |||
| ) |
[Describe function...]
| [type] | $size: ... | |
| [type] | $styleOverride: ... | |
| [type] | $wrap: ... |
| tx_install::getBackupFilename | ( | $ | filename | ) |
Return the filename that will be used for the backup. It is important that backups of PHP files still stay as a PHP file, otherwise they could be viewed un-parsed in clear-text.
| string | Full path to a file |
| tx_install::$getGD_start_string = '<h2 align="center"><a name="module_gd">gd</a></h2>' |
| tx_install::$getGD_end_string = '</table>' |
| tx_install::$getTTF_string = 'with TTF library' |
| tx_install::$getTTF_string_alt = 'with freetype' |
| tx_install::$action = '' |
| tx_install::$scriptSelf = 'index.php' |
| tx_install::$fontTag2 = '<span class="bodytext">' |
| tx_install::$fontTag1 = '<span class="smalltext">' |
| tx_install::$updateIdentity = 'TYPO3 Install Tool' |
Réimplémentée à partir de t3lib_install.
| tx_install::$headerStyle = '' |
| tx_install::$contentBeforeTable = '' |
| tx_install::$setAllCheckBoxesByDefault = 0 |
| tx_install::$allowFileEditOutsite_typo3conf_dir = 0 |
| tx_install::$INSTALL = array() |
| tx_install::$checkIMlzw = 0 |
| tx_install::$checkIM = 0 |
| tx_install::$dumpImCommands = 1 |
| tx_install::$mode = '' |
| tx_install::$step = 0 |
| tx_install::$passwordOK = 0 |
| tx_install::$silent = 1 |
| tx_install::$messageFunc_nl2br = 1 |
| tx_install::$sections = array() |
| tx_install::$fatalError = 0 |
| tx_install::$sendNoCacheHeaders = 1 |
| tx_install::$config_array |
Valeur initiale :
array( // Flags are set in this array if the options are available and checked ok.
'gd'=>0,
'gd_gif'=>0,
'gd_png'=>0,
'gd_jpg'=>0,
'freetype' => 0,
'safemode' => 0,
'dir_typo3temp' => 0,
'dir_temp' => 0,
'im_versions' => array(),
'im' => 0,
'sql.safe_mode_user' => '',
'mysqlConnect' => 0,
'no_database' => 0
)
| tx_install::$typo3temp_path = '' |
| tx_install::$menuitems |
Valeur initiale :
array(
'config' => 'Basic Configuration',
'database' => 'Database Analyser',
'update' => 'Update Wizard',
'images' => 'Image Processing',
'extConfig' => 'All Configuration',
'typo3temp' => 'typo3temp/',
'cleanup' => 'Clean up database',
'phpinfo' => 'phpinfo()',
'typo3conf_edit' => 'Edit files in typo3conf/',
'about' => 'About'
)
| tx_install::$cookie_name = 'Typo3InstallTool' |
| tx_install::$JSmessage = '' |
1.5.3