Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe ContactControllerContact
+ Graphe d'héritage de ContactControllerContact:

Fonctions membres publiques

 getModel ($name='', $prefix='', $config=array('ignore_request'=> true))
 
 submit ()
 

Fonctions membres protégées

 allowAdd ($data=array())
 
 allowEdit ($data=array(), $key='id')
 

Fonctions membres privées

 _sendEmail ($data, $contact, $emailCopyToSender)
 

Description détaillée

Controller for a single contact

Depuis
1.6

Controller for single contact view

Depuis
1.5.19

Documentation des fonctions membres

◆ _sendEmail()

_sendEmail (   $data,
  $contact,
  $emailCopyToSender 
)
private

Method to get a model object, loading it if required.

Paramètres
array$dataThe data to send in the email.
stdClass$contactThe user information to send the email to
boolean$emailCopyToSenderTrue to send a copy of the email to the user.
Renvoie
boolean True on success sending the email, false on failure.
Depuis
1.6.4

Références $app, $data, $fields, $name, $output, $prefix, $sitename, $subject, FieldsHelper\getFields(), et FieldsHelper\render().

◆ allowAdd()

allowAdd (   $data = array())
protected

Method override to check if you can add a new record.

Paramètres
array$dataAn array of input data.
Renvoie
boolean
Depuis
1.6

Références $data, null, et option.

◆ allowEdit()

allowEdit (   $data = array(),
  $key = 'id' 
)
protected

Method override to check if you can edit an existing record.

Paramètres
array$dataAn array of input data.
string$keyThe name of the key for the primary key.
Renvoie
boolean
Depuis
1.6

Références $canEditOwn, $data, $item, $key, $user, et option.

◆ getModel()

getModel (   $name = '',
  $prefix = '',
  $config = array('ignore_request' => true) 
)

Method to get a model object, loading it if required.

Paramètres
string$nameThe model name. Optional.
string$prefixThe class prefix. Optional.
array$configConfiguration array for model. Optional.
Renvoie
JModelLegacy The model.
Depuis
1.6.4

Références $name, et $prefix.

◆ submit()

submit ( )

Method to submit the contact form and send an email.

Renvoie
boolean True on success sending the email. False on failure.
Depuis
1.5.19

Références $active, $app, $data, $dispatcher, $form, $id, $results, JEventDispatcher\getInstance(), null, JError\raiseError(), et JError\raiseWarning().


La documentation de cette classe a été générée à partir du fichier suivant :