Liste de tous les membres
Fonctions membres publiques |
| __construct () |
| getOverwrite () |
| isOverwrite () |
| setOverwrite ($state=false) |
| getRedirectURL () |
| setRedirectURL ($newurl) |
| getUpgrade () |
| isUpgrade () |
| setUpgrade ($state=false) |
| getManifest () |
| getPath ($name, $default=null) |
| setPath ($name, $value) |
| pushStep ($step) |
| abort ($msg=null, $type=null) |
| install ($path=null) |
| discover_install ($eid=null) |
| discover () |
| update ($path=null) |
| uninstall ($type, $identifier, $cid=0) |
| refreshManifestCache ($eid) |
| setupInstall () |
| parseQueries ($element) |
| parseSQLFiles ($element) |
| setSchemaVersion ($schema, $eid) |
| parseSchemaUpdates ($schema, $eid) |
| parseFiles ($element, $cid=0, $oldFiles=null, $oldMD5=null) |
| parseLanguages ($element, $cid=0) |
| parseMedia ($element, $cid=0) |
| getParams () |
| copyFiles ($files, $overwrite=null) |
| removeFiles ($element, $cid=0) |
| copyManifest ($cid=1) |
| findManifest () |
| isManifest ($file) |
| generateManifestCache () |
| cleanDiscoveredExtension ($type, $element, $folder= '', $client=0) |
| findDeletedFiles ($old_files, $new_files) |
| loadMD5Sum ($filename) |
| __construct ($basepath, $classprefix=null, $adapterfolder=null) |
| getDBO () |
| setAdapter ($name, &$adapter=null, $options=array()) |
| getAdapter ($name, $options=array()) |
| loadAllAdapters ($options=array()) |
| __construct ($properties=null) |
| __toString () |
| def ($property, $default=null) |
| get ($property, $default=null) |
| getProperties ($public=true) |
| getError ($i=null, $toString=true) |
| getErrors () |
| set ($property, $value=null) |
| setProperties ($properties) |
| setError ($error) |
| toString () |
Attributs protégés statiques |
static | $instance |
Documentation des constructeurs et destructeur
JInstaller::__construct |
( |
| ) |
|
Documentation des fonctions membres
JInstaller::abort |
( |
|
$msg = null , |
|
|
|
$type = null |
|
) |
| |
JInstaller::cleanDiscoveredExtension |
( |
|
$type, |
|
|
|
$element, |
|
|
|
$folder = '' , |
|
|
|
$client = 0 |
|
) |
| |
Cleans up discovered extensions if they're being installed some other way
- Paramètres:
-
string | $type | The type of extension (component, etc) |
string | $element | Unique element identifier (e.g. com_content) |
string | $folder | The folder of the extension (plugins; e.g. system) |
integer | $client | The client application (administrator or site) |
- Renvoie:
- object Result of query
- Depuis:
- 11.1
Références $client, $folder, $query, et $type.
JInstaller::copyFiles |
( |
|
$files, |
|
|
|
$overwrite = null |
|
) |
| |
JInstaller::copyManifest |
( |
|
$cid = 1 | ) |
|
Copies the installation manifest file to the extension folder in the given client
- Paramètres:
-
integer | $cid | Where to copy the installfile [optional: defaults to 1 (admin)] |
- Renvoie:
- boolean True on success, False on error
- Depuis:
- 11.1
Références $client, $path, et JApplicationHelper\getClientInfo().
Extension discover method Asks each adapter to find extensions
- Renvoie:
- array JExtension
- Depuis:
- 11.1
JInstaller::discover_install |
( |
|
$eid = null | ) |
|
JInstaller::findDeletedFiles |
( |
|
$old_files, |
|
|
|
$new_files |
|
) |
| |
Compares two "files" entries to find deleted files/folders
- Paramètres:
-
array | $old_files | An array of SimpleXMLElement objects that are the old files |
array | $new_files | An array of SimpleXMLElement objects that are the new files |
- Renvoie:
- array An array with the delete files and folders in findDeletedFiles[files] and findDeletedFiles[folders] respectively
- Depuis:
- 11.1
Références $file, et $files.
JInstaller::findManifest |
( |
| ) |
|
JInstaller::generateManifestCache |
( |
| ) |
|
static JInstaller::getInstance |
( |
| ) |
|
|
static |
JInstaller::getManifest |
( |
| ) |
|
Get the installation manifest object
- Renvoie:
- object Manifest object
- Depuis:
- 11.1
JInstaller::getOverwrite |
( |
| ) |
|
JInstaller::getParams |
( |
| ) |
|
Method to parse the parameters of an extension, build the INI string for its default parameters, and return the INI string.
- Renvoie:
- string INI string of parameter values
- Depuis:
- 11.1
Références $field, $fieldsets, $name, et null.
JInstaller::getPath |
( |
|
$name, |
|
|
|
$default = null |
|
) |
| |
Get an installer path by name
- Paramètres:
-
string | $name | Path name |
string | $default | Default value |
- Renvoie:
- string Path
- Depuis:
- 11.1
Références $name.
JInstaller::getRedirectURL |
( |
| ) |
|
Get the redirect location
- Renvoie:
- string Redirect location (or null)
- Depuis:
- 11.1
JInstaller::getUpgrade |
( |
| ) |
|
JInstaller::install |
( |
|
$path = null | ) |
|
JInstaller::isManifest |
( |
|
$file | ) |
|
Is the XML file a valid Joomla installation manifest file.
- Paramètres:
-
string | $file | An xmlfile path to check |
- Renvoie:
- mixed A JXMLElement, or null if the file failed to parse
- Depuis:
- 11.1
Références $file, JFactory\getXML(), et null.
JInstaller::isOverwrite |
( |
| ) |
|
Get the allow overwrite switch
- Renvoie:
- boolean Allow overwrite switch
- Depuis:
- 11.4
JInstaller::isUpgrade |
( |
| ) |
|
Get the upgrade switch
- Renvoie:
- boolean
- Depuis:
- 11.4
JInstaller::loadMD5Sum |
( |
|
$filename | ) |
|
Loads an MD5SUMS file into an associative array
- Paramètres:
-
string | $filename | Filename to load |
- Renvoie:
- array Associative array with filenames as the index and the MD5 as the value
- Depuis:
- 11.1
Références $data, et $row.
JInstaller::parseFiles |
( |
|
$element, |
|
|
|
$cid = 0 , |
|
|
|
$oldFiles = null , |
|
|
|
$oldMD5 = null |
|
) |
| |
JInstaller::parseLanguages |
( |
|
$element, |
|
|
|
$cid = 0 |
|
) |
| |
JInstaller::parseMedia |
( |
|
$element, |
|
|
|
$cid = 0 |
|
) |
| |
Method to parse through a media element of the installation manifest and take appropriate action.
- Paramètres:
-
SimpleXMLElement | $element | The XML node to process |
integer | $cid | Application ID of application to install to |
- Renvoie:
- boolean True on success
- Depuis:
- 11.1
Références $client, $file, $folder, $path, JPath\clean(), JFolder\create(), JApplicationHelper\getClientInfo(), JPATH_ROOT, null, JError\raiseWarning(), et JText\sprintf().
JInstaller::parseQueries |
( |
|
$element | ) |
|
Backward compatible method to parse through a queries element of the installation manifest file and take appropriate action.
- Paramètres:
-
SimpleXMLElement | $element | The XML node to process |
- Renvoie:
- mixed Number of queries processed or False on error
- Depuis:
- 11.1
Références $db, $query, JError\raiseWarning(), et JText\sprintf().
JInstaller::parseSchemaUpdates |
( |
|
$schema, |
|
|
|
$eid |
|
) |
| |
Method to process the updates for an item
- Paramètres:
-
SimpleXMLElement | $schema | The XML node to process |
integer | $eid | Extension Identifier |
- Renvoie:
- boolean Result of the operations
- Depuis:
- 11.1
Références $db, $file, $files, $query, $version, JText\_(), elseif, JFolder\files(), JError\raiseWarning(), JInstallerHelper\splitSql(), et JText\sprintf().
JInstaller::parseSQLFiles |
( |
|
$element | ) |
|
static JInstaller::parseXMLInstallFile |
( |
|
$path | ) |
|
|
static |
JInstaller::pushStep |
( |
|
$step | ) |
|
Pushes a step onto the installer stack for rolling back steps
- Paramètres:
-
- Renvoie:
- void
- Depuis:
- 11.1
JInstaller::refreshManifestCache |
( |
|
$eid | ) |
|
JInstaller::removeFiles |
( |
|
$element, |
|
|
|
$cid = 0 |
|
) |
| |
Method to parse through a files element of the installation manifest and remove the files that were installed
- Paramètres:
-
object | $element | The XML node to process |
integer | $cid | Application ID of application to remove from |
- Renvoie:
- boolean True on success
- Depuis:
- 11.1
Références $client, $file, $files, $folder, $GLOBALS, $path, JFile\delete(), JFolder\delete(), JFolder\exists(), JApplicationHelper\getClientInfo(), null, et JError\raiseWarning().
JInstaller::setOverwrite |
( |
|
$state = false | ) |
|
Set the allow overwrite switch
- Paramètres:
-
boolean | $state | Overwrite switch state |
- Renvoie:
- boolean True it state is set, false if it is not
- Depuis:
- 11.1
Références $state.
JInstaller::setPath |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
JInstaller::setRedirectURL |
( |
|
$newurl | ) |
|
Set the redirect location
- Paramètres:
-
string | $newurl | New redirect location |
- Renvoie:
- void
- Depuis:
- 11.1
JInstaller::setSchemaVersion |
( |
|
$schema, |
|
|
|
$eid |
|
) |
| |
Set the schema version for an extension by looking at its latest update
- Paramètres:
-
SimpleXMLElement | $schema | Schema Tag |
integer | $eid | Extension ID |
- Renvoie:
- void
- Depuis:
- 11.1
Références $db, $files, $query, elseif, et JFolder\files().
JInstaller::setUpgrade |
( |
|
$state = false | ) |
|
Set the upgrade switch
- Paramètres:
-
boolean | $state | Upgrade switch state |
- Renvoie:
- boolean True if upgrade, false otherwise
- Depuis:
- 11.1
Références $state.
JInstaller::setupInstall |
( |
| ) |
|
Prepare for installation: this method sets the installation directory, finds and checks the installation file and verifies the installation type.
- Renvoie:
- boolean True on success
- Depuis:
- 11.1
Références $type.
JInstaller::uninstall |
( |
|
$type, |
|
|
|
$identifier, |
|
|
|
$cid = 0 |
|
) |
| |
JInstaller::update |
( |
|
$path = null | ) |
|
Documentation des données membres
JInstaller::$_overwrite = false |
|
protected |
JInstaller::$_paths = array() |
|
protected |
JInstaller::$_stepStack = array() |
|
protected |
JInstaller::$_upgrade = null |
|
protected |
JInstaller::$extension = null |
JInstaller::$extension_message = null |
|
protected |
JInstaller::$manifest = null |
JInstaller::$manifestClass = null |
JInstaller::$message = null |
JInstaller::$redirect_url = null |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :