Property | Type | Description | |
---|---|---|---|
$DEFAULT_UNAVAILABLE_REASON | |||
$TOO_MANY_PROCEDURES_REASON | |||
$helper | OphTrOperationbooking_BookingHelper |
Method | 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']. |
Method | 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 |
Method | Description | |
---|---|---|
isAdmin ( ) : boolean |
public attributeLabels ( ) : array | ||
return | array | customized attribute labels (name=>label) |
protected beforeDelete ( ) |
protected beforeValidate ( ) : boolean | ||
return | boolean |
public getAvailableProcedureCount ( ) : integer | ||
return | integer |
public getBookedProcedureCount ( ) : integer | ||
return | integer |
public getHelper ( ) : OphTrOperationbooking_BookingHelper | ||
return | OphTrOperationbooking_BookingHelper |
public static getNextSessionForFirmId ( $firm_id ) : OphTrOperationbooking_Operation_Session | null | ||
$firm_id | ||
return | OphTrOperationbooking_Operation_Session | null |
public getWarnings ( ) : array | ||
return | array |
public getWeekdayText ( ) : false | string | ||
return | false | string |
public operationBookable ( $operation ) : boolean | ||
$operation | ||
return | boolean |
public search ( ) : CActiveDataProvider | ||
return | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
public unbookableReason ( $operation ) : string | ||
$operation | ||
return | string |
protected validateNewSessionConflict ( ) |
public validateRequiredIfAttrMatches ( $attribute, $params ) | ||
$attribute | - the element attribute that must be an earlier date | |
$params | - 'later_date' is the attribute to compare it with |