Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| tao_models_classes_dataBinding_AbstractDataBinder | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| bind | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | |||||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; under version 2 |
| 7 | * of the License (non-upgradable). |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 | * |
| 18 | * Copyright (c) 2002-2008 (original work) Public Research Centre Henri Tudor & University of Luxembourg |
| 19 | * (under the project TAO & TAO2); |
| 20 | * 2008-2010 (update and modification) Deutsche Institut für Internationale Pädagogische Forschung |
| 21 | * (under the project TAO-TRANSFER); |
| 22 | * 2009-2012 (update and modification) Public Research Centre Henri Tudor |
| 23 | * (under the project TAO-SUSTAIN & TAO-DEV); |
| 24 | * |
| 25 | */ |
| 26 | |
| 27 | /** |
| 28 | * This abstract class represents a Data Binder that is able to bind data from a |
| 29 | * source (e.g. a form) to another one (e.g. a persistent memory such as a |
| 30 | * |
| 31 | * Implementors have to implement the bind method to introduce their main logic |
| 32 | * data binding. |
| 33 | * |
| 34 | * @abstract |
| 35 | * @access public |
| 36 | * @author Jerome Bogaerts, <jerome@taotesting.com> |
| 37 | * @package tao |
| 38 | |
| 39 | */ |
| 40 | abstract class tao_models_classes_dataBinding_AbstractDataBinder |
| 41 | { |
| 42 | // --- ASSOCIATIONS --- |
| 43 | |
| 44 | |
| 45 | // --- ATTRIBUTES --- |
| 46 | |
| 47 | // --- OPERATIONS --- |
| 48 | |
| 49 | /** |
| 50 | * Data binding from the data representation passed as a parameter and the |
| 51 | * data source. |
| 52 | * |
| 53 | * If the DataBinding fails, a DataBindingException is thrown. |
| 54 | * |
| 55 | * @abstract |
| 56 | * @access public |
| 57 | * @author Jerome Bogaerts, <jerome@taotesting.com> |
| 58 | * @param array data An array of Data to bind from a data source to another. |
| 59 | * @return mixed |
| 60 | */ |
| 61 | abstract public function bind($data); |
| 62 | } |