PHP 클래스 PartKeepr\PartBundle\Listeners\CategoryPathListener

상속: extends Symfony\Component\DependencyInjection\ContainerAware
파일 보기 프로젝트 열기: partkeepr/PartKeepr

공개 메소드들

메소드 설명
__construct ( Symfony\Component\DependencyInjection\Container $container )
onFlush ( Doctrine\ORM\Event\OnFlushEventArgs $eventArgs ) Updates the child category paths when their parent name has changed.
updateCategoryPaths ( PartCategory $partCategory, Doctrine\ORM\Event\OnFlushEventArgs $eventArgs ) Recursively updates the category paths.

메소드 상세

__construct() 공개 메소드

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

onFlush() 공개 메소드

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() 공개 메소드

Recursively updates the category paths.
public updateCategoryPaths ( PartCategory $partCategory, Doctrine\ORM\Event\OnFlushEventArgs $eventArgs )
$partCategory PartKeepr\PartBundle\Entity\PartCategory The footprint category to update
$eventArgs Doctrine\ORM\Event\OnFlushEventArgs