![]() |
Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($type='Usergroup', $prefix='Joomla\\CMS\\Table\\', $config=array()) | |
getForm ($data=array(), $loadData=true) | |
save ($data) | |
delete (&$pks) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
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=array(), $order=null) | |
generateTitle ($categoryId, $table) | |
initBatch () | |
editAssociations ($data) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
checkin ($pk=null) | |
checkout ($pk=null) | |
validate ($form, $data, $group=null) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
![]() | |
__construct ($config=array()) | |
getName () | |
![]() | |
__construct ($properties=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) | |
![]() | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
![]() | |
setDispatcher (DispatcherInterface $dispatcher) | |
![]() | |
setCurrentUser (User $currentUser) | |
![]() | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
![]() | |
setDatabase (DatabaseInterface $db) | |
![]() | |
setFormFactory (FormFactoryInterface $factory) | |
Fonctions membres protégées | |
loadFormData () | |
preprocessForm (Form $form, $data, $group='') | |
generateGroupTitle ($parentId, $title) | |
![]() | |
batchAccess ($value, $pks, $contexts) | |
batchCopy ($value, $pks, $contexts) | |
cleanupPostBatchCopy (TableInterface $table, $newId, $oldId) | |
batchLanguage ($value, $pks, $contexts) | |
batchMove ($value, $pks, $contexts) | |
batchTag ($value, $pks, $contexts) | |
canDelete ($record) | |
canEditState ($record) | |
generateNewTitle ($categoryId, $alias, $title) | |
getReorderConditions ($table) | |
populateState () | |
prepareTable ($table) | |
checkCategoryId ($categoryId) | |
redirectToAssociations ($data) | |
![]() | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
Membres hérités additionnels | |
![]() | |
static | addIncludePath ($path='', $prefix='') |
![]() | |
$typeAlias | |
![]() | |
$text_prefix = null | |
$event_after_delete = null | |
$event_after_save = null | |
$event_before_delete = null | |
$event_before_save = null | |
$event_before_change_state = null | |
$event_change_state = null | |
$event_before_batch = null | |
$batch_copymove = 'category_id' | |
$batch_commands | |
$associationsContext = null | |
$batchSet = null | |
$user = null | |
$table = null | |
$tableClassName = null | |
$contentType = null | |
$type = null | |
![]() | |
$events_map = null | |
![]() | |
$option = null | |
$event_clean_cache = null | |
![]() | |
$name | |
![]() | |
$_errors = array() | |
![]() | |
static | $paths |
User group model.
__construct | ( | $config = array() , |
|
MVCFactoryInterface | $factory = null |
||
) |
Override parent constructor.
array | $config | An optional associative array of configuration settings. |
MVCFactoryInterface | $factory | The factory. |
Références $config, et Symfony\Contracts\Service\__construct().
delete | ( | & | $pks | ) |
Method to delete rows.
array | &$pks | An array of item ids. |
Références $groups, $i, $user, Text\_(), Access\checkGroup(), elseif, Factory\getApplication(), Access\getGroupsByUser(), Factory\getUser(), et PluginHelper\importPlugin().
|
protected |
Method to generate the title of group on Save as Copy action
integer | $parentId | The id of the parent. |
string | $title | The title of group |
Références $title, et StringHelper\increment().
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the record form.
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. |
Implémente FormModelInterface.
Références $form, et Joomla\CMS\MVC\Model\loadForm().
getTable | ( | $type = 'Usergroup' , |
|
$prefix = 'Joomla\\CMS\\Table\\' , |
|||
$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éférences $config, $prefix, $return, $type, et Table\getInstance().
|
protected |
Method to get the data that should be injected in the form.
Références $data, Factory\getApplication(), et Joomla\CMS\MVC\Model\preprocessData().
|
protected |
Override preprocessForm to load the user plugin group instead of content.
Form | $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"). |
Références $data, $form, class, Joomla\CMS\MVC\Model\preprocessForm(), et ArrayHelper\toObject().
save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
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, Text\_(), Access\checkGroup(), elseif, Factory\getApplication(), Access\getAssetRules(), Access\getGroupsByUser(), Factory\getUser(), et PluginHelper\importPlugin().