Properties

$layout

$layout

Methods

filters()

filters() : array

Returns

array —

action filters

accessRules()

accessRules() : array

Specifies the access control rules.

This method is used by the 'accessControl' filter.

Returns

array —

access control rules

actions()

actions() : mixed

Declares class-based actions.

Returns

mixed —

actionIndex()

actionIndex() : mixed

Manages all models.

Returns

mixed —

actionCreate()

actionCreate() : mixed

Creates a new model.

If creation is successful, the browser will be redirected to the 'view' page.

Returns

mixed —

actionUpdateSite()

actionUpdateSite(mixed  $id) : mixed

Updates a particular model.

If update is successful, the browser will be redirected to the 'view' page.

Parameters

mixed $id

Returns

mixed —

actionUpdate()

actionUpdate(int  $id) : mixed

Updates a particular model.

If update is successful, the browser will be redirected to the 'view' page.

Parameters

int $id

the ID of the model to be updated

Returns

mixed —

actionUpdateLandingPage()

actionUpdateLandingPage(mixed  $id) : mixed

Parameters

mixed $id

Returns

mixed —

actionUpdateLoginPage()

actionUpdateLoginPage(mixed  $id) : mixed

Parameters

mixed $id

Returns

mixed —

actionInlineUpdate()

actionInlineUpdate() : mixed

Returns

mixed —

loadModel()

loadModel(int  $id) : \Brand

Returns the data model based on the primary key given in the GET variable.

If the data model is not found, an HTTP exception will be raised.

Parameters

int $id

the ID of the model to be loaded

Throws

\CHttpException

when no brand could be found with the id given

Returns

\Brand —

the brand found

actionDelete()

actionDelete(mixed  $id) : mixed

Parameters

mixed $id

Returns

mixed —

actionView()

actionView(int  $id) : mixed

Displays a particular model.

Parameters

int $id

the ID of the model to be displayed

Returns

mixed —

actionDashboard()

actionDashboard(mixed  $id) : mixed

Parameters

mixed $id

Returns

mixed —

_manageInput()

_manageInput(mixed  $model) : mixed

Parameters

mixed $model

Returns

mixed —

setFaviconAndImage()

setFaviconAndImage(\Brand  $model) : mixed

Updates the favicon, image and image_type attribute when a POST request is performed to create or update.

Parameters

\Brand $model

the brand updated or created

Returns

mixed —