![]() |
Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($config=array()) | |
getFilterForm ($data=array(), $loadData=true) | |
getTransitions () | |
getItems () | |
![]() | |
__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) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
![]() | |
__construct ($config=array()) | |
getName () | |
![]() | |
__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) | |
![]() | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
![]() | |
setDispatcher (DispatcherInterface $dispatcher) | |
![]() | |
setCurrentUser (User $currentUser) | |
![]() | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
![]() | |
setDatabase (DatabaseInterface $db) | |
![]() | |
setFormFactory (FormFactoryInterface $factory) | |
Fonctions membres protégées | |
populateState ($ordering='a.id', $direction='desc') | |
getStoreId ($id='') | |
getListQuery () | |
![]() | |
getEmptyStateQuery () | |
_getListQuery () | |
getListQuery () | |
getStoreId ($id='') | |
loadFormData () | |
populateState ($ordering=null, $direction=null) | |
refineSearchStringToRegex ($search, $regexDelimiter='/') | |
![]() | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
Membres hérités additionnels | |
![]() | |
static | addIncludePath ($path='', $prefix='') |
![]() | |
$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') | |
![]() | |
$option = null | |
$event_clean_cache = null | |
![]() | |
$name | |
![]() | |
$_errors = array() | |
![]() | |
static | $paths |
Methods supporting a list of article records.
__construct | ( | $config = array() | ) |
Constructor.
array | $config | An optional associative array of configuration settings. |
Références $config, Symfony\Contracts\Service\__construct(), et Associations\isEnabled().
getFilterForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Get the filter form
array | $data | data |
boolean | $loadData | load current data |
Références $data, $form, $ordering, $params, et ComponentHelper\getParams().
getItems | ( | ) |
Method to get a list of articles. Overridden to add item type alias.
Implémente ListModelInterface.
|
protected |
Build an SQL query to load the list data.
Get the master query for retrieving a list of articles subject to the model state.
Références $db, $groups, $key, $language, $ordering, $params, $published, $query, $state, $type, $user, ContentComponent\CONDITION_PUBLISHED, ContentComponent\CONDITION_UNPUBLISHED, elseif, Joomla\Database\getDatabase(), Table\getInstance(), ComponentHelper\getParams(), Joomla\CMS\MVC\Model\getState(), Factory\getUser(), ParameterType\INTEGER, PluginHelper\isEnabled(), Associations\isEnabled(), et ArrayHelper\toInteger().
|
protected |
Method to get a store id based on model configuration state.
This is necessary because the model is used by the component and different modules that might need different sets of data or different ordering requirements.
string | $id | A prefix for the store id. |
Références $id, et Joomla\CMS\MVC\Model\getState().
getTransitions | ( | ) |
Method to get all transitions at once for all articles
Références $db, $items, $key, $query, $transitions, $user, Text\_(), ArrayHelper\getColumn(), Joomla\Database\getDatabase(), Factory\getLanguage(), Factory\getUser(), JPATH_ADMINISTRATOR, et ArrayHelper\toInteger().
|
protected |
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.
string | $ordering | An optional ordering field. |
string | $direction | An optional direction (asc|desc). |
Références $app, $direction, $language, $layout, $ordering, $published, Factory\getApplication(), Joomla\CMS\MVC\Model\populateState(), et Joomla\CMS\MVC\Model\setState().