Liste de tous les membres
Fonctions membres publiques |
| __construct ($config=array()) |
| batch ($commands, $pks, $contexts) |
| checkin ($pks=array()) |
| checkout ($pk=null) |
| delete (&$pks) |
| getItem ($pk=null) |
| publish (&$pks, $value=1) |
| reorder ($pks, $delta=0) |
| save ($data) |
| saveorder ($pks=null, $order=null) |
| getForm ($data=array(), $loadData=true) |
| validate ($form, $data, $group=null) |
| getDbo () |
| getName () |
| getState ($property=null, $default=null) |
| getTable ($name= '', $prefix= 'Table', $options=array()) |
| setDbo (&$db) |
| setState ($property, $value=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) |
| toString () |
Fonctions membres protégées |
| batchAccess ($value, $pks, $contexts) |
| batchCopy ($value, $pks, $contexts) |
| batchLanguage ($value, $pks, $contexts) |
| batchMove ($value, $pks, $contexts) |
| canDelete ($record) |
| canEditState ($record) |
| generateNewTitle ($category_id, $alias, $title) |
| getReorderConditions ($table) |
| populateState () |
| prepareTable (&$table) |
| loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=false) |
| loadFormData () |
| preprocessForm (JForm $form, $data, $group= 'content') |
| _getList ($query, $limitstart=0, $limit=0) |
| _getListCount ($query) |
| _createTable ($name, $prefix= 'Table', $config=array()) |
| cleanCache ($group=null, $client_id=0) |
Documentation des constructeurs et destructeur
JModelAdmin::__construct |
( |
|
$config = array() | ) |
|
Constructor.
- Paramètres:
-
array | $config | An optional associative array of configuration settings. |
- Voir également:
- JController
- Depuis:
- 11.1
Réimplémentée à partir de JModel.
Références $config, et elseif.
Documentation des fonctions membres
JModelAdmin::batch |
( |
|
$commands, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
JModelAdmin::batchAccess |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
Batch access level changes for a group of rows.
- Paramètres:
-
integer | $value | The new value matching an Asset Group ID. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
- Renvoie:
- boolean True if successful, false otherwise and internal error is set.
- Depuis:
- 11.1
Références $user, JText\_(), et JFactory\getUser().
JModelAdmin::batchCopy |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
Batch copy items to a new category or current.
- Paramètres:
-
integer | $value | The new category. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
- Renvoie:
- mixed An array of new IDs on success, boolean false on failure.
- Depuis:
- 11.1
Réimplémentée dans CategoriesModelCategory, MenusModelItem, BannersModelBanner, ModulesModelModule, ContactModelContact, ContentModelArticle, et NewsfeedsModelNewsfeed.
Références $data, $extension, $i, $user, JText\_(), JFactory\getApplication(), JTable\getInstance(), JFactory\getUser(), et JText\sprintf().
JModelAdmin::batchLanguage |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
Batch language changes for a group of rows.
- Paramètres:
-
string | $value | The new value matching a language. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
- Renvoie:
- boolean True if successful, false otherwise and internal error is set.
- Depuis:
- 11.3
Références $user, JText\_(), et JFactory\getUser().
JModelAdmin::batchMove |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
JModelAdmin::canDelete |
( |
|
$record | ) |
|
|
protected |
Method to test whether a record can be deleted.
- Paramètres:
-
object | $record | A record object. |
- Renvoie:
- boolean True if allowed to delete the record. Defaults to the permission for the component.
- Depuis:
- 11.1
Réimplémentée dans ContactModelContact, BannersModelBanner, ContentModelArticle, NewsfeedsModelNewsfeed, MenusModelItem, CategoriesModelCategory, RedirectModelLink, UsersModelLevel, WeblinksModelWeblink, et BannersModelClient.
Références $user, et JFactory\getUser().
JModelAdmin::canEditState |
( |
|
$record | ) |
|
|
protected |
JModelAdmin::checkin |
( |
|
$pks = array() | ) |
|
Method override to check-in a record or an array of record
- Paramètres:
-
mixed | $pks | The ID of the primary key or an array of IDs |
- Renvoie:
- mixed Boolean false if there is an error, otherwise the count of records checked in.
- Depuis:
- 11.1
Réimplémentée à partir de JModelForm.
Références $count.
JModelAdmin::checkout |
( |
|
$pk = null | ) |
|
Method override to check-out a record.
- Paramètres:
-
integer | $pk | The ID of the primary key. |
- Renvoie:
- boolean True if successful, false if an error occurs.
- Depuis:
- 11.1
Réimplémentée à partir de JModelForm.
JModelAdmin::delete |
( |
& |
$pks | ) |
|
Method to delete one or more records.
- Paramètres:
-
array | &$pks | An array of record primary keys. |
- Renvoie:
- boolean True if successful, false if an error occurs.
- Depuis:
- 11.1
Réimplémentée dans ModulesModelModule, UsersModelUser, UsersModelGroup, TemplatesModelStyle, et MessagesModelMessage.
Références $dispatcher, $i, $name, JText\_(), JDispatcher\getInstance(), JPluginHelper\importPlugin(), et JError\raiseWarning().
JModelAdmin::generateNewTitle |
( |
|
$category_id, |
|
|
|
$alias, |
|
|
|
$title |
|
) |
| |
|
protected |
JModelAdmin::getItem |
( |
|
$pk = null | ) |
|
Method to get a single record.
- Paramètres:
-
integer | $pk | The id of the primary key. |
- Renvoie:
- mixed Object on success, false on failure.
- Depuis:
- 11.1
Réimplémentée dans MenusModelItem, ModulesModelModule, ContactModelContact, NewsfeedsModelNewsfeed, ContentModelArticle, TemplatesModelStyle, WeblinksModelWeblink, CategoriesModelCategory, UsersModelLevel, PluginsModelPlugin, MessagesModelMessage, ContactModelContact, AdminModelProfile, LanguagesModelOverride, ContentModelArticle, NewsfeedsModelNewsfeed, LanguagesModelLanguage, ContentModelForm, WeblinksModelWeblink, UsersModelNote, et UsersModelUser.
Références $item, $return, JRegistry\loadString(), et JArrayHelper\toObject().
JModelAdmin::getReorderConditions |
( |
|
$table | ) |
|
|
protected |
JModelAdmin::populateState |
( |
| ) |
|
|
protected |
Stock method to auto-populate the model state.
- Renvoie:
- void
- Depuis:
- 11.1
Réimplémentée à partir de JModel.
Réimplémentée dans MenusModelItem, LanguagesModelOverride, PluginsModelPlugin, UsersModelNote, CategoriesModelCategory, ModulesModelModule, TemplatesModelStyle, ContactModelContact, WeblinksModelForm, LanguagesModelLanguage, ContentModelArticle, NewsfeedsModelNewsfeed, WeblinksModelWeblink, MessagesModelMessage, et ContentModelForm.
Références $key, JRequest\getInt(), et JComponentHelper\getParams().
JModelAdmin::prepareTable |
( |
& |
$table | ) |
|
|
protected |
JModelAdmin::publish |
( |
& |
$pks, |
|
|
|
$value = 1 |
|
) |
| |
Method to change the published state of one or more records.
- Paramètres:
-
array | &$pks | A list of the primary keys to change. |
integer | $value | The value of the published state. |
- Renvoie:
- boolean True on success.
- Depuis:
- 11.1
Réimplémentée dans MenusModelItem, CategoriesModelCategory, NewsfeedsModelNewsfeed, et MessagesModelMessage.
Références $dispatcher, $i, $name, $user, JText\_(), JDispatcher\getInstance(), JFactory\getUser(), JPluginHelper\importPlugin(), et JError\raiseWarning().
JModelAdmin::reorder |
( |
|
$pks, |
|
|
|
$delta = 0 |
|
) |
| |
Method to adjust the ordering of a row.
Returns NULL if the user did not have edit privileges for any of the selected primary keys.
- Paramètres:
-
integer | $pks | The ID of the primary key to move. |
integer | $delta | Increment, usually +1 or -1 |
- Renvoie:
- mixed False on failure or error, true on success, null if the $pk is empty (no items selected).
- Depuis:
- 11.1
Références $i, JText\_(), null, et JError\raiseWarning().
JModelAdmin::save |
( |
|
$data | ) |
|
Method to save the form data.
- Paramètres:
-
- Renvoie:
- boolean True on success, False on error.
- Depuis:
- 11.1
Réimplémentée dans MenusModelItem, ModulesModelModule, ContentModelArticle, TemplatesModelStyle, CategoriesModelCategory, PluginsModelPlugin, MessagesModelMessage, UsersModelLevel, UsersModelUser, LanguagesModelLanguage, AdminModelProfile, et UsersModelGroup.
Références $data, $dispatcher, $key, JDispatcher\getInstance(), et JPluginHelper\importPlugin().
JModelAdmin::saveorder |
( |
|
$pks = null , |
|
|
|
$order = null |
|
) |
| |
Documentation des données membres
JModelAdmin::$event_after_delete = null |
|
protected |
JModelAdmin::$event_after_save = null |
|
protected |
JModelAdmin::$event_before_delete = null |
|
protected |
JModelAdmin::$event_before_save = null |
|
protected |
JModelAdmin::$event_change_state = null |
|
protected |
JModelAdmin::$text_prefix = null |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :