PHP Класс Element_OphTrOperationbooking_ScheduleOperation

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

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

Свойство Тип Описание
$service

Защищенные свойства (Protected)

Свойство Тип Описание
$_unavailable_dates

Открытые методы

Метод Описание
__set ( string $name, mixed $value ) : mixed | void make sure the cached dates array is reset when patient_unavailables is updated.
afterValidate ( ) Make sure patient_unavailables are validated.
attributeLabels ( ) : array
getContainer_view_view ( )
getCurrentBooking ( ) : OphTrOperationbooking_Operation_Booking Get the operation booking for the event.
isPatientAvailable ( $date ) : boolean Given a date (yyyy-mm-dd) check if the patient is available, and return true or false as appropriate.
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string
updatePatientUnavailables ( $unavailables ) Set the patient unavailable objects for this element.
validateNoBookingCollision ( $attribute, $params ) Ensure that if there is a current booking on this event, the patient unavailables dates don't collide with the booking.
validateNoDateRangeOverlap ( $attribute, $params ) validate a date is earlier or equal to another.

Описание методов

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

make sure the cached dates array is reset when patient_unavailables is updated.
public __set ( string $name, mixed $value ) : mixed | void
$name string
$value mixed
Результат mixed | void

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

Make sure patient_unavailables are validated.
public afterValidate ( )

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

public attributeLabels ( ) : array
Результат array customized attribute labels (name=>label)

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

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

Get the operation booking for the event.
public getCurrentBooking ( ) : OphTrOperationbooking_Operation_Booking
Результат OphTrOperationbooking_Operation_Booking

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

Given a date (yyyy-mm-dd) check if the patient is available, and return true or false as appropriate.
public isPatientAvailable ( $date ) : boolean
$date
Результат boolean

model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
Результат the static model class

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

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

Set the patient unavailable objects for this element.
public updatePatientUnavailables ( $unavailables )
$unavailables

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

Ensure that if there is a current booking on this event, the patient unavailables dates don't collide with the booking.
public validateNoBookingCollision ( $attribute, $params )
$attribute
$params

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

validate a date is earlier or equal to another.
public validateNoDateRangeOverlap ( $attribute, $params )
$attribute - the element attribute that must be an earlier date
$params - 'later_date' is the attribute to compare it with

Описание свойств

$_unavailable_dates защищенное свойство

protected $_unavailable_dates

$service публичное свойство

public $service