API17

Difference between revisions of "JInstaller"

From Joomla! Documentation

(Layout updates)
m (moving preparation)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|11.1}} JInstaller==
 +
===Description===
 +
{{Description:JInstaller}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JInstaller|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JInstaller|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JInstaller}}
 
===Defined in===
 
libraries/joomla/installer/installer.php
 
* see source code in [[jplatform:installer/installer.php|BitBucket]]
 
===Subpackage===
 
[[Subpackage Installer/11.1|Installer]]
 
===Extends===
 
[[JAdapter/11.1|JAdapter]]
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
|[[JInstaller::__construct/11.1|__construct]]
+
|public
 +
|[[API17:JInstaller::__construct|__construct]]
 
|Constructor.  
 
|Constructor.  
 
|-
 
|-
|[[JInstaller::abort/11.1|abort]]
+
|public
 +
|[[API17:JInstaller::abort|abort]]
 
|Installation abort method.  
 
|Installation abort method.  
 
|-
 
|-
|[[JInstaller::cleanDiscoveredExtension/11.1|cleanDiscoveredExtension]]
+
|public
 +
|[[API17:JInstaller::cleanDiscoveredExtension|cleanDiscoveredExtension]]
 
|Cleans up discovered extensions if they're being installed somehow else.  
 
|Cleans up discovered extensions if they're being installed somehow else.  
 
|-
 
|-
|[[JInstaller::copyFiles/11.1|copyFiles]]
+
|public
|Copy files from source directory to the target directory.  
+
|[[API17:JInstaller::copyFiles|copyFiles]]
 +
|Copyfiles.  
 
|-
 
|-
|[[JInstaller::copyManifest/11.1|copyManifest]]
+
|public
 +
|[[API17:JInstaller::copyManifest|copyManifest]]
 
|Copies the installation manifest file to the extension folder in the given client.  
 
|Copies the installation manifest file to the extension folder in the given client.  
 
|-
 
|-
|[[JInstaller::discover/11.1|discover]]
+
|public
 +
|[[API17:JInstaller::discover|discover]]
 
|Extension discover method Asks each adapter to find extensions.  
 
|Extension discover method Asks each adapter to find extensions.  
 
|-
 
|-
|[[JInstaller::discover_install/11.1|discover_install]]
+
|public
 +
|[[API17:JInstaller::discover_install|discover_install]]
 
|
 
|
 
|-
 
|-
|[[JInstaller::findDeletedFiles/11.1|findDeletedFiles]]
+
|public
 +
|[[API17:JInstaller::findDeletedFiles|findDeletedFiles]]
 
|Compares two "files" entries to find deleted files/folders.  
 
|Compares two "files" entries to find deleted files/folders.  
 
|-
 
|-
|[[JInstaller::findManifest/11.1|findManifest]]
+
|public
 +
|[[API17:JInstaller::findManifest|findManifest]]
 
|Tries to find the package manifest file.  
 
|Tries to find the package manifest file.  
 
|-
 
|-
|[[JInstaller::generateManifestCache/11.1|generateManifestCache]]
+
|public
 +
|[[API17:JInstaller::generateManifestCache|generateManifestCache]]
 
|Generates a manifest cache.  
 
|Generates a manifest cache.  
 
|-
 
|-
|[[JInstaller::getManifest/11.1|getManifest]]
+
|public
 +
|[[API17:JInstaller::getManifest|getManifest]]
 
|Get the installation manifest object.  
 
|Get the installation manifest object.  
 
|-
 
|-
|[[JInstaller::getOverwrite/11.1|getOverwrite]]
+
|public
 +
|[[API17:JInstaller::getOverwrite|getOverwrite]]
 
|Get the allow overwrite switch.  
 
|Get the allow overwrite switch.  
 
|-
 
|-
|[[JInstaller::getParams/11.1|getParams]]
+
|public
|Method to parse the parameters of an extension, build the INI string for it's default parameters, and return the INI string.  
+
|[[API17:JInstaller::getParams|getParams]]
 +
|Method to parse the parameters of an extension, build the INI string for its default parameters, and return the INI string.  
 
|-
 
|-
|[[JInstaller::getPath/11.1|getPath]]
+
|public
 +
|[[API17:JInstaller::getPath|getPath]]
 
|Get an installer path by name.  
 
|Get an installer path by name.  
 
|-
 
|-
|[[JInstaller::getRedirectURL/11.1|getRedirectURL]]
+
|public
 +
|[[API17:JInstaller::getRedirectURL|getRedirectURL]]
 
|Get the redirect location.  
 
|Get the redirect location.  
 
|-
 
|-
|[[JInstaller::getUpgrade/11.1|getUpgrade]]
+
|public
 +
|[[API17:JInstaller::getUpgrade|getUpgrade]]
 
|Get the allow overwrite switch.  
 
|Get the allow overwrite switch.  
 
|-
 
|-
|[[JInstaller::install/11.1|install]]
+
|public
 +
|[[API17:JInstaller::install|install]]
 
|Package installation method.  
 
|Package installation method.  
 
|-
 
|-
|[[JInstaller::isManifest/11.1|isManifest]]
+
|public
 +
|[[API17:JInstaller::isManifest|isManifest]]
 
|Is the xml file a valid Joomla installation manifest file.  
 
|Is the xml file a valid Joomla installation manifest file.  
 
|-
 
|-
|[[JInstaller::loadMD5Sum/11.1|loadMD5Sum]]
+
|public
 +
|[[API17:JInstaller::loadMD5Sum|loadMD5Sum]]
 
|Loads an MD5SUMS file into an associative array.  
 
|Loads an MD5SUMS file into an associative array.  
 
|-
 
|-
|[[JInstaller::parseFiles/11.1|parseFiles]]
+
|public
 +
|[[API17:JInstaller::parseFiles|parseFiles]]
 
|Method to parse through a files element of the installation manifest and take appropriate action.  
 
|Method to parse through a files element of the installation manifest and take appropriate action.  
 
|-
 
|-
|[[JInstaller::parseLanguages/11.1|parseLanguages]]
+
|public
 +
|[[API17:JInstaller::parseLanguages|parseLanguages]]
 
|Method to parse through a languages element of the installation manifest and take appropriate action.  
 
|Method to parse through a languages element of the installation manifest and take appropriate action.  
 
|-
 
|-
|[[JInstaller::parseMedia/11.1|parseMedia]]
+
|public
 +
|[[API17:JInstaller::parseMedia|parseMedia]]
 
|Method to parse through a media element of the installation manifest and take appropriate action.  
 
|Method to parse through a media element of the installation manifest and take appropriate action.  
 
|-
 
|-
|[[JInstaller::parseQueries/11.1|parseQueries]]
+
|public
|Backward compatible Method to parse through a queries element of the installation manifest file and take appropriate action.  
+
|[[API17:JInstaller::parseQueries|parseQueries]]
 +
|Backward compatible method to parse through a queries element of the installation manifest file and take appropriate action.  
 
|-
 
|-
|[[JInstaller::parseSchemaUpdates/11.1|parseSchemaUpdates]]
+
|public
 +
|[[API17:JInstaller::parseSchemaUpdates|parseSchemaUpdates]]
 
|Method to process the updates for an item.  
 
|Method to process the updates for an item.  
 
|-
 
|-
|[[JInstaller::parseSQLFiles/11.1|parseSQLFiles]]
+
|public
 +
|[[API17:JInstaller::parseSQLFiles|parseSQLFiles]]
 
|Method to extract the name of a discreet installation sql file from the installation manifest file.  
 
|Method to extract the name of a discreet installation sql file from the installation manifest file.  
 
|-
 
|-
|[[JInstaller::pushStep/11.1|pushStep]]
+
|public
 +
|[[API17:JInstaller::pushStep|pushStep]]
 
|Pushes a step onto the installer stack for rolling back steps.  
 
|Pushes a step onto the installer stack for rolling back steps.  
 
|-
 
|-
|[[JInstaller::refreshManifestCache/11.1|refreshManifestCache]]
+
|public
 +
|[[API17:JInstaller::refreshManifestCache|refreshManifestCache]]
 
|Refreshes the manifest cache stored in __extensions.  
 
|Refreshes the manifest cache stored in __extensions.  
 
|-
 
|-
|[[JInstaller::removeFiles/11.1|removeFiles]]
+
|public
 +
|[[API17:JInstaller::removeFiles|removeFiles]]
 
|Method to parse through a files element of the installation manifest and remove the files that were installed.  
 
|Method to parse through a files element of the installation manifest and remove the files that were installed.  
 
|-
 
|-
|[[JInstaller::setOverwrite/11.1|setOverwrite]]
+
|public
 +
|[[API17:JInstaller::setOverwrite|setOverwrite]]
 
|Set the allow overwrite switch.  
 
|Set the allow overwrite switch.  
 
|-
 
|-
|[[JInstaller::setPath/11.1|setPath]]
+
|public
 +
|[[API17:JInstaller::setPath|setPath]]
 
|Sets an installer path by name.  
 
|Sets an installer path by name.  
 
|-
 
|-
|[[JInstaller::setRedirectURL/11.1|setRedirectURL]]
+
|public
 +
|[[API17:JInstaller::setRedirectURL|setRedirectURL]]
 
|Set the redirct location.  
 
|Set the redirct location.  
 
|-
 
|-
|[[JInstaller::setSchemaVersion/11.1|setSchemaVersion]]
+
|public
 +
|[[API17:JInstaller::setSchemaVersion|setSchemaVersion]]
 
|Set the schema version for an extension by looking at its latest update.  
 
|Set the schema version for an extension by looking at its latest update.  
 
|-
 
|-
|[[JInstaller::setUpgrade/11.1|setUpgrade]]
+
|public
 +
|[[API17:JInstaller::setUpgrade|setUpgrade]]
 
|Set the allow overwrite switch.  
 
|Set the allow overwrite switch.  
 
|-
 
|-
|[[JInstaller::setupInstall/11.1|setupInstall]]
+
|public
 +
|[[API17:JInstaller::setupInstall|setupInstall]]
 
|Prepare for installation: this method sets the installation directory, finds and checks the installation file and verifies the installation type.  
 
|Prepare for installation: this method sets the installation directory, finds and checks the installation file and verifies the installation type.  
 
|-
 
|-
|[[JInstaller::uninstall/11.1|uninstall]]
+
|public
 +
|[[API17:JInstaller::uninstall|uninstall]]
 
|Package uninstallation method.  
 
|Package uninstallation method.  
 
|-
 
|-
|[[JInstaller::update/11.1|update]]
+
|public
 +
|[[API17:JInstaller::update|update]]
 
|Package update method.  
 
|Package update method.  
 
|-
 
|-
|[[JInstaller::getInstance/11.1|getInstance]]
+
|public static
 +
|[[API17:JInstaller::getInstance|getInstance]]
 
|Returns the global Installer object, only creating it if it doesn't already exist.  
 
|Returns the global Installer object, only creating it if it doesn't already exist.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/installer/installer.php
 +
* '''Extends''' [[API17:JAdapter|JAdapter]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.installer.installer' );</source>
 
<source lang="php">jimport( 'joomla.installer.installer' );</source>
 
===See also===
 
===See also===
* JInstaller source code in [[jplatform:installer/installer.php|BitBucket]]
+
* {{JVer|11.1}} '''JInstaller source code''' on [[jplatform:installer/installer.php|BitBucket]]
* [[JInstaller|Other versions of this class]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Installer|Installer]]
 +
* [[API17:JInstaller|Other versions of JInstaller]]
 
{{SeeAlso:JInstaller}}
 
{{SeeAlso:JInstaller}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JInstaller|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JInstaller|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Examples===
+
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 147: Line 182:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JInstaller]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 20:58, 11 May 2013

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JInstaller[edit]

Description[edit]

Template:Description:JInstaller [Edit Descripton]

Methods[edit]

Visibility Method name Description
public __construct Constructor.
public abort Installation abort method.
public cleanDiscoveredExtension Cleans up discovered extensions if they're being installed somehow else.
public copyFiles Copyfiles.
public copyManifest Copies the installation manifest file to the extension folder in the given client.
public discover Extension discover method Asks each adapter to find extensions.
public discover_install
public findDeletedFiles Compares two "files" entries to find deleted files/folders.
public findManifest Tries to find the package manifest file.
public generateManifestCache Generates a manifest cache.
public getManifest Get the installation manifest object.
public getOverwrite Get the allow overwrite switch.
public getParams Method to parse the parameters of an extension, build the INI string for its default parameters, and return the INI string.
public getPath Get an installer path by name.
public getRedirectURL Get the redirect location.
public getUpgrade Get the allow overwrite switch.
public install Package installation method.
public isManifest Is the xml file a valid Joomla installation manifest file.
public loadMD5Sum Loads an MD5SUMS file into an associative array.
public parseFiles Method to parse through a files element of the installation manifest and take appropriate action.
public parseLanguages Method to parse through a languages element of the installation manifest and take appropriate action.
public parseMedia Method to parse through a media element of the installation manifest and take appropriate action.
public parseQueries Backward compatible method to parse through a queries element of the installation manifest file and take appropriate action.
public parseSchemaUpdates Method to process the updates for an item.
public parseSQLFiles Method to extract the name of a discreet installation sql file from the installation manifest file.
public pushStep Pushes a step onto the installer stack for rolling back steps.
public refreshManifestCache Refreshes the manifest cache stored in __extensions.
public removeFiles Method to parse through a files element of the installation manifest and remove the files that were installed.
public setOverwrite Set the allow overwrite switch.
public setPath Sets an installer path by name.
public setRedirectURL Set the redirct location.
public setSchemaVersion Set the schema version for an extension by looking at its latest update.
public setUpgrade Set the allow overwrite switch.
public setupInstall Prepare for installation: this method sets the installation directory, finds and checks the installation file and verifies the installation type.
public uninstall Package uninstallation method.
public update Package update method.
public static getInstance Returns the global Installer object, only creating it if it doesn't already exist.
  • Defined in libraries/joomla/installer/installer.php
  • Extends JAdapter

Importing[edit]

jimport( 'joomla.installer.installer' );

See also[edit]

Template:SeeAlso:JInstaller [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />