| Conditions | 2 |
| Paths | 2 |
| Total Lines | 40 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | public function __construct($columnFields = null) |
||
| 9 | { |
||
| 10 | //Create the generic fields for the table |
||
| 11 | parent::__construct('ZFTable'); |
||
| 12 | $this->setAttribute('method', 'post'); |
||
| 13 | $this->add(array( |
||
| 14 | 'name' => 'zfTableItemPerPage', |
||
| 15 | 'attributes' => array( |
||
| 16 | 'type' => 'text', |
||
| 17 | ), |
||
| 18 | )); |
||
| 19 | $this->add(array( |
||
| 20 | 'name' => 'zfTableQuickSearch', |
||
| 21 | 'attributes' => array( |
||
| 22 | 'type' => 'text', |
||
| 23 | ), |
||
| 24 | )); |
||
| 25 | $this->add(array( |
||
| 26 | 'name' => 'zfTableOrder', |
||
| 27 | 'attributes' => array( |
||
| 28 | 'type' => 'text', |
||
| 29 | ), |
||
| 30 | )); |
||
| 31 | $this->add(array( |
||
| 32 | 'name' => 'zfTableColumn', |
||
| 33 | 'attributes' => array( |
||
| 34 | 'type' => 'text', |
||
| 35 | ), |
||
| 36 | )); |
||
| 37 | |||
| 38 | //Creates a field for each of the columns in the table |
||
| 39 | foreach ($columnFields as $fieldName) { |
||
| 40 | $this->add(array( |
||
| 41 | 'name' => 'zff_' . $fieldName, |
||
| 42 | 'attributes' => array( |
||
| 43 | 'type' => 'text', |
||
| 44 | ), |
||
| 45 | )); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |
||
| 49 |