PHP Class PartKeepr\SetupBundle\Services\ManufacturerSetupService

Afficher le fichier Open project: partkeepr/PartKeepr

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

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 méthode

protected createManufacturer ( $manufacturerName, $manufacturerData )

importManufacturers() public méthode

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

manufacturerExists() protected méthode

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