| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class NewRecordPageTreeView extends PageTreeView |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | protected $currentPageId; |
||
| 29 | |||
| 30 | public function __construct(int $currentPageId) |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Determines whether to expand a branch or not. |
||
| 38 | * Here the branch is expanded if the current id matches the global id for the listing/new |
||
| 39 | * |
||
| 40 | * @param int $id The ID (page id) of the element |
||
| 41 | * @return bool Returns TRUE if the IDs matches |
||
| 42 | */ |
||
| 43 | public function expandNext($id) |
||
| 48 |