Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques | |
__construct ($config=array()) | |
getActiveFilters () | |
getItems () | |
getPagination () | |
getTotal () | |
getStart () | |
getFilterForm ($data=array(), $loadData=true) | |
getUserStateFromRequest ($key, $request, $default=null, $type= 'none', $resetPage=true) | |
Fonctions membres publiques inherited from JModelLegacy | |
getDbo () | |
getName () | |
getState ($property=null, $default=null) | |
getTable ($name= '', $prefix= 'Table', $options=array()) | |
loadHistory ($version_id, JTable &$table) | |
setDbo ($db) | |
setState ($property, $value=null) | |
Fonctions membres publiques inherited from JObject | |
__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 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') | |
Fonctions membres protégées inherited from JModelLegacy | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix= 'Table', $config=array()) | |
populateState () | |
cleanCache ($group=null, $client_id=0) |
Attributs protégés | |
$cache = array() | |
$context = null | |
$filter_fields = array() | |
$query = array() | |
$filterFormName = null | |
$htmlFormName = 'adminForm' | |
Attributs protégés inherited from JModelLegacy | |
$__state_set = null | |
$_db | |
$name | |
$option = null | |
$state | |
$event_clean_cache = null | |
Attributs protégés inherited from JObject | |
$_errors = array() |
Additional Inherited Members | |
Fonctions membres publiques statiques inherited from JModelLegacy | |
static | addIncludePath ($path= '', $prefix= '') |
static | addTablePath ($path) |
static | getInstance ($type, $prefix= '', $config=array()) |
Fonctions membres protégées statiques inherited from JModelLegacy | |
static | _createFileName ($type, $parts=array()) |
JModelList::__construct | ( | $config = array() | ) |
Constructor.
array | $config | An optional associative array of configuration settings. |
Réimplémentée à partir de JModelLegacy.
Définition à la ligne 77 du fichier list.php.
|
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.
Définition à la ligne 103 du fichier list.php.
JModelList::getActiveFilters | ( | ) |
Function to get the active filters
Définition à la ligne 128 du fichier list.php.
JModelList::getFilterForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Get the filter form
array | $data | data |
boolean | $loadData | load current data |
Définition à la ligne 333 du fichier list.php.
JModelList::getItems | ( | ) |
Method to get an array of data items.
Définition à la ligne 155 du fichier list.php.
|
protected |
Method to get a JDatabaseQuery object for retrieving the data set from a database.
JModelList::getPagination | ( | ) |
Method to get a JPagination object for the data set.
Définition à la ligne 208 du fichier list.php.
JModelList::getStart | ( | ) |
Method to get the starting number of items for the data set.
Définition à la ligne 298 du fichier list.php.
|
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. |
JModelList::getTotal | ( | ) |
Method to get the total number of items for the data set.
Définition à la ligne 260 du fichier list.php.
JModelList::getUserStateFromRequest | ( | $key, | |
$request, | |||
$default = null , |
|||
$type = 'none' , |
|||
$resetPage = true |
|||
) |
Gets the value of a user state variable and sets it in the session
This is the same as the method in JApplication 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. |
boolean | $resetPage | If true, the limitstart in request is set to zero |
Définition à la ligne 641 du fichier list.php.
Références JFactory\getApplication().
|
protected |
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 | $xpath | An optional xpath to search for the fields. |
Définition à la ligne 371 du fichier list.php.
Références JForm\addFieldPath(), JForm\addFormPath(), JForm\getInstance(), et JArrayHelper\getValue().
|
protected |
Method to get the data that should be injected in the form.
Définition à la ligne 430 du fichier list.php.
Références JFactory\getApplication().
|
protected |
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). |
Définition à la ligne 465 du fichier list.php.
Références JFactory\getApplication().
|
protected |
Method to allow derived classes to preprocess the form.
JForm | $form | A JForm object. |
mixed | $data | The data expected for the form. |
string | $group | The name of the plugin group to import (defaults to "content"). |
Exception | if there is an error in the form event. |
Définition à la ligne 601 du fichier list.php.
Références JEventDispatcher\getInstance().