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
파일 보기 프로젝트 열기: openeyes/openeyes

공개 프로퍼티들

프로퍼티 타입 설명
$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