Свойство | Type | Description | |
---|---|---|---|
$DEFAULT_UNAVAILABLE_REASON | |||
$TOO_MANY_PROCEDURES_REASON | |||
$helper | OphTrOperationbooking_BookingHelper |
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é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 |
Méthode | Description | |
---|---|---|
isAdmin ( ) : boolean |
public attributeLabels ( ) : array | ||
Résultat | array | customized attribute labels (name=>label) |
protected beforeDelete ( ) |
protected beforeValidate ( ) : boolean | ||
Résultat | boolean |
public getAvailableProcedureCount ( ) : integer | ||
Résultat | integer |
public getBookedProcedureCount ( ) : integer | ||
Résultat | integer |
public getHelper ( ) : OphTrOperationbooking_BookingHelper | ||
Résultat | OphTrOperationbooking_BookingHelper |
public static getNextSessionForFirmId ( $firm_id ) : OphTrOperationbooking_Operation_Session | null | ||
$firm_id | ||
Résultat | OphTrOperationbooking_Operation_Session | null |
public getWarnings ( ) : array | ||
Résultat | array |
public getWeekdayText ( ) : false | string | ||
Résultat | false | string |
public operationBookable ( $operation ) : boolean | ||
$operation | ||
Résultat | boolean |
public search ( ) : CActiveDataProvider | ||
Résultat | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
public unbookableReason ( $operation ) : string | ||
$operation | ||
Résultat | 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 |