1 | <?php |
||
6 | class GridRowsExtension extends DataExtension |
||
|
|||
7 | { |
||
8 | /* |
||
9 | If you are laying out using some form of grid, e.g. HTML table (ugh) or |
||
10 | bootstraps span classes it is useful to have the DataList split by row. |
||
11 | Here the DataList is generated from a method accessible to the current |
||
12 | controller |
||
13 | |||
14 | See README.md for a worked example |
||
15 | |||
16 | */ |
||
17 | public function SplitDataListIntoGridRows($itemsInGridMethod, $numberOfCols) |
||
42 | |||
43 | /* |
||
44 | If you are laying out using some form of grid, e.g. HTML table (ugh) or |
||
45 | bootstraps span classes it is useful to have the DataList split by row. |
||
46 | This is what this method does. |
||
47 | |||
48 | See README.md for a worked example |
||
49 | |||
50 | */ |
||
51 | public function SplitClassNameDataListIntoGridRows( |
||
58 | |||
59 | /* |
||
60 | The actual method that splits the DataList into an ArrayList of rows that |
||
61 | contain an ArrayList of Columns |
||
62 | */ |
||
63 | private function createGrid($itemsInGrid, $numberOfCols) |
||
87 | } |
||
88 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.