PHP Class OEModule\PatientTicketing\models\Ticket

The followings are the available columns in table:
Inheritance: extends BaseActiveRecordVersioned
Show file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
getDisplayQueue ( )
getDisplayQueueAssignment ( )
getInfoData ( boolean $json = true ) : array | string Get a data structure containing information about this ticket.
getNotes ( ) : mixed Convenience function to access ticket notes.
getPastQueueAssignments ( ) : array Get the past Queue Assignments for the ticket.
getReport ( ) : mixed Convenience function to accese ticket report field.
getSourceLabel ( ) : string Get the text to describe the source of this ticket.
getSourceLink ( ) : mixed Get the URL to link to the source of the ticket.
getTicketFirm ( ) : string Gets the firm that was being used when this ticket was created.
hasHistory ( ) : boolean Returns true if this ticket was previously in a different queue. False otherwise.
is_complete ( ) : boolean Checks if the ticket is complete or not.
model ( $className = __CLASS__ ) : Ticket 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

Method Details

attributeLabels() public method

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

getDisplayQueue() public method

public getDisplayQueue ( )

getDisplayQueueAssignment() public method

getInfoData() public method

Get a data structure containing information about this ticket.
public getInfoData ( boolean $json = true ) : array | string
$json boolean
return array | string

getNotes() public method

Convenience function to access ticket notes.
public getNotes ( ) : mixed
return mixed

getPastQueueAssignments() public method

Get the past Queue Assignments for the ticket.
public getPastQueueAssignments ( ) : array
return array

getReport() public method

Convenience function to accese ticket report field.
public getReport ( ) : mixed
return mixed

getSourceLabel() public method

Get the text to describe the source of this ticket.
public getSourceLabel ( ) : string
return string

getTicketFirm() public method

Gets the firm that was being used when this ticket was created.
public getTicketFirm ( ) : string
return string

hasHistory() public method

Returns true if this ticket was previously in a different queue. False otherwise.
public hasHistory ( ) : boolean
return boolean

is_complete() public method

Checks if the ticket is complete or not.
public is_complete ( ) : boolean
return boolean

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Ticket
return Ticket the static model class

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

tableName() public method

public tableName ( ) : string
return string the associated database table name