‪TYPO3CMS  10.4
CreateIndexDefinitionItem.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 
24 {
28  public ‪$indexName = '';
29 
35  public ‪$isPrimary = false;
36 
42  public ‪$isUnique = false;
43 
49  public ‪$isFulltext = false;
50 
56  public ‪$isSpatial = false;
57 
63  public ‪$indexType = '';
64 
70  public ‪$name = '';
71 
75  public ‪$columnNames = [];
76 
82  public ‪$options = [];
83 
93  public function ‪__construct(
95  bool ‪$isPrimary = false,
96  bool ‪$isUnique = false,
97  bool ‪$isSpatial = false,
98  bool ‪$isFulltext = false
99  ) {
100  $this->‪indexName = ‪$indexName;
101  $this->isPrimary = ‪$isPrimary;
102  $this->isUnique = ‪$isUnique;
103  $this->isSpatial = ‪$isSpatial;
104  $this->isFulltext = ‪$isFulltext;
105  }
106 }
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\Identifier
Definition: Identifier.php:25
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$isFulltext
‪bool $isFulltext
Definition: CreateIndexDefinitionItem.php:45
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$options
‪array $options
Definition: CreateIndexDefinitionItem.php:73
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem
Definition: CreateIndexDefinitionItem.php:24
‪TYPO3\CMS\Core\Database\Schema\Parser\AST
Definition: AbstractCreateDefinitionItem.php:18
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$isSpatial
‪bool $isSpatial
Definition: CreateIndexDefinitionItem.php:51
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$name
‪string $name
Definition: CreateIndexDefinitionItem.php:63
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$indexType
‪string $indexType
Definition: CreateIndexDefinitionItem.php:57
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$isPrimary
‪bool $isPrimary
Definition: CreateIndexDefinitionItem.php:33
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$columnNames
‪IndexColumnName[] $columnNames
Definition: CreateIndexDefinitionItem.php:67
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\IndexColumnName
Definition: IndexColumnName.php:26
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\AbstractCreateDefinitionItem
Definition: AbstractCreateDefinitionItem.php:25
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$isUnique
‪bool $isUnique
Definition: CreateIndexDefinitionItem.php:39
‪TYPO3\CMS\Core\Database\Schema\Parser\Parser\indexName
‪AST Identifier indexName()
Definition: Parser.php:611
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\__construct
‪__construct(Identifier $indexName=null, bool $isPrimary=false, bool $isUnique=false, bool $isSpatial=false, bool $isFulltext=false)
Definition: CreateIndexDefinitionItem.php:84
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$indexName
‪string $indexName
Definition: CreateIndexDefinitionItem.php:27