API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JInstaller::__construct | ( | ) |
Constructor
protected
Réimplémentée à partir de JObject.
Réimplémentée dans mosInstaller.
Références JFactory::getDBO().
JInstaller::_findManifest | ( | ) |
Tries to find the package manifest file
private
Références $file, JText::_(), JFolder::files(), et JError::raiseWarning().
& JInstaller::_isManifest | ( | $ | file | ) |
Is the xml file a valid Joomla installation manifest file
private
string | $file | An xmlfile path to check |
Références $file, et JFactory::getXMLParser().
JInstaller::abort | ( | $ | msg = null , |
$ | type = null |
||
) |
Installation abort method
public
string | $msg | Abort message from the installer |
string | $type | Package type if defined |
Références $type, JFolder::delete(), JFile::delete(), et JError::raiseWarning().
JInstaller::copyFiles | ( | $ | files, |
$ | overwrite = null |
||
) |
Copy files from source directory to the target directory
public
array | $files | array with filenames |
boolean | $overwrite | True if existing files can be replaced |
Références $file, JPath::clean(), JFile::copy(), JFolder::copy(), elseif, JError::raiseWarning(), et JText::sprintf().
JInstaller::copyManifest | ( | $ | cid = 1 | ) |
Copies the installation manifest file to the extension folder in the given client
public
int | $cid | Where to copy the installfile [optional: defaults to 1 (admin)] |
Références $cid, $client, $path, JApplicationHelper::getClientInfo(), et jimport().
& JInstaller::getDBO | ( | ) |
Get the database connector object
public
& JInstaller::getInstance | ( | ) | [static] |
Returns a reference to the global Installer object, only creating it if it doesn't already exist.
Référencé par InstallerModelInstall::install(), InstallerModelLanguages::remove(), et InstallerModel::remove().
& JInstaller::getManifest | ( | ) |
Get the installation manifest object
public
JInstaller::getOverwrite | ( | ) |
Get the allow overwrite switch
public
JInstaller::getParams | ( | ) |
JInstaller::getPath | ( | $ | name, |
$ | default = null |
||
) |
Get an installer path by name
public
string | $name | Path name |
string | $default | Default value |
Références $name.
JInstaller::install | ( | $ | path = null | ) |
Package installation method
public
string | $path | Path to package source folder |
Références $config, $path, $type, $version, JText::_(), JFolder::exists(), et JFactory::getConfig().
JInstaller::parseFiles | ( | $ | element, |
$ | cid = 0 |
||
) |
Method to parse through a files element of the installation manifest and take appropriate action.
public
object | $element | The xml node to process |
int | $cid | Application ID of application to install to |
Références $cid, $client, $file, $folder, $path, JText::_(), JFolder::create(), JApplicationHelper::getClientInfo(), jimport(), et JError::raiseWarning().
JInstaller::parseLanguages | ( | $ | element, |
$ | cid = 0 |
||
) |
Method to parse through a languages element of the installation manifest and take appropriate action.
public
object | $element | The xml node to process |
int | $cid | Application ID of application to install to |
Références $cid, $client, $file, $folder, $path, JText::_(), JFolder::create(), JFolder::exists(), JApplicationHelper::getClientInfo(), jimport(), et JError::raiseWarning().
JInstaller::parseMedia | ( | $ | element, |
$ | cid = 0 |
||
) |
Method to parse through a media element of the installation manifest and take appropriate action.
public
object | $element | The xml node to process |
int | $cid | Application ID of application to install to |
Références $cid, $client, $file, $folder, $path, JText::_(), JPath::clean(), JFolder::create(), JApplicationHelper::getClientInfo(), jimport(), et JError::raiseWarning().
JInstaller::parseQueries | ( | $ | element | ) |
Backward compatible Method to parse through a queries element of the installation manifest file and take appropriate action.
public
object | $element | The xml node to process |
Références $db, $query, JText::_(), et JError::raiseWarning().
JInstaller::parseSQLFiles | ( | $ | element | ) |
Method to extract the name of a discreet installation sql file from the installation manifest file.
public
object | $element | The xml node to process |
string | $version | The database connector to use |
Références $db, $file, $query, JText::_(), jimport(), JError::raiseWarning(), et JInstallerHelper::splitSql().
JInstaller::pushStep | ( | $ | step | ) |
Pushes a step onto the installer stack for rolling back steps
public
array | $step | Installer step |
JInstaller::removeFiles | ( | $ | element, |
$ | cid = 0 |
||
) |
Method to parse through a files element of the installation manifest and remove the files that were installed
public
object | $element | The xml node to process |
int | $cid | Application ID of application to remove from |
Références $cid, $client, $file, $folder, $path, JFile::delete(), JFolder::delete(), JFolder::exists(), JApplicationHelper::getClientInfo(), et jimport().
JInstaller::setAdapter | ( | $ | name, |
$ | adapter = null |
||
) |
JInstaller::setOverwrite | ( | $ | state = false | ) |
Set the allow overwrite switch
public
boolean | $state | Overwrite switch state |
Références $state.
JInstaller::setPath | ( | $ | name, |
$ | value | ||
) |
Sets an installer path by name
public
string | $name | Path name |
string | $value | Path |
Références $name.
JInstaller::setupInstall | ( | ) |
Prepare for installation: this method sets the installation directory, finds and checks the installation file and verifies the installation type
public
Références $type.
JInstaller::uninstall | ( | $ | type, |
$ | identifier, | ||
$ | cid = 0 |
||
) |
JInstaller::update | ( | $ | path = null | ) |
Package update method
public
string | $path | Path to package source folder |
Références $config, $path, $type, $version, JText::_(), JFolder::exists(), et JFactory::getConfig().
JInstaller::$_adapters = array() |
JInstaller::$_db = null |
JInstaller::$_manifest = null |
JInstaller::$_overwrite = false |
JInstaller::$_paths = array() |
JInstaller::$_stepStack = array() |
JInstaller::$message = null |