PHP Класс 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 .
Автор: OpenEyes ([email protected])
Наследование: extends BaseController
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$firm
$layout the default layout for the views

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

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

Описание методов

accessRules() публичный Метод

public accessRules ( )

actionCreate() публичный Метод

public actionCreate ( )

actionDelete() публичный Метод

public actionDelete ( )

actionIndex() публичный Метод

Lists all models.
public actionIndex ( )

actionLog() публичный Метод

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

actionMerge() публичный Метод

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

actionSearch() публичный Метод

public actionSearch ( )

actionUpdate() публичный Метод

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() публичный Метод

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

beforeAction() публичный Метод

public beforeAction ( $action )

getEpisodesHTML() публичный Метод

public getEpisodesHTML ( $patient )

init() публичный Метод

public init ( )

isPatientInRequestList() публичный Метод

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

loadModel() публичный Метод

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
Результат PatientMergeRequest the loaded model

Описание свойств

$firm публичное свойство

public $firm

$layout публичное свойство

the default layout for the views
public $layout