‪TYPO3CMS  ‪main
UpdateBitmaskOnFieldChange.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 
23 class ‪UpdateBitmaskOnFieldChange implements OnFieldChangeInterface
24 {
25  protected int ‪$position;
26  protected int ‪$total;
27  protected bool ‪$invert;
28  protected string ‪$elementName;
29 
30  public function ‪__construct(int ‪$position, int ‪$total, bool ‪$invert, string ‪$elementName)
31  {
32  $this->position = ‪$position;
33  $this->total = ‪$total;
34  $this->invert = ‪$invert;
35  $this->elementName = ‪$elementName;
36  }
37 
38  public function ‪toArray(): array
39  {
40  return [
41  'name' => 'typo3-backend-form-update-bitmask',
42  'data' => [
43  'position' => ‪$this->position,
44  'total' => ‪$this->total,
45  'invert' => ‪$this->invert,
46  'elementName' => ‪$this->elementName,
47  ],
48  ];
49  }
50 }
‪TYPO3\CMS\Backend\Form\Behavior
Definition: OnFieldChangeInterface.php:18
‪TYPO3\CMS\Backend\Form\Behavior\UpdateBitmaskOnFieldChange\$position
‪int $position
Definition: UpdateBitmaskOnFieldChange.php:25
‪TYPO3\CMS\Backend\Form\Behavior\UpdateBitmaskOnFieldChange\toArray
‪toArray()
Definition: UpdateBitmaskOnFieldChange.php:38
‪TYPO3\CMS\Backend\Form\Behavior\UpdateBitmaskOnFieldChange
Definition: UpdateBitmaskOnFieldChange.php:24
‪TYPO3\CMS\Backend\Form\Behavior\UpdateBitmaskOnFieldChange\$invert
‪bool $invert
Definition: UpdateBitmaskOnFieldChange.php:27
‪TYPO3\CMS\Backend\Form\Behavior\UpdateBitmaskOnFieldChange\$elementName
‪string $elementName
Definition: UpdateBitmaskOnFieldChange.php:28
‪TYPO3\CMS\Backend\Form\Behavior\UpdateBitmaskOnFieldChange\$total
‪int $total
Definition: UpdateBitmaskOnFieldChange.php:26
‪TYPO3\CMS\Backend\Form\Behavior\UpdateBitmaskOnFieldChange\__construct
‪__construct(int $position, int $total, bool $invert, string $elementName)
Definition: UpdateBitmaskOnFieldChange.php:30