PHP Class OphTrOperationbooking_Operation_Session

The followings are the available columns in table:
Inheritance: extends BaseActiveRecordVersioned
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Свойство Type Description
$DEFAULT_UNAVAILABLE_REASON
$TOO_MANY_PROCEDURES_REASON
$helper OphTrOperationbooking_BookingHelper

Méthodes publiques

Méthode Description
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'].

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
isAdmin ( ) : boolean

Method Details

attributeLabels() public méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

beforeDelete() protected méthode

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

beforeSave() protected méthode

protected beforeSave ( )

beforeValidate() protected méthode

Checks made before the validation runs
protected beforeValidate ( ) : boolean
Résultat boolean

getActiveBookingsForWard() public méthode

public getActiveBookingsForWard ( $ward_id = null )

getAvailableMinutes() public méthode

public getAvailableMinutes ( )

getAvailableProcedureCount() public méthode

Return the remaining number of procedures allowed in this session.
public getAvailableProcedureCount ( ) : integer
Résultat integer

getBookedMinutes() public méthode

public getBookedMinutes ( )

getBookedProcedureCount() public méthode

Get the total number of procedures booked into this session across all bookings.
public getBookedProcedureCount ( ) : integer
Résultat integer

getDuration() public méthode

public getDuration ( )

getFirmName() public méthode

public getFirmName ( )

getHelper() public méthode

Wrapper for getting the helper class.
public getHelper ( ) : OphTrOperationbooking_BookingHelper
Résultat OphTrOperationbooking_BookingHelper

getMinuteStatus() public méthode

public getMinuteStatus ( )

getNextSessionForFirmId() public static méthode

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

getStatus() public méthode

public getStatus ( )

getTheatreName() public méthode

public getTheatreName ( )

getTimeSlot() public méthode

public getTimeSlot ( )

getUnavailableReasonList() public méthode

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[]
Résultat OphTrOperationbooking_Operation_Session_UnavailableReason[]

getWarnings() public méthode

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

getWeekdayText() public méthode

Get the weekday name from the date
public getWeekdayText ( ) : false | string
Résultat false | string

model() public static méthode

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : the
$className string
Résultat the static model class

operationBookable() public méthode

Test whether the given operation can be booked into this session.
public operationBookable ( $operation ) : boolean
$operation
Résultat boolean

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name

unbookableReason() public méthode

Return the reason an operation cannot be booked into this session.
public unbookableReason ( $operation ) : string
$operation
Résultat string

validateNewSessionConflict() protected méthode

Validates new sessions to find conflicts with existing sessions

validateRequiredIfAttrMatches() public méthode

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

Property Details

$DEFAULT_UNAVAILABLE_REASON public_oe static_oe property

public static $DEFAULT_UNAVAILABLE_REASON

$TOO_MANY_PROCEDURES_REASON public_oe static_oe property

public static $TOO_MANY_PROCEDURES_REASON

$helper public_oe property

public OphTrOperationbooking_BookingHelper $helper
Résultat OphTrOperationbooking_BookingHelper