PHP 클래스 PartKeepr\SetupBundle\Services\ManufacturerSetupService

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

공개 메소드들

메소드 설명
__construct ( EntityManager $entityManager, UploadedFileService $uploadedFileService, Symfony\Component\HttpKernel\KernelInterface $kernel )
importManufacturers ( ) : array Imports manufacturers.

보호된 메소드들

메소드 설명
createManufacturer ( $manufacturerName, $manufacturerData )
manufacturerExists ( string $name ) : true Checks if the specified manufacturer exists.

메소드 상세

__construct() 공개 메소드

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

createManufacturer() 보호된 메소드

protected createManufacturer ( $manufacturerName, $manufacturerData )

importManufacturers() 공개 메소드

Imports manufacturers.
public importManufacturers ( ) : array
리턴 array An array with the keys "skipped" and "imported" which contain the number of manufacturers skipped and imported

manufacturerExists() 보호된 메소드

Checks if the specified manufacturer exists.
protected manufacturerExists ( string $name ) : true
$name string The manufacturer name
리턴 true if the manufacturer exists, false otherwise