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é
|
Fonctions membres publiques | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
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) | |
getDbo () | |
getName () | |
getState ($property=null, $default=null) | |
getTable ($name='', $prefix='Table', $options=array()) | |
loadHistory ($versionId, \JTable &$table) | |
setDbo ($db) | |
setState ($property, $value=null) | |
Fonctions membres protégées | |
_getListQuery () | |
getListQuery () | |
getStoreId ($id='') | |
loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=false) | |
loadFormData () | |
populateState ($ordering=null, $direction=null) | |
preprocessForm (\JForm $form, $data, $group='content') | |
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()) | |
populateState () | |
Attributs protégés | |
$cache = array() | |
$context = null | |
$filter_fields = array() | |
$query = array() | |
$lastQueryStoreId = null | |
$filterFormName = null | |
$htmlFormName = 'adminForm' | |
$filterBlacklist = array() | |
$listBlacklist = array('select') | |
Attributs protégés hérités de BaseDatabaseModel | |
$__state_set = null | |
$_db | |
$name | |
$option = null | |
$state | |
$event_clean_cache = null | |
$factory | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de BaseDatabaseModel | |
static | addIncludePath ($path='', $prefix='') |
static | addTablePath ($path) |
static | getInstance ($type, $prefix='', $config=array()) |
Fonctions membres protégées statiques hérités de BaseDatabaseModel | |
static | _createFileName ($type, $parts=array()) |
Model class for handling lists of items.
__construct | ( | $config = array() , |
|
MVCFactoryInterface | $factory = null |
||
) |
|
protected |
Method to cache the last query constructed.
This method ensures that the query is constructed only once for a given state of the model.
Références $query.
getActiveFilters | ( | ) |
Function to get the active filters
Références $filter.
getFilterForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
getItems | ( | ) |
Method to get an array of data items.
|
protected |
Method to get a object for retrieving the data set from a database.
getPagination | ( | ) |
Method to get a object for the data set.
Références $limit.
getStart | ( | ) |
|
protected |
Method to get a store id based on the 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 | An identifier string to generate the store id. |
Références $id.
getTotal | ( | ) |
Method to get the total number of items for the data set.
Gets the value of a user state variable and sets it in the session
This is the same as the method in except that this also can optionally force you back to the first page when a filter has changed
string | $key | The key of the user state variable. |
string | $request | The name of the variable passed in a request. |
string | $default | The default value for the variable if not found. Optional. |
string | $type | Filter for the variable, for valid values see JFilterInput::clean().Optional.@paramboolean$resetPageIftrue,thelimitstartinrequestissettozero@returnmixedTherequestuserstate.@since1.6 |
Références $app, $default, $filters, $input, $key, $name, $type, et null.
Method to get a form object.
string | $name | The name of the form. |
string | $source | The form source. Can be XML string if file flag is set to false. |
array | $options | Optional array of options for the form creation. |
boolean | $clear | Optional argument to force load a new form. |
string | boolean | $xpath | An optional xpath to search for the fields. |
Références $data, $form, $hash, $name, $options, et ArrayHelper\getValue().
|
protected |
Method to get the data that should be injected in the form.
Références $data.
Method to auto-populate the model state.
This method should only be called once per instantiation and is designed to be called on the first call to the getState() method unless the model configuration flag to ignore the request is set.
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, $field, $filters, $limit, $list, $name, $ordering, et $value.
|
protected |
Method to allow derived classes to preprocess the form.
\JForm | $form | A object. |
mixed | $data | The data expected for the form. |
string | $group | The name of the plugin group to import (defaults to "content"). |
Références $data, $dispatcher, $form, $results, et JEventDispatcher\getInstance().
|
protected |
Parse and transform the search string into a string fit for regex-ing arbitrary strings against
string | $search | The search string |
string | $regexDelimiter | The regex delimiter to use for the quoting |
Références $key.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |