[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_mails/src/Controller/ -> TemplateController.php (summary)

(no description)

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

Defines 1 class

TemplateController:: (5 methods):
  __construct()
  allowAdd()
  edit()
  getRedirectToItemAppend()
  save()


Class: TemplateController  - X-Ref

The template 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

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

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

edit($key = null, $urlVar = null)   X-Ref
Method to edit an existing record.

param: string  $key     The name of the primary key of the URL variable.
param: string  $urlVar  The name of the URL variable if different from the primary key
return: boolean  True if access level check and checkout passes, false otherwise.

getRedirectToItemAppend($recordId = null, $urlVar = 'id')   X-Ref
Gets the URL arguments to append to an item redirect.

param: string[]  $recordId  The primary key id for the item in the first element and the language of the
param: string    $urlVar    The name of the URL variable for the id.
return: string  The arguments to append to the redirect URL.

save($key = null, $urlVar = null)   X-Ref
Method to save a record.

param: string  $key     The name of the primary key of the URL variable.
param: string  $urlVar  The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
return: boolean  True if successful, false otherwise.



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