Languages Model Class
- Depuis
- 1.6
◆ __construct()
__construct |
( |
|
$config = array() | ) |
|
Constructor.
- Paramètres
-
array | $config | An optional associative array of configuration settings. |
- Voir également
- JController
- Depuis
- 1.6
Références $config.
◆ cleanCache()
cleanCache |
( |
|
$group = null , |
|
|
|
$clientId = 0 |
|
) |
| |
|
protected |
Custom clean cache method, 2 places for 2 clients.
- Paramètres
-
string | $group | Optional cache group name. |
integer | $clientId | Application client id. |
- Renvoie
- void
- Depuis
- 1.6
◆ delete()
Method to delete records.
- Paramètres
-
array | $pks | An array of item primary keys. |
- Renvoie
- boolean Returns true on success, false on failure.
- Depuis
- 1.6
Références $itemId.
◆ getListQuery()
Method to build an SQL query to load the list data.
- Renvoie
- string An SQL query
- Depuis
- 1.6
Références $db, $published, $query, et elseif.
◆ getStoreId()
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.
- Paramètres
-
string | $id | A prefix for the store id. |
- Renvoie
- string A store id.
- Depuis
- 1.6
Références $id.
◆ populateState()
populateState |
( |
|
$ordering = 'a.ordering' , |
|
|
|
$direction = 'asc' |
|
) |
| |
|
protected |
Method to auto-populate the model state.
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
- 1.6
Références $direction, $ordering, et $params.
◆ setPublished()
setPublished |
( |
|
$cid, |
|
|
|
$value = 0 |
|
) |
| |
Set the published language(s).
- Paramètres
-
array | $cid | An array of language IDs. |
integer | $value | The value of the published state. |
- Renvoie
- boolean True on success, false otherwise.
- Depuis
- 1.6
Références $value.
La documentation de cette classe a été générée à partir du fichier suivant :