\GameController

Summary

Methods
Properties
Constants
filters()
accessRules()
actionCreate()
actionUpdate()
actionInlineUpdate()
actionDelete()
actionIndex()
loadModel()
$layout
No constants found
performAjaxValidation()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$layout

$layout : string

Type

string — the default layout for the views. Defaults to '//layouts/column2', meaning using two-column layout. See 'protected/views/layouts/column2.php'.

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

actionCreate()

actionCreate() : mixed

Creates a new model.

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

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 —

actionInlineUpdate()

actionInlineUpdate() : mixed

Updates a field in the model.

Returns

mixed —

actionDelete()

actionDelete(int  $id) : mixed

Deletes a particular model.

If deletion is successful, the browser will be redirected to the 'admin' page.

Parameters

int $id

the ID of the model to be deleted

Returns

mixed —

actionIndex()

actionIndex() : mixed

Manages all models.

Returns

mixed —

loadModel()

loadModel(mixed  $id) : mixed

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

mixed $id

Returns

mixed —

performAjaxValidation()

performAjaxValidation(mixed  $model) : mixed

Performs the AJAX validation.

Parameters

mixed $model

Returns

mixed —