[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/administrator/components/com_users/models/ -> user.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 692 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

UsersModelUser:: (13 methods):
  getTable()
  getItem()
  getForm()
  loadFormData()
  preprocessForm()
  save()
  delete()
  block()
  activate()
  batch()
  batchUser()
  getGroups()
  getAssignedGroups()


Class: UsersModelUser  - X-Ref

User model.

getTable($type = 'User', $prefix = 'JTable', $config = array()   X-Ref
Returns a reference to the a Table object, always creating it.

param: string  $type    The table type to instantiate
param: string  $prefix  A prefix for the table class name. Optional.
param: array   $config  Configuration array for model. Optional.
return: JTable  A database object

getItem($pk = null)   X-Ref
Method to get a single record.

param: integer  $pk  The id of the primary key.
return: mixed    Object on success, false on failure.

getForm($data = array()   X-Ref
Method to get the record form.

param: array    $data      An optional array of data for the form to interogate.
param: boolean  $loadData  True if the form is to load its own data (default case), false if not.
return: mixed  A JForm object on success, false on failure

loadFormData()   X-Ref
Method to get the data that should be injected in the form.

return: mixed  The data for the form.

preprocessForm(JForm $form, $data, $group = 'user')   X-Ref
Override JModelAdmin::preprocessForm to ensure the correct plugin group is loaded.

param: JForm   $form   A JForm object.
param: mixed   $data   The data expected for the form.
param: string  $group  The name of the plugin group to import (defaults to "content").
return: void

save($data)   X-Ref
Method to save the form data.

param: array  $data  The form data.
return: boolean  True on success.

delete(&$pks)   X-Ref
Method to delete rows.

param: array  &$pks  An array of item ids.
return: boolean  Returns true on success, false on failure.

block(&$pks, $value = 1)   X-Ref
Method to block user records.

param: array    &$pks   The ids of the items to publish.
param: integer  $value  The value of the published state
return: boolean  True on success.

activate(&$pks)   X-Ref
Method to activate user records.

param: array  &$pks  The ids of the items to activate.
return: boolean  True on success.

batch($commands, $pks, $contexts)   X-Ref
Method to perform batch operations on an item or a set of items.

param: array  $commands  An array of commands to perform.
param: array  $pks       An array of item ids.
param: array  $contexts  An array of item contexts.
return: boolean  Returns true on success, false on failure.

batchUser($group_id, $user_ids, $action)   X-Ref
Perform batch operations

param: integer  $group_id  The group ID which assignments are being edited
param: array    $user_ids  An array of user IDs on which to operate
param: string   $action    The action to perform
return: boolean  True on success, false on failure

getGroups()   X-Ref
Gets the available groups.

return: array  An array of groups

getAssignedGroups($userId = null)   X-Ref
Gets the groups this object is assigned to

param: integer  $userId  The user ID to retrieve the groups for
return: array  An array of assigned groups



Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1