PHP 클래스 Sulu\Component\Persistence\EventSubscriber\ORM\TimestampableSubscriber

상속: implements Doctrine\Common\EventSubscriber
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
getSubscribedEvents ( )
loadClassMetadata ( Doctrine\Common\Persistence\Event\LoadClassMetadataEventArgs $event ) Load the class data, mapping the created and changed fields to datetime fields.
prePersist ( Doctrine\Common\Persistence\Event\LifecycleEventArgs $event ) Set the timestamps before creation.
preUpdate ( Doctrine\Common\Persistence\Event\LifecycleEventArgs $event ) Set the timestamps before update.

비공개 메소드들

메소드 설명
handleTimestamp ( Doctrine\Common\Persistence\Event\LifecycleEventArgs $event ) Set the timestamps. If created is NULL then set it. Always set the changed field.

메소드 상세

getSubscribedEvents() 공개 메소드

public getSubscribedEvents ( )

loadClassMetadata() 공개 메소드

Load the class data, mapping the created and changed fields to datetime fields.
public loadClassMetadata ( Doctrine\Common\Persistence\Event\LoadClassMetadataEventArgs $event )
$event Doctrine\Common\Persistence\Event\LoadClassMetadataEventArgs

prePersist() 공개 메소드

Set the timestamps before creation.
public prePersist ( Doctrine\Common\Persistence\Event\LifecycleEventArgs $event )
$event Doctrine\Common\Persistence\Event\LifecycleEventArgs

preUpdate() 공개 메소드

Set the timestamps before update.
public preUpdate ( Doctrine\Common\Persistence\Event\LifecycleEventArgs $event )
$event Doctrine\Common\Persistence\Event\LifecycleEventArgs