PHP Class Element_OphTrOperationbooking_ScheduleOperation

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

Méthodes publiques

Свойство Type Description
$service

Protected Properties

Свойство Type Description
$_unavailable_dates

Méthodes publiques

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

Method Details

__set() public méthode

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
Résultat mixed | void

afterValidate() public méthode

Make sure patient_unavailables are validated.
public afterValidate ( )

attributeLabels() public méthode

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

getContainer_view_view() public méthode

getCurrentBooking() public méthode

Get the operation booking for the event.
public getCurrentBooking ( ) : OphTrOperationbooking_Operation_Booking
Résultat OphTrOperationbooking_Operation_Booking

isPatientAvailable() public méthode

Given a date (yyyy-mm-dd) check if the patient is available, and return true or false as appropriate.
public isPatientAvailable ( $date ) : boolean
$date
Résultat boolean

model() public static méthode

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

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

updatePatientUnavailables() public méthode

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

validateNoBookingCollision() public méthode

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() public méthode

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

Property Details

$_unavailable_dates protected_oe property

protected $_unavailable_dates

$service public_oe property

public $service