PHP 클래스 Element_OphTrOperationbooking_ScheduleOperation

The followings are the available columns in table:
상속: extends BaseEventTypeElement
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$service

보호된 프로퍼티들

프로퍼티 타입 설명
$_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