PHP Class PatientMergeRequestController

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2012 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 .
Author: OpenEyes ([email protected])
Inheritance: extends BaseController
ファイルを表示 Open project: openeyes/openeyes

Public Properties

Property Type Description
$firm
$layout the default layout for the views

Public Methods

Method Description
accessRules ( )
actionCreate ( )
actionDelete ( )
actionIndex ( ) Lists all models.
actionLog ( integer $id ) Displays a particular model.
actionMerge ( integer $id ) Merging patients.
actionSearch ( )
actionUpdate ( integer $id ) Updates a particular model.
actionView ( integer $id ) Displays a particular model.
beforeAction ( $action )
getEpisodesHTML ( $patient )
init ( )
isPatientInRequestList ( integer $patientId ) : null | string Check if the paient id is already in the request list.
loadModel ( integer $id ) : PatientMergeRequest Returns the data model based on the primary key given in the GET variable.

Method Details

accessRules() public method

public accessRules ( )

actionCreate() public method

public actionCreate ( )

actionDelete() public method

public actionDelete ( )

actionIndex() public method

Lists all models.
public actionIndex ( )

actionLog() public method

Displays a particular model.
public actionLog ( integer $id )
$id integer the ID of the model to be displayed

actionMerge() public method

Merging patients.
public actionMerge ( integer $id )
$id integer the ID of the model to be displayed

actionSearch() public method

public actionSearch ( )

actionUpdate() public method

If update is successful, the browser will be redirected to the 'view' page.
public actionUpdate ( integer $id )
$id integer the ID of the model to be updated

actionView() public method

Displays a particular model.
public actionView ( integer $id )
$id integer the ID of the model to be displayed

beforeAction() public method

public beforeAction ( $action )

getEpisodesHTML() public method

public getEpisodesHTML ( $patient )

init() public method

public init ( )

isPatientInRequestList() public method

Check if the paient id is already in the request list.
public isPatientInRequestList ( integer $patientId ) : null | string
$patientId integer
return null | string 'primary' or 'secondary', this means, e.g.: patient id was submited for merge as secondary patient

loadModel() public method

If the data model is not found, an HTTP exception will be raised.
public loadModel ( integer $id ) : PatientMergeRequest
$id integer the ID of the model to be loaded
return PatientMergeRequest the loaded model

Property Details

$firm public_oe property

public $firm

$layout public_oe property

the default layout for the views
public $layout