PHP Class TheatreDiaryController

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2013 This file is part of OpenEyes. OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Author: OpenEyes ([email protected])
Inheritance: extends BaseModuleController
Mostra file Open project: openeyes/openeyes

Public Properties

Property Type Description
$layout
$renderPatientPanel

Public Methods

Method Description
accessRules ( )
actionCheckRequired ( ) Ajax method to check whether various attributes are required on a given session (used to prevent them being turned off when they are needed on the session).
actionFilterFirms ( ) Generates a firm list based on a subspecialty id provided via POST echoes form option tags for display.
actionFilterTheatres ( ) Generates a theatre list based on a site id provided via POST echoes form option tags for display.
actionFilterWards ( ) Generates a theatre list based on a site id provided via POST echoes form option tags for display.
actionGetSessionTimestamps ( ) Ajax action to retrieve the modification data for a given session.
actionIndex ( ) Shows the standard theatre diary list.
actionPrintDiary ( ) Print the diary.
actionPrintList ( ) Print the booking list.
actionSaveSession ( ) Ajax action to update a session.
actionSearch ( ) Ajax action to retrieve diary data.
actionSetDiaryFilter ( ) Ajax method to store theatre search options to the session.
getBookingList ( $data ) : OphTrOperationbooking_Operation_Booking[] Get bookings for the given selection criteria.
getDiaryTheatres ( $data ) : OphTrOperationbooking_Operation_Theatre[] Uses $data criteria to retrieve theatre objects that have operations booked The theatre objects will preload relevant related objects for use in displaying data in the diary layout.
getNextSessionDate ( $firm_id ) : string Get the date of the next session for the given firm id, or return today's date.
printActions ( ) : array

Protected Methods

Method Description
getFilteredFirms ( integer $subspecialty_id ) : array Helper method to fetch firms by subspecialty ID.
getFilteredTheatres ( integer $site_id ) : array Helper method to fetch theatres by site ID.
getFilteredWards ( integer $site_id ) : array Helper method to fetch theatres by site ID.

Method Details

accessRules() public method

public accessRules ( )

actionCheckRequired() public method

Ajax method to check whether various attributes are required on a given session (used to prevent them being turned off when they are needed on the session).
public actionCheckRequired ( )

actionFilterFirms() public method

Generates a firm list based on a subspecialty id provided via POST echoes form option tags for display.
public actionFilterFirms ( )

actionFilterTheatres() public method

Generates a theatre list based on a site id provided via POST echoes form option tags for display.

actionFilterWards() public method

Generates a theatre list based on a site id provided via POST echoes form option tags for display.
public actionFilterWards ( )

actionGetSessionTimestamps() public method

Ajax action to retrieve the modification data for a given session.

actionIndex() public method

Shows the standard theatre diary list.
public actionIndex ( )

actionPrintDiary() public method

Print the diary.
public actionPrintDiary ( )

actionPrintList() public method

Print the booking list.
public actionPrintList ( )

actionSaveSession() public method

Ajax action to update a session.
public actionSaveSession ( )

actionSearch() public method

Ajax action to retrieve diary data.
public actionSearch ( )

actionSetDiaryFilter() public method

Ajax method to store theatre search options to the session.

getBookingList() public method

Get bookings for the given selection criteria.
public getBookingList ( $data ) : OphTrOperationbooking_Operation_Booking[]
$data
return OphTrOperationbooking_Operation_Booking[] $bookings

getDiaryTheatres() public method

Uses $data criteria to retrieve theatre objects that have operations booked The theatre objects will preload relevant related objects for use in displaying data in the diary layout.
public getDiaryTheatres ( $data ) : OphTrOperationbooking_Operation_Theatre[]
$data
return OphTrOperationbooking_Operation_Theatre[] $theatres

getFilteredFirms() protected method

Helper method to fetch firms by subspecialty ID.
protected getFilteredFirms ( integer $subspecialty_id ) : array
$subspecialty_id integer
return array

getFilteredTheatres() protected method

Helper method to fetch theatres by site ID.
protected getFilteredTheatres ( integer $site_id ) : array
$site_id integer
return array

getFilteredWards() protected method

Helper method to fetch theatres by site ID.
protected getFilteredWards ( integer $site_id ) : array
$site_id integer
return array

getNextSessionDate() public method

Get the date of the next session for the given firm id, or return today's date.
public getNextSessionDate ( $firm_id ) : string
$firm_id
return string $date Y-m-d

printActions() public method

See also: parent::printActions()
public printActions ( ) : array
return array (non-phpdoc)

Property Details

$layout public_oe property

public $layout

$renderPatientPanel public_oe property

public $renderPatientPanel