[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_users/src/Model/ -> LevelModel.php (summary)

(no description)

Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 297 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LevelModel:: (8 methods):
  canDelete()
  getTable()
  getItem()
  getForm()
  loadFormData()
  preprocessForm()
  save()
  validate()


Class: LevelModel  - X-Ref

User view level model.

canDelete($record)   X-Ref
Method to test whether a record can be deleted.

param: object  $record  A record object.
return: boolean  True if allowed to delete the record. Defaults to the permission set in the component.

getTable($type = 'ViewLevel', $prefix = 'Joomla\\CMS\\Table\\', $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: Table  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 interrogate.
param: boolean  $loadData  True if the form is to load its own data (default case), false if not.
return: Form|bool  A Form 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(Form $form, $data, $group = '')   X-Ref
Method to preprocess the form

param: Form    $form   A form 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.

validate($form, $data, $group = null)   X-Ref
Method to validate the form data.

param: Form    $form   The form to validate against.
param: array   $data   The data to validate.
param: string  $group  The name of the field group to validate.
return: array|boolean  Array of filtered data if valid, false otherwise.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer