Skip to content

Commit

Permalink
Merge pull request FluidTYPO3#636 from bjo3rnf/slidecollect
Browse files Browse the repository at this point in the history
[TASK] Remove argument slideCollect
  • Loading branch information
NamelessCoder committed Jul 18, 2014
2 parents 5d894d0 + 1962437 commit 40cbc87
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Classes/ViewHelpers/Content/AbstractContentViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public function initializeArguments() {
$this->registerArgument('pageUid', 'integer', 'If set, selects only content from this page UID', FALSE, 0);
$this->registerArgument('contentUids', 'array', 'If used, replaces all conditions with an "uid IN (1,2,3)" style condition using the UID values from this array');
$this->registerArgument('slide', 'integer', 'Enables Content Sliding - amount of levels which shall get walked up the rootline. For infinite sliding (till the rootpage) set to -1)', FALSE, 0);
$this->registerArgument('slideCollect', 'integer', 'Enables collecting of Content Elements - amount of levels which shall get walked up the rootline. For infinite sliding (till the rootpage) set to -1 (lesser value for slide and slide.collect applies))', FALSE, 0);
$this->registerArgument('slideCollectReverse', 'boolean', 'Normally when collecting content elements the elements from the actual page get shown on the top and those from the parent pages below those. You can invert this behaviour (actual page elements at bottom) by setting this flag))', FALSE, 0);
$this->registerArgument('loadRegister', 'array', 'List of LOAD_REGISTER variable');
$this->registerArgument('render', 'boolean', 'Optional returning variable as original table rows', FALSE, TRUE);
Expand Down Expand Up @@ -130,8 +129,6 @@ protected function getContentRecords($limit = NULL, $order = NULL) {
}

$slide = intval($this->arguments['slide']);
$slideCollect = intval($this->arguments['slideCollect']);
$slide = min($slide, $slideCollect);
$slideCollectReverse = (boolean) $this->arguments['slideCollectReverse'];

$rootLine = NULL;
Expand Down Expand Up @@ -176,9 +173,6 @@ protected function getContentRecords($limit = NULL, $order = NULL) {
} else {
$content = $rows;
}
if (0 !== count($content) && 0 === $slideCollect) {
break;
}
} while (--$slide !== -1);

if (TRUE === $loadRegister) {
Expand Down

0 comments on commit 40cbc87

Please sign in to comment.