Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | private static function getRowFromColumns($columns, SilverstripePage $sspage = null) |
||
34 | { |
||
35 | $matches = array(); |
||
36 | preg_match_all("/(?<pl>%s|%v|%da|%el|%et|%m|%cfgp|%cfgy)/", $columns, $matches); |
||
37 | $row = array(); |
||
38 | |||
39 | foreach ($matches["pl"] as $m) { |
||
40 | $c = self::getCellFromPlaceholder($m, $sspage); |
||
41 | if ($c) { |
||
42 | array_push($row, $c); |
||
43 | } |
||
44 | } |
||
45 | |||
46 | return $row; |
||
47 | } |
||
48 | |||
67 |