Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe ManageModel
+ Graphe d'héritage de ManageModel:

Fonctions membres publiques

 __construct ($config=array(), MVCFactoryInterface $factory=null)
 
 publish (&$eid=array(), $value=1)
 
 refresh ($eid)
 
 remove ($eid=array())
 
 loadChangelog ($eid, $source)
 
- Fonctions membres publiques hérités de InstallerModel
 __construct ($config=array(), MVCFactoryInterface $factory=null)
 
- Fonctions membres publiques hérités de ListModel
 __construct ($config=array(), MVCFactoryInterface $factory=null)
 
 getIsEmptyState ()
 
 getActiveFilters ()
 
 getItems ()
 
 getPagination ()
 
 getTotal ()
 
 getStart ()
 
 getFilterForm ($data=array(), $loadData=true)
 
 getUserStateFromRequest ($key, $request, $default=null, $type='none', $resetPage=true)
 
- Fonctions membres publiques hérités de BaseDatabaseModel
 __construct ($config=array(), MVCFactoryInterface $factory=null)
 
 getTable ($name='', $prefix='', $options=array())
 
 isCheckedOut ($item)
 
 getDbo ()
 
 setDbo (DatabaseInterface $db=null)
 
 __get ($name)
 
- Fonctions membres publiques hérités de BaseModel
 __construct ($config=array())
 
 getName ()
 
- Fonctions membres publiques hérités de CMSObject
 __construct ($properties=null)
 
 __toString ()
 
 def ($property, $default=null)
 
 get ($property, $default=null)
 
 getProperties ($public=true)
 
 getError ($i=null, $toString=true)
 
 getErrors ()
 
 set ($property, $value=null)
 
 setProperties ($properties)
 
 setError ($error)
 
- Fonctions membres publiques hérités de StatefulModelInterface
 getState ($property=null, $default=null)
 
 setState ($property, $value=null)
 
- Fonctions membres publiques hérités de DispatcherAwareInterface
 setDispatcher (DispatcherInterface $dispatcher)
 
- Fonctions membres publiques hérités de CurrentUserInterface
 setCurrentUser (User $currentUser)
 
- Fonctions membres publiques hérités de CacheControllerFactoryAwareInterface
 setCacheControllerFactory (CacheControllerFactoryInterface $factory)
 
- Fonctions membres publiques hérités de DatabaseAwareInterface
 setDatabase (DatabaseInterface $db)
 
- Fonctions membres publiques hérités de FormFactoryAwareInterface
 setFormFactory (FormFactoryInterface $factory)
 

Fonctions membres protégées

 populateState ($ordering='name', $direction='asc')
 
 getListQuery ()
 
- Fonctions membres protégées hérités de InstallerModel
 _getList ($query, $limitstart=0, $limit=0)
 
 translate (&$items)
 
- Fonctions membres protégées hérités de ListModel
 getEmptyStateQuery ()
 
 _getListQuery ()
 
 getListQuery ()
 
 getStoreId ($id='')
 
 loadFormData ()
 
 populateState ($ordering=null, $direction=null)
 
 refineSearchStringToRegex ($search, $regexDelimiter='/')
 
- Fonctions membres protégées hérités de BaseDatabaseModel
 _getList ($query, $limitstart=0, $limit=0)
 
 _getListCount ($query)
 
 _createTable ($name, $prefix='Table', $config=array())
 
 bootComponent ($component)
 
 dispatchEvent (EventInterface $event)
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de BaseModel
static addIncludePath ($path='', $prefix='')
 
- Attributs protégés hérités de ListModel
 $cache = array()
 
 $context = null
 
 $filter_fields = array()
 
 $query = array()
 
 $lastQueryStoreId = null
 
 $filterFormName = null
 
 $htmlFormName = 'adminForm'
 
 $filterBlacklist = array()
 
 $filterForbiddenList = array()
 
 $listBlacklist = array('select')
 
 $listForbiddenList = array('select')
 
- Attributs protégés hérités de BaseDatabaseModel
 $option = null
 
 $event_clean_cache = null
 
- Attributs protégés hérités de BaseModel
 $name
 
- Attributs protégés hérités de CMSObject
 $_errors = array()
 
- Attributs protégés statiques hérités de BaseModel
static $paths
 

Description détaillée

Installer Manage Model

Depuis
1.5

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config = array(),
MVCFactoryInterface  $factory = null 
)

Constructor.

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

Références $config, et Symfony\Contracts\Service\__construct().

Documentation des fonctions membres

◆ getListQuery()

getListQuery ( )
protected

Method to get the database query

Renvoie
DatabaseQuery The database query
Depuis
1.6

Références $clientId, $db, $folder, $method, $query, $type, elseif, ExtensionHelper\getCoreExtensionIds(), Joomla\Database\getDatabase(), Joomla\CMS\MVC\Model\getState(), et ParameterType\INTEGER.

◆ loadChangelog()

loadChangelog (   $eid,
  $source 
)

Load the changelog details for a given extension.

Paramètres
integer$eidThe extension ID
string$sourceThe view the changelog is for, this is used to determine which version number to show
Renvoie
string The output to show in the modal.
Depuis
4.0.0

Références $db, $extension, $field, $layout, $name, $output, $query, $value, Joomla\Database\getDatabase(), et ParameterType\INTEGER.

◆ populateState()

populateState (   $ordering = '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
Exceptions

Références $app, $direction, $ordering, Factory\getApplication(), null, Joomla\CMS\MVC\Model\populateState(), et Joomla\CMS\MVC\Model\setState().

◆ publish()

publish ( $eid = array(),
  $value = 1 
)

Enable/Disable an extension.

Paramètres
array$eidExtension ids to un/publish
int$valuePublish value
Renvoie
boolean True on success
Exceptions

Références $context, $i, $id, $name, $result, $style, $value, Text\_(), Factory\getApplication(), Joomla\Database\getDatabase(), Factory\getUser(), et PluginHelper\importPlugin().

◆ refresh()

refresh (   $eid)

Refreshes the cached manifest information for an extension.

Paramètres
int|int[]$eid extension identifier (key in #__extensions)
Renvoie
boolean result of refresh
Depuis
1.6

Références $id, $result, et Installer\getInstance().

◆ remove()

remove (   $eid = array())

Remove (uninstall) an extension

Paramètres
array$eidAn array of identifiers
Renvoie
boolean True on success
Exceptions

Références $app, $id, $result, Text\_(), Factory\getApplication(), Joomla\Database\getDatabase(), Installer\getInstance(), Factory\getUser(), Joomla\CMS\MVC\Model\setState(), et Text\sprintf().


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