‪TYPO3CMS  ‪main
GridRow.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
31 {
35  protected array ‪$columns = [];
36 
37  public function ‪addColumn(‪GridColumn $column): void
38  {
39  $this->columns[$column->‪getColumnNumber()] = $column;
40  }
41 
45  public function ‪getColumns(): iterable
46  {
47  return ‪$this->columns;
48  }
49 }
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject
Definition: AbstractGridObject.php:40
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\GridRow
Definition: GridRow.php:31
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\GridRow\getColumns
‪GridColumn[] getColumns()
Definition: GridRow.php:45
‪TYPO3\CMS\Backend\View\BackendLayout\Grid
Definition: AbstractGridObject.php:18
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumn
Definition: GridColumn.php:44
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\GridRow\addColumn
‪addColumn(GridColumn $column)
Definition: GridRow.php:37
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\GridRow\$columns
‪array $columns
Definition: GridRow.php:35
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumn\getColumnNumber
‪getColumnNumber()
Definition: GridColumn.php:100