PHP Class PartKeepr\SetupBundle\Services\ManufacturerSetupService

Mostrar archivo Open project: partkeepr/PartKeepr

Public Methods

Method Description
__construct ( EntityManager $entityManager, UploadedFileService $uploadedFileService, Symfony\Component\HttpKernel\KernelInterface $kernel )
importManufacturers ( ) : array Imports manufacturers.

Protected Methods

Method Description
createManufacturer ( $manufacturerName, $manufacturerData )
manufacturerExists ( string $name ) : true Checks if the specified manufacturer exists.

Method Details

__construct() public method

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 method

protected createManufacturer ( $manufacturerName, $manufacturerData )

importManufacturers() public method

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

manufacturerExists() protected method

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