[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/api/components/com_contact/src/Controller/ -> ContactController.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: 255 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ContactController:: (3 methods):
  preprocessSaveData()
  submitForm()
  _sendEmail()


Class: ContactController  - X-Ref

The contact controller

preprocessSaveData(array $data)   X-Ref
Method to allow extended classes to manipulate the data to be saved for an extension.

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

submitForm($id = null)   X-Ref
Submit contact form

param: integer  $id Leave empty if you want to retrieve data from the request
return: static  A \JControllerLegacy object to support chaining.

_sendEmail($data, $contact, $emailCopyToSender)   X-Ref
Method to get a model object, loading it if required.

param: array      $data               The data to send in the email.
param: \stdClass  $contact            The user information to send the email to
param: boolean    $emailCopyToSender  True to send a copy of the email to the user.
return: boolean  True on success sending the email, false on failure.



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