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
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Méthode 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".

Méthodes protégées

Méthode Description
beforeSave ( )
setSideDefaultOptions ( $side )

Method Details

beforeSave() protected méthode

protected beforeSave ( )

checkNumericRangeIfSide() public méthode

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

hasLeft() public méthode

public hasLeft ( )

hasRight() public méthode

public hasRight ( )

setDefaultOptions() public méthode

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

setSideDefaultOptions() protected méthode

protected setSideDefaultOptions ( $side )

setUpdateOptions() public méthode

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

sidedDefaults() public méthode

Used for initialising sided fields.
public sidedDefaults ( ) : array
Résultat array

sidedFields() public méthode

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