currentPageId !== null) { return (int)$id === $this->currentPageId; } return true; } /** * Generate the plus/minus icon for the browsable tree. * In this case, there is no plus-minus icon displayed. * * @param array $row Record for the entry * @param int $a The current entry number * @param int $c The total number of entries. If equal to $a, a 'bottom' element is returned. * @param int $nextCount The number of sub-elements to the current element. * @param bool $isOpen The element was expanded to render subelements if this flag is set. * @return string Image tag with the plus/minus icon. * @see AbstractTreeView::PMicon() */ protected function PMicon($row, $a, $c, $nextCount, $isOpen) { return ''; } public function setCurrentPageId(int $currentPageId): void { $this->currentPageId = $currentPageId; } }