User group model.
- Depuis
- 1.6
◆ __construct()
__construct |
( |
|
$config = array() | ) |
|
Constructor
- Paramètres
-
array | $config | An optional associative array of configuration settings. |
Références $config.
◆ delete()
◆ generateGroupTitle()
generateGroupTitle |
( |
|
$parentId, |
|
|
|
$title |
|
) |
| |
|
protected |
Method to generate the title of group on Save as Copy action
- Paramètres
-
integer | $parentId | The id of the parent. |
string | $title | The title of group |
- Renvoie
- string Contains the modified title.
- Depuis
- 3.3.7
Références $title.
◆ getForm()
getForm |
( |
|
$data = array() , |
|
|
|
$loadData = true |
|
) |
| |
Method to get the record form.
- Paramètres
-
array | $data | An optional array of data for the form to interrogate. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
- Renvoie
- JForm A JForm object on success, false on failure
- Depuis
- 1.6
Références $form.
◆ getTable()
getTable |
( |
|
$type = 'Usergroup' , |
|
|
|
$prefix = 'JTable' , |
|
|
|
$config = array() |
|
) |
| |
Returns a reference to the a Table object, always creating it.
- Paramètres
-
string | $type | The table type to instantiate |
string | $prefix | A prefix for the table class name. Optional. |
array | $config | Configuration array for model. Optional. |
- Renvoie
- JTable A database object
- Depuis
- 1.6
Références $config, $prefix, $return, et $type.
◆ loadFormData()
Method to get the data that should be injected in the form.
- Renvoie
- mixed The data for the form.
- Depuis
- 1.6
Références $data.
◆ preprocessForm()
preprocessForm |
( |
JForm |
$form, |
|
|
|
$data, |
|
|
|
$group = '' |
|
) |
| |
|
protected |
Override preprocessForm to load the user plugin group instead of content.
- Paramètres
-
JForm | $form | A form object. |
mixed | $data | The data expected for the form. |
string | $group | The name of the plugin group to import (defaults to "content"). |
- Renvoie
- void
- Depuis
- 1.6
- Exceptions
-
Exception | if there is an error loading the form. |
Références $data, et $form.
◆ save()
Method to save the form data.
- Paramètres
-
- Renvoie
- boolean True on success.
- Depuis
- 1.6
Check the super admin permissions for group We get the parent group permissions and then check the group permissions manually We have to calculate the group permissions manually because we haven't saved the group yet
Check for super-admin changing self to be non-super-admin First, are we a super admin
If we would not otherwise have super admin permissions and the current group does not have super admin permissions, throw an exception
Références $data, et elseif.
La documentation de cette classe a été générée à partir du fichier suivant :