[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Installer/Adapter/ -> PackageAdapter.php (summary)

Joomla! Content Management System

Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 718 lines (24 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PackageAdapter:: (16 methods):
  checkExtensionInFilesystem()
  copyBaseFiles()
  createExtensionRoot()
  finaliseInstall()
  finaliseUninstall()
  getElement()
  loadLanguage()
  onExtensionAfterInstall()
  parseOptionalTags()
  removeExtensionFiles()
  setupInstallPaths()
  setupUninstall()
  storeExtension()
  triggerManifestScript()
  _getExtensionId()
  refreshManifestCache()


Class: PackageAdapter  - X-Ref

Package installer

checkExtensionInFilesystem()   X-Ref
Method to check if the extension is present in the filesystem, flags the route as update if so

return: void

copyBaseFiles()   X-Ref
Method to copy the extension's base files from the `<files>` tag(s) and the manifest file

return: void

createExtensionRoot()   X-Ref
Method to create the extension root path if necessary

return: void

finaliseInstall()   X-Ref
Method to finalise the installation processing

return: void

finaliseUninstall()   X-Ref
Method to finalise the uninstallation processing

return: boolean

getElement($element = null)   X-Ref
Get the filtered extension element from the manifest

param: string  $element  Optional element name to be converted
return: string  The filtered element

loadLanguage($path)   X-Ref
Load language from a path

param: string  $path  The path of the language.
return: void

onExtensionAfterInstall(Event $event)   X-Ref
Handler for the `onExtensionAfterInstall` event

param: Event  $event  The event
return: void

parseOptionalTags()   X-Ref
Method to parse optional tags in the manifest

return: void

removeExtensionFiles()   X-Ref
Removes this extension's files

return: void

setupInstallPaths()   X-Ref
Method to do any prechecks and setup the install paths for the extension

return: void

setupUninstall()   X-Ref
Method to do any prechecks and setup the uninstall job

return: void

storeExtension()   X-Ref
Method to store the extension to the database

return: void

triggerManifestScript($method)   X-Ref
Executes a custom install script method

param: string  $method  The install method to execute
return: boolean  True on success

_getExtensionId($type, $id, $client, $group)   X-Ref
Gets the extension id.

param: string   $type    The extension type.
param: string   $id      The name of the extension (the element field).
param: integer  $client  The application id (0: Joomla CMS site; 1: Joomla CMS administrator).
param: string   $group   The extension group (mainly for plugins).
return: integer

refreshManifestCache()   X-Ref
Refreshes the extension table cache

return: boolean  Result of operation, true if updated, false on failure



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer