[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
(no description)
Copyright: | (C) 2008 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE.txt |
File Size: | 429 lines (14 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
NewsfeedModel:: (11 methods):
canDelete()
canEditState()
getForm()
loadFormData()
save()
getItem()
prepareTable()
publish()
getReorderConditions()
preprocessForm()
canCreateCategory()
Class: NewsfeedModel - X-Ref
Newsfeed 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. |
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. 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. |
save($data) X-Ref |
Method to save the form data. param: array $data The form data. return: boolean True on success. |
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. |
prepareTable($table) X-Ref |
Prepare and sanitise the table prior to saving. param: \Joomla\CMS\Table\Table $table The table object return: void |
publish(&$pks, $value = 1) X-Ref |
Method to change the published state of one or more records. param: array &$pks A list of the primary keys to change. 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: object $table A record object. return: array An array of conditions to add to ordering queries. |
preprocessForm(Form $form, $data, $group = 'content') X-Ref |
A protected method to get a set of ordering conditions. param: Form $form The form object. param: array $data The data to be injected into the form param: string $group The plugin group to process return: array An array of conditions to add to ordering queries. |
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 |