PHP 클래스 Episode

This class has been auto-generated by the Doctrine ORM Framework
저자: Tom Doggett
상속: extends BaseEpisode
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 메소드들

메소드 설명
attributeLabels ( ) : array
audit ( $target, $action, $data = null, $log = false, $properties = [] )
defaultScope ( ) : array Sets default scope for events such that we never pull back any rows that have deleted set to 1.
disableDefaultScope ( )
getAllEventsByType ( $event_type_id ) : Event[] Get all the events of the given type for this episode.
getBySubspecialtyAndPatient ( integer $subspecialtyId, integer $patientId, $onlyReturnOpen = true ) : object Returns the episode for a patient and subspecialty if there is one.
getCurrentEpisodeByFirm ( $patient_id, $firm, $include_closed = false ) get the current episode for the given firm, based on the firm subspecialty - if firm has no subspecialty, will return a support services episode.
getCurrentEpisodeBySubspecialtyId ( $patient_id, $subspecialty_id, $include_closed = false ) get the current episode for the patient id and subspecialty_id (if this is null, looking for support services episode).
getElementsOfType ( $element_type, integer $exclude_event_id = null ) : BaseEventTypeElement[] Get all elements of the given type from this Episode.
getHidden ( )
getLatestEvent ( ) : Event get the latest event for this episode.
getMostRecentEventByType ( $event_type_id ) : Event Get the most recent event by the given type in this episode.
getOpen ( )
getPrincipalDiagnosisDisorderTerm ( )
getSubspecialty ( ) : Subspecialty get the subspecialty for this episode.
getSubspecialtyID ( ) : integer | null get the subspecialty id for this episode.
getSubspecialtyText ( ) : string get the subspecialty text for the episode.
hasEventOfType ( integer $eventTypeId, Event $currentEvent = null ) : boolean Returns true if an event of the given type exists within this episode.
model ( $className = __CLASS__ ) : Episode Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
save ( $runValidation = true, $attributes = null, $allow_overriding = false, $save_version = false )
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
setPrincipalDiagnosis ( $disorder_id, $eye_id )
tableName ( ) : string

보호된 메소드들

메소드 설명
afterSave ( )

메소드 상세

afterSave() 보호된 메소드

protected afterSave ( )

attributeLabels() 공개 메소드

public attributeLabels ( ) : array
리턴 array customized attribute labels (name=>label)

audit() 공개 메소드

public audit ( $target, $action, $data = null, $log = false, $properties = [] )

defaultScope() 공개 메소드

Sets default scope for events such that we never pull back any rows that have deleted set to 1.
public defaultScope ( ) : array
리턴 array of mandatory conditions

disableDefaultScope() 공개 메소드

public disableDefaultScope ( )

getAllEventsByType() 공개 메소드

Get all the events of the given type for this episode.
public getAllEventsByType ( $event_type_id ) : Event[]
$event_type_id
리턴 Event[]

getBySubspecialtyAndPatient() 공개 메소드

Returns the episode for a patient and subspecialty if there is one.
사용 중단: - since 1.4 use getCurrentEpisodeByFirm instead
public getBySubspecialtyAndPatient ( integer $subspecialtyId, integer $patientId, $onlyReturnOpen = true ) : object
$subspecialtyId integer id of the subspecialty
$patientId integer id of the patient
리턴 object $episode if found, null otherwise

getCurrentEpisodeByFirm() 공개 정적인 메소드

wrapper for getCurrentEpisodeBySubspecialtyId($patient_id, $subspecialty_id, $include_closed)
public static getCurrentEpisodeByFirm ( $patient_id, $firm, $include_closed = false )

getCurrentEpisodeBySubspecialtyId() 공개 정적인 메소드

get the current episode for the patient id and subspecialty_id (if this is null, looking for support services episode).
public static getCurrentEpisodeBySubspecialtyId ( $patient_id, $subspecialty_id, $include_closed = false )

getElementsOfType() 공개 메소드

Get all elements of the given type from this Episode.
public getElementsOfType ( $element_type, integer $exclude_event_id = null ) : BaseEventTypeElement[]
$element_type
$exclude_event_id integer
리턴 BaseEventTypeElement[]

getHidden() 공개 메소드

public getHidden ( )

getLatestEvent() 공개 메소드

get the latest event for this episode.
public getLatestEvent ( ) : Event
리턴 Event

getMostRecentEventByType() 공개 메소드

Get the most recent event by the given type in this episode.
public getMostRecentEventByType ( $event_type_id ) : Event
$event_type_id
리턴 Event

getOpen() 공개 메소드

public getOpen ( )

getPrincipalDiagnosisDisorderTerm() 공개 메소드

getSubspecialty() 공개 메소드

get the subspecialty for this episode.
public getSubspecialty ( ) : Subspecialty
리턴 Subspecialty

getSubspecialtyID() 공개 메소드

get the subspecialty id for this episode.
public getSubspecialtyID ( ) : integer | null
리턴 integer | null

getSubspecialtyText() 공개 메소드

get the subspecialty text for the episode.
public getSubspecialtyText ( ) : string
리턴 string

hasEventOfType() 공개 메소드

Returns true if an event of the given type exists within this episode.
public hasEventOfType ( integer $eventTypeId, Event $currentEvent = null ) : boolean
$eventTypeId integer
$currentEvent Event
리턴 boolean

model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Episode
리턴 Episode the static model class

relations() 공개 메소드

public relations ( ) : array
리턴 array relational rules.

rules() 공개 메소드

public rules ( ) : array
리턴 array validation rules for model attributes.

save() 공개 메소드

public save ( $runValidation = true, $attributes = null, $allow_overriding = false, $save_version = false )

setPrincipalDiagnosis() 공개 메소드

public setPrincipalDiagnosis ( $disorder_id, $eye_id )

tableName() 공개 메소드

public tableName ( ) : string
리턴 string the associated database table name