PHP Class PartKeepr\StorageLocationBundle\Listeners\CategoryPathListener

Inheritance: extends Symfony\Component\DependencyInjection\ContainerAware
Show file Open project: partkeepr/PartKeepr

Public Methods

Method Description
__construct ( Symfony\Component\DependencyInjection\Container $container )
onFlush ( Doctrine\ORM\Event\OnFlushEventArgs $eventArgs ) Updates the child category paths when their parent name has changed.
updateCategoryPaths ( StorageLocationCategory $storageLocationCategory, Doctrine\ORM\Event\OnFlushEventArgs $eventArgs ) Recursively updates the category paths.

Method Details

__construct() public method

public __construct ( Symfony\Component\DependencyInjection\Container $container )
$container Symfony\Component\DependencyInjection\Container

onFlush() public method

Updates the child category paths when their parent name has changed.
public onFlush ( Doctrine\ORM\Event\OnFlushEventArgs $eventArgs )
$eventArgs Doctrine\ORM\Event\OnFlushEventArgs The event arguments as given by Doctrine

updateCategoryPaths() public method

Recursively updates the category paths.
public updateCategoryPaths ( StorageLocationCategory $storageLocationCategory, Doctrine\ORM\Event\OnFlushEventArgs $eventArgs )
$storageLocationCategory PartKeepr\StorageLocationBundle\Entity\StorageLocationCategory The storage location category to update
$eventArgs Doctrine\ORM\Event\OnFlushEventArgs