PHP 클래스 OphTrOperationbooking_Operation_Session

The followings are the available columns in table:
상속: extends BaseActiveRecordVersioned
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$DEFAULT_UNAVAILABLE_REASON
$TOO_MANY_PROCEDURES_REASON
$helper OphTrOperationbooking_BookingHelper

공개 메소드들

메소드 설명
attributeLabels ( ) : array
getActiveBookingsForWard ( $ward_id = null )
getAvailableMinutes ( )
getAvailableProcedureCount ( ) : integer Return the remaining number of procedures allowed in this session.
getBookedMinutes ( )
getBookedProcedureCount ( ) : integer Get the total number of procedures booked into this session across all bookings.
getDuration ( )
getFirmName ( )
getHelper ( ) : OphTrOperationbooking_BookingHelper Wrapper for getting the helper class.
getMinuteStatus ( )
getNextSessionForFirmId ( $firm_id ) : OphTrOperationbooking_Operation_Session | null Get the next session for the given firm id.
getStatus ( )
getTheatreName ( )
getTimeSlot ( )
getUnavailableReasonList ( ) : OphTrOperationbooking_Operation_Session_UnavailableReason[] Retrieves all valid OphTrOperationbooking_Operation_Session_UnavailableReason that can be used for this instance (i.e. includes the current value even if its no longer active).
getWarnings ( ) : array Returns an array of warning messages when any limits on the session are exceeded.
getWeekdayText ( ) : false | string Get the weekday name from the date
model ( string $className = __CLASS__ ) : the Returns the static model of the specified AR class.
operationBookable ( $operation ) : boolean Test whether the given operation can be booked into this session.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string
unbookableReason ( $operation ) : string Return the reason an operation cannot be booked into this session.
validateRequiredIfAttrMatches ( $attribute, $params ) The $attribute is required if the $params['match_attr'] is equal to the $params['match_val'].

보호된 메소드들

메소드 설명
beforeDelete ( ) Dissociate the session from cancelled bookings and ERODs before deletion.
beforeSave ( )
beforeValidate ( ) : boolean Checks made before the validation runs
validateNewSessionConflict ( ) Validates new sessions to find conflicts with existing sessions

비공개 메소드들

메소드 설명
isAdmin ( ) : boolean

메소드 상세

attributeLabels() 공개 메소드

public attributeLabels ( ) : array
리턴 array customized attribute labels (name=>label)

beforeDelete() 보호된 메소드

Dissociate the session from cancelled bookings and ERODs before deletion.
protected beforeDelete ( )

beforeSave() 보호된 메소드

protected beforeSave ( )

beforeValidate() 보호된 메소드

Checks made before the validation runs
protected beforeValidate ( ) : boolean
리턴 boolean

getActiveBookingsForWard() 공개 메소드

public getActiveBookingsForWard ( $ward_id = null )

getAvailableMinutes() 공개 메소드

public getAvailableMinutes ( )

getAvailableProcedureCount() 공개 메소드

Return the remaining number of procedures allowed in this session.

getBookedMinutes() 공개 메소드

public getBookedMinutes ( )

getBookedProcedureCount() 공개 메소드

Get the total number of procedures booked into this session across all bookings.

getDuration() 공개 메소드

public getDuration ( )

getFirmName() 공개 메소드

public getFirmName ( )

getHelper() 공개 메소드

Wrapper for getting the helper class.
public getHelper ( ) : OphTrOperationbooking_BookingHelper
리턴 OphTrOperationbooking_BookingHelper

getMinuteStatus() 공개 메소드

public getMinuteStatus ( )

getNextSessionForFirmId() 공개 정적인 메소드

Get the next session for the given firm id.
public static getNextSessionForFirmId ( $firm_id ) : OphTrOperationbooking_Operation_Session | null
$firm_id
리턴 OphTrOperationbooking_Operation_Session | null

getStatus() 공개 메소드

public getStatus ( )

getTheatreName() 공개 메소드

public getTheatreName ( )

getTimeSlot() 공개 메소드

public getTimeSlot ( )

getUnavailableReasonList() 공개 메소드

Retrieves all valid OphTrOperationbooking_Operation_Session_UnavailableReason that can be used for this instance (i.e. includes the current value even if its no longer active).
public getUnavailableReasonList ( ) : OphTrOperationbooking_Operation_Session_UnavailableReason[]
리턴 OphTrOperationbooking_Operation_Session_UnavailableReason[]

getWarnings() 공개 메소드

Returns an array of warning messages when any limits on the session are exceeded.
public getWarnings ( ) : array
리턴 array

getWeekdayText() 공개 메소드

Get the weekday name from the date
public getWeekdayText ( ) : false | string
리턴 false | string

model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : the
$className string
리턴 the static model class

operationBookable() 공개 메소드

Test whether the given operation can be booked into this session.
public operationBookable ( $operation ) : boolean
$operation
리턴 boolean

relations() 공개 메소드

public relations ( ) : array
리턴 array relational rules.

rules() 공개 메소드

public rules ( ) : array
리턴 array validation rules for model attributes.

tableName() 공개 메소드

public tableName ( ) : string
리턴 string the associated database table name

unbookableReason() 공개 메소드

Return the reason an operation cannot be booked into this session.
public unbookableReason ( $operation ) : string
$operation
리턴 string

validateNewSessionConflict() 보호된 메소드

Validates new sessions to find conflicts with existing sessions

validateRequiredIfAttrMatches() 공개 메소드

The $attribute is required if the $params['match_attr'] is equal to the $params['match_val'].
public validateRequiredIfAttrMatches ( $attribute, $params )
$attribute - the element attribute that must be an earlier date
$params - 'later_date' is the attribute to compare it with

프로퍼티 상세

$DEFAULT_UNAVAILABLE_REASON 공개적으로 정적으로 프로퍼티

public static $DEFAULT_UNAVAILABLE_REASON

$TOO_MANY_PROCEDURES_REASON 공개적으로 정적으로 프로퍼티

public static $TOO_MANY_PROCEDURES_REASON

$helper 공개적으로 프로퍼티

public OphTrOperationbooking_BookingHelper $helper
리턴 OphTrOperationbooking_BookingHelper