PHP Class SplitEventTypeElement

(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 .
Author: OpenEyes ([email protected])
Inheritance: extends BaseEventTypeElement
Mostrar archivo Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
checkNumericRangeIfSide ( $attribute, $params ) Check numeric values within min and max range for the selected eye.
hasLeft ( )
hasRight ( )
setDefaultOptions ( ) Sided fields have the same defaults on left and right.
setUpdateOptions ( ) Used to initialise the missing side in an update form.
sidedDefaults ( ) : array An associative array of field suffixes and their default values.
sidedFields ( ) : array: An array of field suffixes that we should treat as "sided".

Protected Methods

Method Description
beforeSave ( )
setSideDefaultOptions ( $side )

Method Details

beforeSave() protected method

protected beforeSave ( )

checkNumericRangeIfSide() public method

Check numeric values within min and max range for the selected eye.
public checkNumericRangeIfSide ( $attribute, $params )
$attribute
$params

hasLeft() public method

public hasLeft ( )

hasRight() public method

public hasRight ( )

setDefaultOptions() public method

Sided fields have the same defaults on left and right.
public setDefaultOptions ( )

setSideDefaultOptions() protected method

protected setSideDefaultOptions ( $side )

setUpdateOptions() public method

Used to initialise the missing side in an update form.
public setUpdateOptions ( )

sidedDefaults() public method

Used for initialising sided fields.
public sidedDefaults ( ) : array
return array

sidedFields() public method

e.g. 'example' would indicate 'left_example' and 'right_example'.
public sidedFields ( ) : array:
return array: