PHP Класс PartKeepr\SetupBundle\Services\FootprintSetupService

Показать файл Открыть проект

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

Метод Описание
__construct ( EntityManager $entityManager, CategoryService $categoryService, UploadedFileService $uploadedFileService, Symfony\Component\HttpKernel\KernelInterface $kernel )
importFootprints ( ) : array Imports the existing footprints. Skips existing footprints.

Защищенные методы

Метод Описание
addFootprintCategoryPath ( array $path, FootprintCategory $parentNode ) : FootprintCategory Creates a node structure for the given path.
createFootprint ( $footprintName, $footprintData )
footprintExists ( string $name ) : boolean Checks if the specified footprint exists.

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

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

public __construct ( EntityManager $entityManager, CategoryService $categoryService, UploadedFileService $uploadedFileService, Symfony\Component\HttpKernel\KernelInterface $kernel )
$entityManager Doctrine\ORM\EntityManager
$categoryService PartKeepr\CategoryBundle\Services\CategoryService
$uploadedFileService PartKeepr\UploadedFileBundle\Services\UploadedFileService
$kernel Symfony\Component\HttpKernel\KernelInterface

addFootprintCategoryPath() защищенный Метод

Creates a node structure for the given path.
protected addFootprintCategoryPath ( array $path, FootprintCategory $parentNode ) : FootprintCategory
$path array array The components of the path
$parentNode PartKeepr\FootprintBundle\Entity\FootprintCategory FootprintCategory The parent node
Результат PartKeepr\FootprintBundle\Entity\FootprintCategory

createFootprint() защищенный Метод

protected createFootprint ( $footprintName, $footprintData )

footprintExists() защищенный Метод

Checks if the specified footprint exists.
protected footprintExists ( string $name ) : boolean
$name string The footprint name
Результат boolean true if the footprints exists, false otherwise

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

Imports the existing footprints. Skips existing footprints.
public importFootprints ( ) : array
Результат array An array with the keys "skipped" and "imported" which contain the number of footprints skipped and imported