|
| add () |
|
| edit ($key=null, $urlVar='a_id') |
|
| getModel ($name='Form', $prefix='Site', $config=array('ignore_request'=> true)) |
|
| save ($key=null, $urlVar='a_id') |
|
| reload ($key=null, $urlVar='a_id') |
|
| vote () |
|
| __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) |
|
|
| allowAdd ($data=array()) |
|
| allowEdit ($data=array(), $key='id') |
|
| getRedirectToItemAppend ($recordId=null, $urlVar='a_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) |
|
Content article class.
- Depuis
- 1.6.0
◆ add()
Method to add a new record.
- Renvoie
- mixed True if the record can be added, an error object if not.
- Depuis
- 1.6
Références Route\_().
◆ allowAdd()
allowAdd |
( |
|
$data = array() | ) |
|
|
protected |
Method override to check if you can add a new record.
- Paramètres
-
array | $data | An array of input data. |
- Renvoie
- boolean
- Depuis
- 1.6
Références $data, $user, ArrayHelper\getValue(), et null.
◆ 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; default is id. |
- Renvoie
- boolean
- Depuis
- 1.6
Références $data, $key, $recordId, et $user.
◆ edit()
edit |
( |
|
$key = null , |
|
|
|
$urlVar = 'a_id' |
|
) |
| |
Method to edit an existing record.
- Paramètres
-
string | $key | The name of the primary key of the URL variable. |
string | $urlVar | The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). |
- Renvoie
- boolean True if access level check and checkout passes, false otherwise.
- Depuis
- 1.6
Références $key, $result, et Route\_().
◆ getModel()
getModel |
( |
|
$name = 'Form' , |
|
|
|
$prefix = 'Site' , |
|
|
|
$config = array('ignore_request' => true) |
|
) |
| |
Method to get a model object, loading it if required.
- Paramètres
-
string | $name | The model name. Optional. |
string | $prefix | The class prefix. Optional. |
array | $config | Configuration array for model. Optional. |
- Renvoie
- object The model.
- Depuis
- 1.5
Références $config, $name, et $prefix.
◆ getRedirectToItemAppend()
getRedirectToItemAppend |
( |
|
$recordId = null , |
|
|
|
$urlVar = 'a_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
- 1.6
if ($layout) { $append .= '&layout=' . $layout; }
Références $append, $itemId, $recordId, $return, et $tmpl.
◆ getReturnPage()
◆ reload()
reload |
( |
|
$key = null , |
|
|
|
$urlVar = 'a_id' |
|
) |
| |
Method to reload a record.
- Paramètres
-
string | $key | The name of the primary key of the URL variable. |
string | $urlVar | The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). |
- Renvoie
- void
- Depuis
- 3.8.0
Références $key.
◆ save()
save |
( |
|
$key = null , |
|
|
|
$urlVar = 'a_id' |
|
) |
| |
Method to save a record.
- Paramètres
-
string | $key | The name of the primary key of the URL variable. |
string | $urlVar | The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). |
- Renvoie
- boolean True if successful, false otherwise.
- Depuis
- 1.6
Références $app, $articleId, $item, $key, $lang, $params, $result, Route\_(), elseif, et Multilanguage\isEnabled().
◆ vote()
◆ $urlVar
◆ $view_item
◆ $view_list
$view_list = 'categories' |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :