Code Coverage  | 
      ||||||||||
Lines  | 
       Functions and Methods  | 
       Classes and Traits  | 
      ||||||||
| Total |         | 
       0.00%  | 
       0 / 8  | 
               | 
       0.00%  | 
       0 / 2  | 
       CRAP |         | 
       0.00%  | 
       0 / 1  | 
      
| tao_helpers_grid_Cell_Adapter |         | 
       0.00%  | 
       0 / 8  | 
               | 
       0.00%  | 
       0 / 2  | 
       20 |         | 
       0.00%  | 
       0 / 1  | 
      
| getValue | n/a  | 
       0 / 0  | 
       n/a  | 
       0 / 0  | 
       0 | |||||
| __construct |         | 
       0.00%  | 
       0 / 5  | 
               | 
       0.00%  | 
       0 / 1  | 
       12 | |||
| getData |         | 
       0.00%  | 
       0 / 3  | 
               | 
       0.00%  | 
       0 / 1  | 
       2 | |||
| 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) 2008-2010 (original work) Deutsche Institut für Internationale Pädagogische Forschung | 
| 19 | * (under the project TAO-TRANSFER); | 
| 20 | * 2009-2012 (update and modification) Public Research Centre Henri Tudor | 
| 21 | * (under the project TAO-SUSTAIN & TAO-DEV); | 
| 22 | * | 
| 23 | */ | 
| 24 | |
| 25 | /** | 
| 26 | * Short description of class tao_helpers_grid_Cell_Adapter | 
| 27 | * | 
| 28 | * @abstract | 
| 29 | * @access public | 
| 30 | * @author Somsack Sipasseuth, <somsack.sipasseuth@tudor.lu> | 
| 31 | * @package tao | 
| 32 | |
| 33 | */ | 
| 34 | abstract class tao_helpers_grid_Cell_Adapter | 
| 35 | { | 
| 36 | // --- ASSOCIATIONS --- | 
| 37 | |
| 38 | |
| 39 | // --- ATTRIBUTES --- | 
| 40 | |
| 41 | /** | 
| 42 | * Short description of attribute data | 
| 43 | * | 
| 44 | * @access protected | 
| 45 | * @var array | 
| 46 | */ | 
| 47 | protected $data = []; | 
| 48 | |
| 49 | /** | 
| 50 | * Short description of attribute options | 
| 51 | * | 
| 52 | * @access protected | 
| 53 | * @var array | 
| 54 | */ | 
| 55 | protected $options = []; | 
| 56 | |
| 57 | /** | 
| 58 | * Short description of attribute excludedProperties | 
| 59 | * | 
| 60 | * @access public | 
| 61 | * @var array | 
| 62 | */ | 
| 63 | public $excludedProperties = []; | 
| 64 | |
| 65 | // --- OPERATIONS --- | 
| 66 | |
| 67 | /** | 
| 68 | * Short description of method getValue | 
| 69 | * | 
| 70 | * @abstract | 
| 71 | * @access public | 
| 72 | * @author Somsack Sipasseuth, <somsack.sipasseuth@tudor.lu> | 
| 73 | * @param string rowId | 
| 74 | * @param string columnId | 
| 75 | * @param string data | 
| 76 | * @return mixed | 
| 77 | */ | 
| 78 | abstract public function getValue($rowId, $columnId, $data = null); | 
| 79 | |
| 80 | /** | 
| 81 | * Short description of method __construct | 
| 82 | * | 
| 83 | * @access public | 
| 84 | * @author Somsack Sipasseuth, <somsack.sipasseuth@tudor.lu> | 
| 85 | * @param array options | 
| 86 | * @return mixed | 
| 87 | */ | 
| 88 | public function __construct($options = []) | 
| 89 | { | 
| 90 | |
| 91 | $this->options = $options; | 
| 92 | $this->excludedProperties = (is_array($this->options) && isset($this->options['excludedProperties'])) | 
| 93 | ? $this->options['excludedProperties'] | 
| 94 | : []; | 
| 95 | } | 
| 96 | |
| 97 | /** | 
| 98 | * Short description of method getData | 
| 99 | * | 
| 100 | * @access public | 
| 101 | * @author Somsack Sipasseuth, <somsack.sipasseuth@tudor.lu> | 
| 102 | * @return array | 
| 103 | */ | 
| 104 | public function getData() | 
| 105 | { | 
| 106 | $returnValue = []; | 
| 107 | |
| 108 | |
| 109 | $returnValue = $this->data; | 
| 110 | |
| 111 | |
| 112 | return (array) $returnValue; | 
| 113 | } | 
| 114 | } |