PHP Class OphCoTherapyapplication_Email

OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Author: OpenEyes ([email protected])
Inheritance: extends BaseActiveRecordVersioned
Show file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
addAttachments ( array $attachments )
archiveForEvent ( Event $event ) Mark all emails for the specified event as archived.
defaultScope ( )
forEvent ( Event $event ) : Ophcotherapya_Email_Attachment Scope to limit to emails for a specific event.
getStatusForEvent ( Event $event ) : string Get the application status based on the emails for the given event.
model ( $className = __CLASS__ )
relations ( )
rules ( )
scopes ( )
tableName ( )

Method Details

addAttachments() public method

public addAttachments ( array $attachments )
$attachments array

archiveForEvent() public method

Mark all emails for the specified event as archived.
public archiveForEvent ( Event $event )
$event Event

defaultScope() public method

public defaultScope ( )

forEvent() public method

Scope to limit to emails for a specific event.
public forEvent ( Event $event ) : Ophcotherapya_Email_Attachment
$event Event
return Ophcotherapya_Email_Attachment

getStatusForEvent() public method

Get the application status based on the emails for the given event.
public getStatusForEvent ( Event $event ) : string
$event Event
return string One of the OphCoTherapyapplication_Processor STATUS_ constants

model() public static method

public static model ( $className = __CLASS__ )

relations() public method

public relations ( )

rules() public method

public rules ( )

scopes() public method

public scopes ( )

tableName() public method

public tableName ( )