diff --git a/Classes/Frontend/Marker/ListBuilder.php b/Classes/Frontend/Marker/ListBuilder.php index 61db2dc1..037be374 100644 --- a/Classes/Frontend/Marker/ListBuilder.php +++ b/Classes/Frontend/Marker/ListBuilder.php @@ -58,6 +58,14 @@ public function __construct(ListBuilderInfo $info = null) } } + /** + * @return ListBuilderInfo + */ + protected function getInfo() + { + return $this->info; + } + /** * Add a visitor callback. It is called for each item before rendering. * @@ -68,6 +76,14 @@ public function addVisitor(array $callback) $this->visitors[] = $callback; } + /** + * @return array + */ + protected function getVisitors() + { + return $this->visitors; + } + public function renderEach(IListProvider $provider, $viewData, $template, $markerClassname, $confId, $marker, $formatter, $markerParams = null) { $viewData = is_object($viewData) ? $viewData : new ArrayObject(); diff --git a/Classes/Frontend/Marker/ListMarker.php b/Classes/Frontend/Marker/ListMarker.php index 0d1905f9..bb7cb9b4 100644 --- a/Classes/Frontend/Marker/ListMarker.php +++ b/Classes/Frontend/Marker/ListMarker.php @@ -37,15 +37,16 @@ class ListMarker private $template; private $formatter; private $visitors; - private $confId; - private $rowRoll; - private $rowRollCnt; - private $i; - private $parts; - private $totalLineStart; - private $offset; - private $marker; - private $entryMarker; + + protected $confId; + protected $rowRoll; + protected $rowRollCnt; + protected $i; + protected $parts; + protected $totalLineStart; + protected $offset; + protected $marker; + protected $entryMarker; public function __construct(ListMarkerInfo $listMarkerInfo = null) { @@ -56,6 +57,22 @@ public function __construct(ListMarkerInfo $listMarkerInfo = null) } } + /** + * @return ListBuilderInfo + */ + protected function getInfo() + { + return $this->info; + } + + /** + * @return FormatUtil + */ + protected function getFormatter() + { + return $this->formatter; + } + /** * Add a visitor callback. It is called for each item before rendering. * @@ -66,6 +83,14 @@ public function addVisitors(array $visitors) $this->visitors = $visitors; } + /** + * @return array + */ + protected function getVisitors() + { + return $this->visitors; + } + /** * @param IListProvider $provider * @param string $template