PHP Class SecondaryToImport

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2014 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])
Mostra file Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$defaultAction
$reset_parent

Protected Properties

Property Type Description
$cod
$disorders
$display_order
$required_cols
$reset_subspecialty_ids
$second_display_order
$subspecialty

Public Methods

Method Description
getNextDisplayOrderForParent ( $cod ) : mixed Wrapper to handle ordering for secondary to disorders.
getNextDisplayOrderForSubspecialty ( $subspecialty ) : mixed Wrapper to track the display order for Common Disorders.
import ( $filename, $reset_parent )
resetSubspecialty ( $subspecialty ) Remmoves the parent list for the given subspecialty if it's not already been removed.

Protected Methods

Method Description
getCOD ( $disorder_id, $subspecialty ) If script is set up to define the COD it will create one if it can't be found.
getDisorder ( $id ) : Disorder | null Cache wrapper for searching for and retrieving disorder by id.
getSubspecialty ( $code ) : Subspecialty | null Cache wrapper for searching and retrieving subspecialty by ref spec code.

Method Details

getCOD() protected method

If script is set up to define the COD it will create one if it can't be found.
protected getCOD ( $disorder_id, $subspecialty )
$disorder_id
$subspecialty

getDisorder() protected method

Cache wrapper for searching for and retrieving disorder by id.
protected getDisorder ( $id ) : Disorder | null
$id
return Disorder | null

getNextDisplayOrderForParent() public method

Wrapper to handle ordering for secondary to disorders.
public getNextDisplayOrderForParent ( $cod ) : mixed
$cod
return mixed

getNextDisplayOrderForSubspecialty() public method

Wrapper to track the display order for Common Disorders.
public getNextDisplayOrderForSubspecialty ( $subspecialty ) : mixed
$subspecialty
return mixed

getSubspecialty() protected method

Cache wrapper for searching and retrieving subspecialty by ref spec code.
protected getSubspecialty ( $code ) : Subspecialty | null
$code
return Subspecialty | null

import() public method

public import ( $filename, $reset_parent )

resetSubspecialty() public method

Remmoves the parent list for the given subspecialty if it's not already been removed.
public resetSubspecialty ( $subspecialty )
$subspecialty

Property Details

$cod protected_oe property

protected $cod

$defaultAction public_oe property

public $defaultAction

$disorders protected_oe property

protected $disorders

$display_order protected_oe property

protected $display_order

$required_cols protected_oe property

protected $required_cols

$reset_parent public_oe property

public $reset_parent

$reset_subspecialty_ids protected_oe property

protected $reset_subspecialty_ids

$second_display_order protected_oe property

protected $second_display_order

$subspecialty protected_oe property

protected $subspecialty