PHP 클래스 OphCoTherapyapplication_Processor

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2013 This file is part of OpenEyes. 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 .
저자: OpenEyes ([email protected])
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Event $event )
generatePreviewPdf ( CController $controller ) : OETCPDF Generate PDFs in a wrapper for preview purposes.
getApplicationStatus ( ) : string Returns status of applicant: pending, sent, re-opened.
getEyeNameById ( $eye_id ) : string
getLeftSentEmails ( ) : OphCoTherapyapplication_Email[]
getPDFContentForSide ( $controller, $template_data, $side )
getProcessWarnings ( ) : array Get any relevant warnings.
getRightSentEmails ( ) : OphCoTherapyapplication_Email[]
getSiteName ( )
hasEmailRecipients ( )
isEventNonCompliant ( ) : boolean return boolean to indicate whether the given event is non compliant or not.
processEvent ( CController $controller, User $notify_user = null ) : boolean processes the application for the event with id $event_id returns a boolean to indicate whether this was successful or not.

보호된 메소드들

메소드 설명
createAndSavePdfForSide ( CController $controller, array $template_data, string $side ) : ProtectedFile | null create the PDF file as a ProtectedFile for the given side.
generateEmailForSide ( CController $controller, array $template_data, string $side ) : string generate the email text for the given side.
getElement ( string $class_name ) : BaseEventTypeElement | null Get an element object by class name.

비공개 메소드들

메소드 설명
getEmailRecipients ( $service_info, $recipient_type )
getServiceInfo ( )
getSideSpecificTemplateData ( string $side ) : array
getTemplateData ( ) : array
getViewPath ( ) : string
processEventForEye ( CController $controller, array $template_data, integer $eye_id, User $notify_user = null ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( Event $event )
$event Event Must be an OphCoTherapyapplication event

createAndSavePdfForSide() 보호된 메소드

create the PDF file as a ProtectedFile for the given side.
protected createAndSavePdfForSide ( CController $controller, array $template_data, string $side ) : ProtectedFile | null
$controller CController
$template_data array
$side string
리턴 ProtectedFile | null

generateEmailForSide() 보호된 메소드

generate the email text for the given side.
protected generateEmailForSide ( CController $controller, array $template_data, string $side ) : string
$controller CController
$template_data array
$side string
리턴 string

generatePreviewPdf() 공개 메소드

Note that this is currently only used for non-compliant applications.
public generatePreviewPdf ( CController $controller ) : OETCPDF
$controller CController
리턴 OETCPDF

getApplicationStatus() 공개 메소드

Returns status of applicant: pending, sent, re-opened.
public getApplicationStatus ( ) : string
리턴 string

getElement() 보호된 메소드

We could potentially add a caching layer here if performance becomes a problem, but would have to watch out for stale data
protected getElement ( string $class_name ) : BaseEventTypeElement | null
$class_name string
리턴 BaseEventTypeElement | null

getEyeNameById() 공개 메소드

public getEyeNameById ( $eye_id ) : string
$eye_id
리턴 string

getLeftSentEmails() 공개 메소드

public getLeftSentEmails ( ) : OphCoTherapyapplication_Email[]
리턴 OphCoTherapyapplication_Email[]

getPDFContentForSide() 공개 메소드

public getPDFContentForSide ( $controller, $template_data, $side )

getProcessWarnings() 공개 메소드

Get any relevant warnings.
public getProcessWarnings ( ) : array
리턴 array

getRightSentEmails() 공개 메소드

public getRightSentEmails ( ) : OphCoTherapyapplication_Email[]
리턴 OphCoTherapyapplication_Email[]

getSiteName() 공개 메소드

public getSiteName ( )

hasEmailRecipients() 공개 메소드

public hasEmailRecipients ( )

isEventNonCompliant() 공개 메소드

return boolean to indicate whether the given event is non compliant or not.
또한 보기: Element_OphCoTherapyapplication_PatientSuitability::isNonCompliant()
public isEventNonCompliant ( ) : boolean
리턴 boolean

processEvent() 공개 메소드

processes the application for the event with id $event_id returns a boolean to indicate whether this was successful or not.
public processEvent ( CController $controller, User $notify_user = null ) : boolean
$controller CController
$notify_user User
리턴 boolean