◆ __construct()
__construct |
( |
|
$config = array() | ) |
|
Constructor.
- Paramètres
-
array | $config | An optional associative array of configuration settings. |
- Voir également
- JModelLegacy
- Depuis
- 3.7.0
Références $config.
◆ _getList()
_getList |
( |
|
$query, |
|
|
|
$limitstart = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
|
protected |
Gets an array of objects from the results of database query.
- Paramètres
-
string | $query | The query. |
integer | $limitstart | Offset. |
integer | $limit | The number of records. |
- Renvoie
- array An array of results.
- Depuis
- 3.7.0
- Exceptions
-
Références $field, $limit, et $query.
◆ getFilterForm()
getFilterForm |
( |
|
$data = array() , |
|
|
|
$loadData = true |
|
) |
| |
Get the filter form
- Paramètres
-
array | $data | data |
boolean | $loadData | load current data |
- Renvoie
- JForm|false the JForm object or false
- Depuis
- 3.7.0
Références $data, $form, et null.
◆ getGroups()
Get the groups for the batch method
- Renvoie
- array An array of groups
- Depuis
- 3.7.0
Références $db, $query, et $user.
◆ getListQuery()
Method to get a JDatabaseQuery object for retrieving the data set from a database.
- Renvoie
- JDatabaseQuery A JDatabaseQuery object to retrieve the data set.
- Depuis
- 3.7.0
Références $app, $context, $db, $groups, $key, $language, $parts, $query, $state, $user, elseif, et FieldsHelper\extract().
◆ getStoreId()
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.
- Paramètres
-
string | $id | An identifier string to generate the store id. |
- Renvoie
- string A store id.
- Depuis
- 3.7.0
Références $id.
◆ populateState()
populateState |
( |
|
$ordering = null , |
|
|
|
$direction = null |
|
) |
| |
|
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.
- Paramètres
-
string | $ordering | An optional ordering field. |
string | $direction | An optional direction (asc|desc). |
- Renvoie
- void
- Depuis
- 3.7.0
Références $context, $parts, et FieldsHelper\extract().
La documentation de cette classe a été générée à partir du fichier suivant :