Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe InstallerModelUpdate
+ Graphe d'héritage de InstallerModelUpdate:

Fonctions membres publiques

 __construct ($config=array())
 
 getDisabledUpdateSites ()
 
 findUpdates ($eid=0, $cacheTimeout=0, $minimumStability=JUpdater::STABILITY_STABLE)
 
 purge ()
 
 enableSites ()
 
 update ($uids, $minimumStability=JUpdater::STABILITY_STABLE)
 
 getForm ($data=array(), $loadData=true)
 

Fonctions membres protégées

 populateState ($ordering='u.name', $direction='asc')
 
 getListQuery ()
 
 translate (&$items)
 
 _getList ($query, $limitstart=0, $limit=0)
 
 loadFormData ()
 
 preparePreUpdate ($update, $table)
 

Fonctions membres privées

 install ($update)
 

Description détaillée

Installer Update Model

Depuis
1.6

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config = array())

Constructor.

Paramètres
array$configAn optional associative array of configuration settings.
Voir également
JController
Depuis
1.6

Références $config.

Documentation des fonctions membres

◆ _getList()

_getList (   $query,
  $limitstart = 0,
  $limit = 0 
)
protected

Returns an object list

Paramètres
string$queryThe query
int$limitstartOffset
int$limitThe number of records
Renvoie
array
Depuis
3.5

Références $db, $limit, $listDirn, $listOrder, $query, $total, et null.

◆ enableSites()

enableSites ( )

Enables any disabled rows in #__update_sites table

Renvoie
boolean result of operation
Depuis
1.6

Références $db, $query, et $rows.

◆ findUpdates()

findUpdates (   $eid = 0,
  $cacheTimeout = 0,
  $minimumStability = JUpdater::STABILITY_STABLE 
)

Finds updates for an extension.

Paramètres
int$eidExtension identifier to look for
int$cacheTimeoutCache timeout
int$minimumStabilityMinimum stability for updates {
Voir également
JUpdater} (0=dev, 1=alpha, 2=beta, 3=rc, 4=stable)
Renvoie
boolean Result
Depuis
1.6

◆ getDisabledUpdateSites()

getDisabledUpdateSites ( )

Get the count of disabled update sites

Renvoie
integer
Depuis
3.4

Références $db, et $query.

◆ getForm()

getForm (   $data = array(),
  $loadData = true 
)

Method to get the row form.

Paramètres
array$dataData for the form.
boolean$loadDataTrue if the form is to load its own data (default case), false if not.
Renvoie
mixed A JForm object on success, false on failure
Depuis
2.5.2

Références $data, et $form.

◆ getListQuery()

getListQuery ( )
protected

Method to get the database query

Renvoie
JDatabaseQuery The database query
Depuis
1.6

Références $clientId, $db, $folder, $query, $type, et elseif.

◆ install()

install (   $update)
private

Handles the actual update installation.

Paramètres
JUpdate$updateAn update definition
Renvoie
boolean Result of install
Depuis
1.6

Références $app, $check, $config, $name, $url, et JError\raiseWarning().

◆ loadFormData()

loadFormData ( )
protected

Method to get the data that should be injected in the form.

Renvoie
mixed The data for the form.
Depuis
2.5.2

Références $data.

◆ populateState()

populateState (   $ordering = 'u.name',
  $direction = 'asc' 
)
protected

Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

Paramètres
string$orderingAn optional ordering field.
string$directionAn optional direction (asc|desc).
Renvoie
void
Depuis
1.6

Références $app, $direction, $ordering, et null.

◆ preparePreUpdate()

preparePreUpdate (   $update,
  $table 
)
protected

Method to add parameters to the update

Paramètres
JUpdate$updateAn update definition
JTableUpdate$tableThe update instance from the database
Renvoie
void
Depuis
3.7.0

Références $path, if, jimport(), JPATH_ADMINISTRATOR, et JPATH_SITE.

◆ purge()

purge ( )

Removes all of the updates from the table.

Renvoie
boolean result of operation
Depuis
1.6

Références $db, et $query.

◆ translate()

translate ( $items)
protected

Translate a list of objects

Paramètres
array$itemsThe array of objects
Renvoie
array The array of translated objects
Depuis
3.5

Références $item, $items, et $manifest.

◆ update()

update (   $uids,
  $minimumStability = JUpdater::STABILITY_STABLE 
)

Update function.

Sets the "result" state with the result of the operation.

Paramètres
array$uidsArray[int] List of updates to apply
int$minimumStabilityThe minimum allowed stability for installed updates {
Voir également
JUpdater}
Renvoie
void
Depuis
1.6

La documentation de cette classe a été générée à partir du fichier suivant :