|
| initialize () |
| Method called before each action Can be override in derived class.
|
|
| home () |
|
| _getBaseRoute () |
|
| showDetail ($ids) |
| Shows associated members with foreign keys.
|
|
| showModelClick ($modelAndId) |
|
| __construct () |
| Constructor initialize $view variable.
|
|
| _setStyle ($elm) |
|
| index () |
| Default page : list all objects Uses modelViewer.isModal, modelViewer.getModelDataTable Uses CRUDFiles.getViewIndex template (default : @framework/crud/index.html) Triggers the events onDisplayElements,beforeLoadView.
|
|
| updateMember ($member, $callback=false) |
|
| refresh_ () |
| Refreshes the area corresponding to the DataTable.
|
|
| edit ($modal="no", $ids="") |
| Edits an instance.
|
|
| newModel ($modal="no") |
| Adds a new instance and edits it.
|
|
| editMember ($member) |
|
| display ($modal="no", $ids="") |
| Displays an instance.
|
|
| delete ($ids) |
| Deletes an instance.
|
|
| refreshTable ($id=null) |
|
| updateModel () |
| Updates an instance from the data posted in a form.
|
|
| detailClick ($url, $responseElement='#divTable', $attributes=["attr"=> "data-ajax"]) |
|
| finalize () |
| Method called after each action Can be override in derived class.
|
|
| loadView (string $viewName, $pData=null, bool $asString=false) |
| Loads the view $viewName possibly passing the variables $pdata.
|
|
| loadDefaultView ($pData=null, bool $asString=false) |
| Loads the default view (controllerName/actionName) possibly passing the variables $pdata.
|
|
| getDefaultViewName () |
| Returns the default view name for this controller/action i.e ControllerName/actionName.html for the action actionName in ControllerName If there is an activeTheme @activeTheme/ControllerName/actionName.html
|
|
| isValid ($action) |
| Returns True if access to the controller is allowed To be override in sub classes.
|
|
| onInvalidControl () |
| Called if isValid () returns false To be override in sub classes.
|
|
| forward (string $controller, string $action='index', $params=[], bool $initialize=false, bool $finalize=false) |
| Loads the controller $controller and calls its $action method by passing the parameters $params.
|
|
| redirectToRoute (string $routeName, $parameters=[], bool $initialize=false, bool $finalize=false) |
| Redirect to a route by its name.
|
|
| getView () |
| Returns the associated view instance.
|
|
| _getFiles () |
|
| _showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null, $closeAction=null, $toast=false) |
|
| loadView (string $viewName, $pData=null, bool $asString=false) |
|
| _getAdminData () |
|
| _getFiles () |
|
| _insertJquerySemantic () |
|
| _getAdminData () |
|
| _getFiles () |
|
|
| onRenderView (array &$data) |
| To override.
|
|
| hasNavigation () |
| To override Return true for adding a navigation dropdown menu.
|
|
| getRouteNamePrefix () |
|
| nav (?array $models=null, string $btIcon='chevron right', string $btTitle='Navigate to...', bool $asString=true) |
|
| getIndexModels () |
|
| getIndexModelsDetails () |
|
| getIndexDefaultIcon (string $resource) |
|
| getIndexDefaultTitle (string $resource) |
|
| getIndexDefaultDesc (string $modelClass) |
|
| getIndexDefaultUrl (string $resource) |
|
| getIndexDefaultMeta (string $modelClass) |
|
| addIndexBehavior () |
|
| getIndexType () |
|
| getModelName () |
|
| refreshAsJson ($instances) |
| Return a JSON representation of $instances for the JsonDataTable component.
|
|
| _getModelViewer () |
|
| showSimpleMessage_ (CRUDMessage $message, $staticName=null, $toast=false) |
|
| showConfMessage_ (CRUDMessage $message, $url, $responseElement, $data, $attributes=NULL) |
|
| _showConfMessage ($content, $type, $title, $icon, $url, $responseElement, $data, $attributes=NULL) |
|
| showSimpleMessage_ (CRUDMessage $message, $staticName=null) |
|
| showConfMessage_ (CRUDMessage $message, $url, $responseElement, $data, $attributes=null) |
|
| getInstances (&$totalCount, $page=1, $id=null) |
|
| search ($model, $search) |
|
| updateMemberDataElement ($member, $instance) |
|
| _edit ($instance, $modal="no") |
|
| _showModel ($id=null) |
|
| _deleteMultiple ($data, $action, $target, $condition, $params=[]) |
| Helper to delete multiple objects.
|
|
| refreshInstance ($instance, $isNew) |
|
| getAdminData () |
| To override for defining a new adminData.
|
|
| getModelViewer () |
| To override for defining a new ModelViewer.
|
|
| _getModelViewer () |
|
| getFiles () |
| To override for changing view files.
|
|
| getEvents () |
| To override for changing events.
|
|
| getInstanceToString ($instance) |
|