|
| add () |
|
| cancel ($key=null) |
|
| batch ($model=null) |
|
| save ($key=null, $urlVar=null) |
|
| orderPosition () |
|
| __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) |
|
|
| allowSave ($data, $key='id') |
|
| allowEdit ($data=array(), $key='id') |
|
| postSaveHook (BaseDatabaseModel $model, $validData=array()) |
|
| getRedirectToItemAppend ($recordId=null, $urlVar='id') |
|
| getRedirectToListAppend () |
|
| 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) |
|
Module controller class.
- Depuis
- 1.6
◆ add()
◆ allowEdit()
allowEdit |
( |
|
$data = array() , |
|
|
|
$key = 'id' |
|
) |
| |
|
protected |
Method override to check if you can edit an existing record.
- Paramètres
-
array | $data | An array of input data. |
string | $key | The name of the key for the primary key. |
- Renvoie
- boolean
- Depuis
- 3.2
Références $data, $key, et $recordId.
◆ allowSave()
allowSave |
( |
|
$data, |
|
|
|
$key = 'id' |
|
) |
| |
|
protected |
Override parent allowSave method.
- Paramètres
-
array | $data | An array of input data. |
string | $key | The name of the key for the primary key. |
- Renvoie
- boolean
- Depuis
- 1.6
Références $data, et $key.
◆ batch()
◆ cancel()
Override parent cancel method to reset the add module state.
- Paramètres
-
string | $key | The name of the primary key of the URL variable. |
- Renvoie
- boolean True if access level checks pass, false otherwise.
- Depuis
- 1.6
Références $result, $return, Uri\base(), Uri\isInternal(), et null.
◆ getRedirectToItemAppend()
getRedirectToItemAppend |
( |
|
$recordId = null , |
|
|
|
$urlVar = 'id' |
|
) |
| |
|
protected |
Gets the URL arguments to append to an item redirect.
- Paramètres
-
integer | $recordId | The primary key id for the item. |
string | $urlVar | The name of the URL variable for the id. |
- Renvoie
- string The arguments to append to the redirect URL.
- Depuis
- 4.0.0
Références $append, et $recordId.
◆ getRedirectToListAppend()
getRedirectToListAppend |
( |
| ) |
|
|
protected |
Gets the URL arguments to append to a list redirect.
- Renvoie
- string The arguments to append to the redirect URL.
- Depuis
- 4.0.0
Références $append.
◆ orderPosition()
Method to get the other modules in the same position
- Renvoie
- string The data for the Ajax request.
- Depuis
- 3.6.3
Références $app, $clientId, $db, $html, $i, $moduleId, $n, $position, $query, $title, Text\_(), Session\checkToken(), ENT_QUOTES, Factory\getDbo(), ParameterType\INTEGER, et Text\sprintf().
◆ postSaveHook()
Function that allows child controller access to model data after the data has been saved.
- Paramètres
-
BaseDatabaseModel | $model | The data model object. |
array | $validData | The validated data. |
- Renvoie
- void
- Depuis
- 1.6
Références $model, $task, et null.
◆ save()
La documentation de cette classe a été générée à partir du fichier suivant :