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

actionNames()

actionNames(int  $project_id) : mixed

Return names (for the given project)

Parameters

int $project_id

the ID of the project

Returns

mixed —

actionPassengers()

actionPassengers(int  $bus_id, mixed  $invert = false) : mixed

Return passengers

Parameters

int $bus_id

the ID of the bus

mixed $invert

Returns

mixed —

actionSwitchPassengers()

actionSwitchPassengers(mixed  $for_return_bus = null) : mixed

Switch two passengers

Parameters

mixed $for_return_bus

Returns

mixed —

actionView()

actionView(int  $id) : mixed

Displays a particular model.

Parameters

int $id

the ID of the model to be displayed

Returns

mixed —

actionPdf()

actionPdf(int  $id, bool  $download_file = true) : mixed

Prints the bus PDF

Parameters

int $id

ID of the model to be displayed

bool $download_file

[True] Download as a PDF?

Returns

mixed —

actionExportSheets()

actionExportSheets(string  $projectCode, bool  $download_file = true) : mixed

Prints the bus sheets in PDF-format

Parameters

string $projectCode
bool $download_file

[True] Download as a PDF?

Returns

mixed —

actionExportList()

actionExportList(string  $projectCode, bool  $download_file = true) : mixed

Exports overview of (selected) buses

Parameters

string $projectCode
bool $download_file

[True] Download as a PDF?

Returns

mixed —

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 'index' page.

Parameters

int $id

the ID of the model to be deleted

Returns

mixed —

actionIndex()

actionIndex() : mixed

Lists all models.

Returns

mixed —

loadModel()

loadModel(int  $id) : \Accommodation

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

a 404 if no profile could be found for the identifier given

Returns

\Accommodation —

the project found by the identifier given

performAjaxValidation()

performAjaxValidation(\CModel  $model) : mixed

Performs the AJAX validation.

Parameters

\CModel $model

the model to be validated

Returns

mixed —