![]() |
Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getModel ($name='form', $prefix='', $config=array('ignore_request'=> true)) | |
submit () | |
cancel ($key=null) | |
![]() | |
__construct ( $config=array(), MVCFactoryInterface $factory=null, ?CMSApplication $app=null, ?Input $input=null, FormFactoryInterface $formFactory=null) | |
add () | |
batch ($model) | |
cancel ($key=null) | |
edit ($key=null, $urlVar=null) | |
getModel ($name='', $prefix='', $config=array('ignore_request'=> true)) | |
save ($key=null, $urlVar=null) | |
editAssociations () | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null, ?CMSApplication $app=null, ?Input $input=null) | |
addViewPath ($path) | |
execute ($task) | |
getModel ($name='', $prefix='', $config=array()) | |
getName () | |
getTask () | |
getTasks () | |
getView ($name='', $type='', $prefix='', $config=array()) | |
redirect () | |
registerDefaultTask ($method) | |
registerTask ($task, $method) | |
unregisterTask ($task) | |
setMessage ($text, $type='message') | |
checkToken ($method='post', $redirect=true) | |
setRedirect ($url, $msg=null, $type=null) | |
![]() | |
setDispatcher (DispatcherInterface $dispatcher) | |
![]() | |
setFormFactory (FormFactoryInterface $factory) | |
Fonctions membres protégées | |
allowAdd ($data=array()) | |
allowEdit ($data=array(), $key='id') | |
getRedirectToItemAppend ($recordId=0, $urlVar='id') | |
getReturnPage () | |
![]() | |
allowAdd ($data=[]) | |
allowEdit ($data=[], $key='id') | |
allowSave ($data, $key='id') | |
getRedirectToItemAppend ($recordId=null, $urlVar='id') | |
getRedirectToListAppend () | |
postSaveHook (BaseDatabaseModel $model, $validData=array()) | |
![]() | |
addPath ($type, $path) | |
checkEditId ($context, $id) | |
createModel ($name, $prefix='', $config=array()) | |
createView ($name, $prefix='', $type='', $config=array()) | |
holdEditId ($context, $id) | |
releaseEditId ($context, $id) | |
setPath ($type, $path) | |
Attributs protégés | |
$view_item = 'form' | |
$view_list = 'categories' | |
![]() | |
$context | |
$option | |
$view_item | |
$view_list | |
$text_prefix | |
![]() | |
$basePath | |
$default_view | |
$doTask | |
$message | |
$messageType | |
$methods | |
$name | |
$model_prefix | |
$paths | |
$redirect | |
$task | |
$taskMap | |
$input | |
$factory | |
$app | |
Fonctions membres privées | |
_sendEmail ($data, $contact, $emailCopyToSender) | |
Membres hérités additionnels | |
![]() | |
static | addModelPath ($path, $prefix='') |
static | createFileName ($type, $parts=array()) |
static | getInstance ($prefix, $config=array()) |
![]() | |
static | $instance |
static | $views |
Controller for single contact view
|
private |
Method to get a model object, loading it if required.
array | $data | The data to send in the email. |
\stdClass | $contact | The user information to send the email to |
boolean | $emailCopyToSender | True to send a copy of the email to the user. |
Références $app, $data, $fields, $output, Text\_(), Log\add(), MailTemplate\addRecipient(), Uri\base(), PunycodeHelper\emailToPunycode(), FieldsHelper\getFields(), User\getInstance(), FieldsHelper\render(), et Log\WARNING.
|
protected |
Method override to check if you can add a new record.
array | $data | An array of input data. |
Références $data, $user, et ArrayHelper\getValue().
|
protected |
cancel | ( | $key = null | ) |
getModel | ( | $name = 'form' , |
|
$prefix = '' , |
|||
$config = array('ignore_request' => true) |
|||
) |
|
protected |
|
protected |
Get the return URL.
If a "return" variable has been passed in the request
Références $return, Uri\base(), Uri\isInternal(), et null.
submit | ( | ) |
Method to submit the contact form and send an email.
Références $active, $app, $data, $form, $id, $model, $result, $results, Text\_(), Route\_(), Joomla\Application\checkToken(), Factory\getSession(), PluginHelper\importPlugin(), et null.
|
protected |
|
protected |