[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_content/src/Controller/ -> ArticleController.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: 180 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ArticleController:: (5 methods):
  __construct()
  postSaveHook()
  allowAdd()
  allowEdit()
  batch()


Class: ArticleController  - X-Ref

The article controller

__construct($config = array()   X-Ref
Constructor.

param: array                $config   An optional associative array of configuration settings.
param: MVCFactoryInterface  $factory  The factory.
param: CMSApplication       $app      The Application for the dispatcher
param: Input                $input    Input

postSaveHook(BaseDatabaseModel $model, $validData = array()   X-Ref
Function that allows child controller access to model data
after the data has been saved.

param: BaseDatabaseModel  $model      The data model object.
param: array              $validData  The validated data.
return: void

allowAdd($data = array()   X-Ref
Method override to check if you can add a new record.

param: array  $data  An array of input data.
return: boolean

allowEdit($data = array()   X-Ref
Method override to check if you can edit an existing record.

param: array   $data  An array of input data.
param: string  $key   The name of the key for the primary key.
return: boolean

batch($model = null)   X-Ref
Method to run batch operations.

param: object  $model  The model.
return: boolean   True if successful, false otherwise and internal error is set.



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