Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
getTable ($type= 'User', $prefix= 'JTable', $config=array()) | |
getItem ($pk=null) | |
getForm ($data=array(), $loadData=true) | |
save ($data) | |
delete (&$pks) | |
block (&$pks, $value=1) | |
activate (&$pks) | |
batch ($commands, $pks, $contexts) | |
batchUser ($group_id, $user_ids, $action) | |
getGroups () | |
getAssignedGroups ($userId=null) | |
Fonctions membres publiques inherited from JModelAdmin | |
__construct ($config=array()) | |
checkin ($pks=array()) | |
checkout ($pk=null) | |
publish (&$pks, $value=1) | |
reorder ($pks, $delta=0) | |
saveorder ($pks=null, $order=null) | |
Fonctions membres publiques inherited from JModelForm | |
validate ($form, $data, $group=null) | |
Fonctions membres publiques inherited from JModel | |
getDbo () | |
getName () | |
getState ($property=null, $default=null) | |
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) | |
toString () |
Fonctions membres protégées | |
loadFormData () | |
preprocessForm (JForm $form, $data, $group= 'user') | |
Fonctions membres protégées inherited from JModelAdmin | |
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) | |
Fonctions membres protégées inherited from JModelForm | |
loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=false) | |
Fonctions membres protégées inherited from JModel | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix= 'Table', $config=array()) | |
cleanCache ($group=null, $client_id=0) |
Additional Inherited Members | |
Attributs protégés inherited from JModelAdmin | |
$text_prefix = null | |
$event_after_delete = null | |
$event_after_save = null | |
$event_before_delete = null | |
$event_before_save = null | |
$event_change_state = null | |
Attributs protégés inherited from JModelForm | |
$_forms = array() | |
Attributs protégés inherited from JModel | |
$__state_set = null | |
$_db | |
$name | |
$option = null | |
$state | |
$event_clean_cache = null | |
Attributs protégés inherited from JObject | |
$_errors = array() |
UsersModelUser::activate | ( | & | $pks | ) |
Method to activate user records.
array | &$pks | The ids of the items to activate. |
Références $dispatcher, $i, $user, JText\_(), JAccess\check(), elseif, JDispatcher\getInstance(), JFactory\getUser(), JPluginHelper\importPlugin(), null, et JError\raiseWarning().
UsersModelUser::batch | ( | $commands, | |
$pks, | |||
$contexts | |||
) |
Method to perform batch operations on an item or a set of items.
array | $commands | An array of commands to perform. |
array | $pks | An array of item ids. |
array | $contexts | An array of item contexts. |
Réimplémentée à partir de JModelAdmin.
Références $cmd, JText\_(), JArrayHelper\getValue(), et JArrayHelper\toInteger().
UsersModelUser::batchUser | ( | $group_id, | |
$user_ids, | |||
$action | |||
) |
Perform batch operations
integer | $group_id | The group ID which assignments are being edited |
array | $user_ids | An array of user IDs on which to operate |
string | $action | The action to perform |
Références $db, $id, $query, $users, JText\_(), JAccess\checkGroup(), JFactory\getUser(), et JArrayHelper\toInteger().
UsersModelUser::block | ( | & | $pks, |
$value = 1 |
|||
) |
Method to block user records.
array | &$pks | The ids of the items to publish. |
integer | $value | The value of the published state |
Références $app, $dispatcher, $i, $options, $user, JText\_(), JAccess\check(), elseif, JFactory\getApplication(), JDispatcher\getInstance(), JFactory\getUser(), JPluginHelper\importPlugin(), null, et JError\raiseWarning().
UsersModelUser::delete | ( | & | $pks | ) |
Method to delete rows.
array | &$pks | An array of item ids. |
Réimplémentée à partir de JModelAdmin.
Références $dispatcher, $i, $user, JText\_(), JAccess\check(), JDispatcher\getInstance(), JFactory\getUser(), JPluginHelper\importPlugin(), et JError\raiseWarning().
UsersModelUser::getAssignedGroups | ( | $userId = null | ) |
Gets the groups this object is assigned to
integer | $userId | The user ID to retrieve the groups for |
Références $config, $userId, JComponentHelper\getParams(), et JUserHelper\getUserGroups().
UsersModelUser::getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the record form.
array | $data | An optional array of data for the form to interogate. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
Réimplémentée à partir de JModelForm.
Réimplémentée dans AdminModelProfile.
Références $app, et JFactory\getApplication().
UsersModelUser::getGroups | ( | ) |
Gets the available groups.
Références $user, JModel\getInstance(), JFactory\getUser(), et null.
UsersModelUser::getItem | ( | $pk = null | ) |
Method to get a single record.
integer | $pk | The id of the primary key. |
Réimplémentée à partir de JModelAdmin.
Réimplémentée dans AdminModelProfile.
Références $dispatcher, JDispatcher\getInstance(), et JPluginHelper\importPlugin().
UsersModelUser::getTable | ( | $type = 'User' , |
|
$prefix = 'JTable' , |
|||
$config = array() |
|||
) |
Returns a reference to the a Table object, always creating it.
string | $type | The table type to instantiate |
string | $prefix | A prefix for the table class name. Optional. |
array | $config | Configuration array for model. Optional. |
Réimplémentée à partir de JModel.
Références $config, $type, et JTable\getInstance().
|
protected |
Method to get the data that should be injected in the form.
Réimplémentée à partir de JModelForm.
Réimplémentée dans AdminModelProfile.
Références $data, $dispatcher, JFactory\getApplication(), JDispatcher\getInstance(), et JPluginHelper\importPlugin().
|
protected |
Override JModelAdmin::preprocessForm to ensure the correct plugin group is loaded.
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. |
Réimplémentée à partir de JModelForm.
Références $data.
UsersModelUser::save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Réimplémentée à partir de JModelAdmin.
Réimplémentée dans AdminModelProfile.
Références $data, $user, JText\_(), JAccess\checkGroup(), JUser\getInstance(), et JFactory\getUser().