|
| getView ($name='', $type='', $prefix='', $config=[]) |
|
| getModel ($name='', $prefix='', $config=[]) |
|
| __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) |
|
|
static | addModelPath ($path, $prefix='') |
|
static | createFileName ($type, $parts=array()) |
|
static | getInstance ($prefix, $config=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) |
|
static | $instance |
|
static | $views |
|
◆ getModel()
getModel |
( |
|
$name = '' , |
|
|
|
$prefix = '' , |
|
|
|
$config = [] |
|
) |
| |
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
- |boolean Model object on success; otherwise false on failure.
- Depuis
- 3.0
Références $config, et $name.
◆ getView()
getView |
( |
|
$name = '' , |
|
|
|
$type = '' , |
|
|
|
$prefix = '' , |
|
|
|
$config = [] |
|
) |
| |
Method to get a reference to the current view and load it if necessary.
- Paramètres
-
string | $name | The view name. Optional, defaults to the controller name. |
string | $type | The view type. Optional. |
string | $prefix | The class prefix. Optional. |
array | $config | Configuration array for view. Optional. |
- Renvoie
- Reference to the view or an error.
- Depuis
- 3.0
- Exceptions
-
Références $config, $name, et $type.
◆ $default_view
La documentation de cette classe a été générée à partir du fichier suivant :