PHP Класс Shopware\DataGenerator\Resources\Categories

Наследование: extends Shopware\DataGenerator\Resources\BaseResource
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$categoriesFlat The array with the categories that are going to be created

Защищенные свойства (Protected)

Свойство Тип Описание
$categoriesSum The number of categories which have been created Used in order to not create too many categories
$tables array
$total

Открытые методы

Метод Описание
create ( Shopware\DataGenerator\Writer\WriterInterface $writer )
getUniqueId ( $type )

Приватные методы

Метод Описание
buildNestedTree ( integer $number, integer | null $parentCategory = null, integer $depth, array | null $leftNeighbour = null ) : array
buildPath ( $id ) : array Builds path for the given category

Описание методов

create() публичный Метод

public create ( Shopware\DataGenerator\Writer\WriterInterface $writer )
$writer Shopware\DataGenerator\Writer\WriterInterface

getUniqueId() публичный Метод

public getUniqueId ( $type )

Описание свойств

$categoriesFlat публичное свойство

The array with the categories that are going to be created
public $categoriesFlat

$categoriesSum защищенное свойство

The number of categories which have been created Used in order to not create too many categories
protected $categoriesSum

$tables защищенное свойство

protected array $tables
Результат array

$total защищенное свойство

protected $total