PHP Class WhiteboardController

Inheritance: extends Controller
Show file Open project: openeyes/openeyes

Protected Properties

Property Type Description
$headerTemplate
$whiteboard

Public Methods

Method Description
accessRules ( ) : array Define access rules for the controller.
actionConfirm ( $id ) Confirms the checks.
actionReload ( $id ) Reload the data for the whiteboard.
actionSaveComment ( $id )
actionView ( $id ) View the whiteboard.
beforeAction ( CAction $action ) : boolean Set up the CSS.
getWhiteboard ( ) : null | OphTrOperationbooking_Whiteboard
init ( )
setWhiteboard ( OphTrOperationbooking_Whiteboard $whiteboard )

Method Details

accessRules() public method

Define access rules for the controller.
public accessRules ( ) : array
return array

actionConfirm() public method

Confirms the checks.
public actionConfirm ( $id )
$id

actionReload() public method

If the data is wrong we can reload it and update the database.
public actionReload ( $id )
$id

actionSaveComment() public method

public actionSaveComment ( $id )
$id

actionView() public method

View the whiteboard data, if there is no data for this event we will collate and persist it in the model.
public actionView ( $id )
$id

beforeAction() public method

We need to set up the CSS here, after the parent is called, because the parent class removes the previously registered scripts.
public beforeAction ( CAction $action ) : boolean
$action CAction
return boolean

getWhiteboard() public method

public getWhiteboard ( ) : null | OphTrOperationbooking_Whiteboard
return null | OphTrOperationbooking_Whiteboard

init() public method

public init ( )

setWhiteboard() public method

public setWhiteboard ( OphTrOperationbooking_Whiteboard $whiteboard )
$whiteboard OphTrOperationbooking_Whiteboard

Property Details

$headerTemplate protected property

protected $headerTemplate

$whiteboard protected property

protected $whiteboard