PHP Класс 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 .
Автор: OpenEyes ([email protected])
Наследование: extends BaseModuleController
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$layout
$renderPatientPanel

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Описание методов

accessRules() публичный Метод

public 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).
public actionCheckRequired ( )

actionFilterFirms() публичный Метод

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

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.
public actionFilterWards ( )

actionGetSessionTimestamps() публичный Метод

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

actionIndex() публичный Метод

Shows the standard theatre diary list.
public actionIndex ( )

actionPrintDiary() публичный Метод

Print the diary.
public actionPrintDiary ( )

actionPrintList() публичный Метод

Print the booking list.
public actionPrintList ( )

actionSaveSession() публичный Метод

Ajax action to update a session.
public actionSaveSession ( )

actionSearch() публичный Метод

Ajax action to retrieve diary data.
public actionSearch ( )

actionSetDiaryFilter() публичный Метод

Ajax method to store theatre search options to the session.

getBookingList() публичный Метод

Get bookings for the given selection criteria.
public getBookingList ( $data ) : OphTrOperationbooking_Operation_Booking[]
$data
Результат OphTrOperationbooking_Operation_Booking[] $bookings

getDiaryTheatres() публичный Метод

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
Результат OphTrOperationbooking_Operation_Theatre[] $theatres

getFilteredFirms() защищенный Метод

Helper method to fetch firms by subspecialty ID.
protected getFilteredFirms ( integer $subspecialty_id ) : array
$subspecialty_id integer
Результат array

getFilteredTheatres() защищенный Метод

Helper method to fetch theatres by site ID.
protected getFilteredTheatres ( integer $site_id ) : array
$site_id integer
Результат array

getFilteredWards() защищенный Метод

Helper method to fetch theatres by site ID.
protected getFilteredWards ( integer $site_id ) : array
$site_id integer
Результат array

getNextSessionDate() публичный Метод

Get the date of the next session for the given firm id, or return today's date.
public getNextSessionDate ( $firm_id ) : string
$firm_id
Результат string $date Y-m-d

printActions() публичный Метод

См. также: parent::printActions()
public printActions ( ) : array
Результат array (non-phpdoc)

Описание свойств

$layout публичное свойство

public $layout

$renderPatientPanel публичное свойство

public $renderPatientPanel