PHP Class OphTrOperationbooking_BookingHelper

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])
Mostrar archivo Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
checkSessionCompatibleWithOperation ( OphTrOperationbooking_Operation_Session $session, Element_OphTrOperationbooking_Operation $op ) : array
validateElementsForEvent ( $elements ) : array Perform event level validation based on the elements passed in.

Method Details

checkSessionCompatibleWithOperation() public method

public checkSessionCompatibleWithOperation ( OphTrOperationbooking_Operation_Session $session, Element_OphTrOperationbooking_Operation $op ) : array
$session OphTrOperationbooking_Operation_Session
$op Element_OphTrOperationbooking_Operation
return array Array of error codes, empty if no errors

validateElementsForEvent() public static method

Perform event level validation based on the elements passed in.
public static validateElementsForEvent ( $elements ) : array
$elements
return array