Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
preflight ($type, $parent) | |
getInstances ($isModule) | |
getParam ($name, $id=0) | |
setParams ($paramArray=null, $type='edit', $id=0) | |
getItemArray ($element, $table, $column, $identifier) | |
removeFiles () | |
moveCliFiles () | |
addDashboardMenu (string $dashboard, string $preset) | |
Attributs protégés | |
$release | |
$paramTable | |
$extension | |
$deleteFiles = array() | |
$deleteFolders = array() | |
$cliScriptFiles = array() | |
$minimumPhp | |
$minimumJoomla | |
$allowDowngrades = false | |
Base install script for use by extensions providing helper methods for common behaviours.
addDashboardMenu | ( | string | $dashboard, |
string | $preset | ||
) |
Creates the dashboard menu module
string | $dashboard | The name of the dashboard |
string | $preset | The name of the menu preset |
Références $model, $module, $title, Text\_(), extension, Factory\getApplication(), et Text\sprintf().
getInstances | ( | $isModule | ) |
Gets each instance of a module in the #__modules table
boolean | $isModule | True if the extension is a module as this can have multiple instances |
Références $db, $extension, $query, et Factory\getDbo().
getItemArray | ( | $element, | |
$table, | |||
$column, | |||
$identifier | |||
) |
Builds a standard select query to produce better DRY code in this script. This should produce a single unique cell which is json encoded - it will then return an associated array with this data in.
string | $element | The element to get from the query |
string | $table | The table to search for the data in |
string | $column | The column of the database to search from |
mixed | $identifier | The integer id or the string |
Références $db, $query, Factory\getDbo(), ParameterType\INTEGER, et ParameterType\STRING.
getParam | ( | $name, | |
$id = 0 |
|||
) |
moveCliFiles | ( | ) |
Moves the CLI scripts into the CLI folder in the CMS
Références $name, JPATH_ROOT, File\move(), et Text\sprintf().
preflight | ( | $type, | |
$parent | |||
) |
Function called before extension installation/update/removal procedure commences
string | $type | The type of change (install, update or discover_install, not uninstall) |
InstallerAdapter | $parent | The class calling this method |
Références $manifest, $type, Log\add(), extension, Factory\getApplication(), Symfony\Component\Console\Command\release(), Text\sprintf(), et Log\WARNING.
removeFiles | ( | ) |
Remove the files and folders in the given array from
Références $folder, File\delete(), Folder\delete(), Folder\exists(), JPATH_ROOT, et Text\sprintf().
setParams | ( | $paramArray = null , |
|
$type = 'edit' , |
|||
$id = 0 |
|||
) |
Sets parameter values in the extensions row of the extension table. Note that the this must be called separately for deleting and editing. Note if edit is called as a type then if the param doesn't exist it will be created
array | $paramArray | The array of parameters to be added/edited/removed |
string | $type | The type of change to be made to the param (edit/remove) |
integer | $id | The id of the item in the relevant table |
Références $db, $id, $name, $params, $query, $this, $type, $value, elseif, Factory\getDbo(), et ParameterType\INTEGER.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |