[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_banners/src/Model/ -> BannerModel.php (summary)

(no description)

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

Defines 1 class

BannerModel:: (12 methods):
  batchClient()
  canDelete()
  generateTitle()
  canEditState()
  getForm()
  loadFormData()
  stick()
  getReorderConditions()
  prepareTable()
  preprocessForm()
  save()
  canCreateCategory()


Class: BannerModel  - X-Ref

Banner model.

batchClient($value, $pks, $contexts)   X-Ref
Batch client changes for a group of banners.

param: string  $value     The new value matching a client.
param: array   $pks       An array of row IDs.
param: array   $contexts  An array of item contexts.
return: boolean  True if successful, false otherwise and internal error is set.

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.

generateTitle($categoryId, $table)   X-Ref
A method to preprocess generating a new title in order to allow tables with alternative names
for alias and title to use the batch move and copy methods

param: integer  $categoryId  The target category id
param: Table    $table       The JTable within which move or copy is taking place
return: void

canEditState($record)   X-Ref
Method to test whether a record can have its state changed.

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

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

param: array    $data      Data for the form. [optional]
param: boolean  $loadData  True if the form is to load its own data (default case), false if not. [optional]
return: Form|boolean  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.

stick(&$pks, $value = 1)   X-Ref
Method to stick 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.

getReorderConditions($table)   X-Ref
A protected method to get a set of ordering conditions.

param: Table  $table  A record object.
return: array  An array of conditions to add to ordering queries.

prepareTable($table)   X-Ref
Prepare and sanitise the table prior to saving.

param: Table  $table  A Table object.
return: void

preprocessForm(Form $form, $data, $group = 'content')   X-Ref
Allows preprocessing of the Form object.

param: Form    $form   The form object
param: array   $data   The data to be merged into the form object
param: string  $group  The plugin group to be executed
return: void

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

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

canCreateCategory()   X-Ref
Is the user allowed to create an on the fly category?

return: boolean



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