PHP Класс OphTrOperationbooking_Operation_Session

The followings are the available columns in table:
Наследование: extends BaseActiveRecordVersioned
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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.
public getAvailableProcedureCount ( ) : integer
Результат integer

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

public getBookedMinutes ( )

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

Get the total number of procedures booked into this session across all bookings.
public getBookedProcedureCount ( ) : integer
Результат integer

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