PHP 클래스 PartKeepr\SetupBundle\Services\FootprintSetupService

파일 보기 프로젝트 열기: partkeepr/PartKeepr

공개 메소드들

메소드 설명
__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