Class lispa\amos\events\controllers\base\EventController
Class EventController EventController implements the CRUD actions for Event model.
Public Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
baseListsAction() | Base operations for list views | lispa\amos\events\controllers\base\EventController |
findModel() | Finds the modelObj model based on its primary key value. | lispa\amos\core\controllers\CrudController |
getDefaultCurrentView() | lispa\amos\core\controllers\CrudController | |
getRules() | lispa\amos\core\controllers\BaseController | |
setCreateNewBtnParams() | Set a view param used in \lispa\amos\core\forms\CreateNewButtonWidget | lispa\amos\events\controllers\base\EventController |
setListViewsParams() | This method is useful to set all common params for all list views. | lispa\amos\events\controllers\base\EventController |
setUserLanguage() | lispa\amos\core\controllers\AmosController | |
updateFindModel() | Method called after findModel in action update. | lispa\amos\events\controllers\base\EventController |
Events
Event | Type | Description | Defined By |
---|---|---|---|
EVENT_AFTER_ACTION | yii\base\ActionEvent | An event raised right after executing a controller action. | yii\base\Controller |
EVENT_BEFORE_ACTION | yii\base\ActionEvent | An event raised right before executing a controller action. | yii\base\Controller |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
AFTER_FINDMODEL_EVENT | "afterFindModel" | lispa\amos\core\controllers\CrudController | |
BEFORE_FINDMODEL_EVENT | "beforeFindModel" | lispa\amos\core\controllers\CrudController |
Property Details
News page title (ie. Created by news, ...)
Method Details
Creates a new Event model.
If creation is successful, the browser will be redirected to the 'view' page.
public mixed actionCreate ( ) |
Creates a new Event model by ajax request.
If creation is successful, the browser will be redirected to the 'view' page.
public mixed actionCreateAjax ( $fid, $dataField ) | ||
$fid | ||
$dataField |
Deletes an existing Event model.
If deletion is successful, the browser will be redirected to the 'index' page.
public mixed actionDelete ( $id ) | ||
$id | integer |
Lists all Event models.
public string|yii\web\Response actionIndex ( $layout = NULL ) | ||
$layout | string|null | |
throws | yii\web\NotFoundHttpException |
---|
Updates an existing Event model.
public mixed actionUpdate ( $id, $backToEditStatus = false ) | ||
$id | integer | |
$backToEditStatus |
Displays a single Event model.
public mixed actionView ( $id ) | ||
$id | integer |
Base operations for list views
protected string baseListsAction ( $pageTitle, $setCurrentDashboard = true, $addActionColumns = '' ) | ||
$pageTitle | string | |
$setCurrentDashboard | boolean | |
$addActionColumns |
Return an array with the values used in boolean fields.
public array getBooleanFieldsValues ( ) |
Get latitude and longitude of a place.
public array getMapPosition ( $position ) | ||
$position | string |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|
Set a view param used in \lispa\amos\core\forms\CreateNewButtonWidget
protected void setCreateNewBtnParams ( ) |
This method is useful to set all common params for all list views.
protected void setListViewsParams ( $setCurrentDashboard = true ) | ||
$setCurrentDashboard | boolean |
Used for set page title and breadcrumbs.
public void setTitleAndBreadcrumbs ( $pageTitle ) | ||
$pageTitle | string | News page title (ie. Created by news, ...) |
Method called after findModel in action update.
protected void updateFindModel ( ) |