PHP Класс Episode

This class has been auto-generated by the Doctrine ORM Framework
Автор: Tom Doggett
Наследование: extends BaseEpisode
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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