PHP 클래스 Bolt\Storage\EventProcessor\TimedRecord

저자: Gawain Lynch ([email protected])
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cache Doctrine\Common\Cache\CacheProvider
$contentTypeNames array
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$em Bolt\Storage\EntityManagerInterface
$interval integer
$systemLogger Psr\Log\LoggerInterface

공개 메소드들

메소드 설명
__construct ( array $contentTypeNames, Bolt\Storage\EntityManagerInterface $em, CacheProvider $cache, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Psr\Log\LoggerInterface $systemLogger, integer $interval ) Constructor.
holdExpiredRecords ( ) Check (and update) any records that need to be updated from "published" to "held".
isDueHold ( ) Get the timer for publishing timed records
isDuePublish ( ) Get the timer for publishing timed records
publishTimedRecords ( ) Check (and update) any records that need to be updated from "timed" to "published".

비공개 메소드들

메소드 설명
dispatch ( Content $content, string $type, string $legacyType ) Dispatch the update event.
getHoldQuery ( Doctrine\DBAL\Query\QueryBuilder $query ) Set the QueryBuilder where parameters.
getTimedPublishQuery ( Doctrine\DBAL\Query\QueryBuilder $query ) Set the QueryBuilder where parameters.
getTimedRecords ( ContentRepository $contentRepo, string $type ) : Content[] | false Set the QueryBuilder where parameters.
save ( ContentRepository $contentRepo, Content $content, string $type, string $legacyType ) Save a modified entity.
timedHandleRecords ( string $contentTypeName, string $type ) Handle any pending timed publish/hold transitions.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $contentTypeNames, Bolt\Storage\EntityManagerInterface $em, CacheProvider $cache, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Psr\Log\LoggerInterface $systemLogger, integer $interval )
$contentTypeNames array
$em Bolt\Storage\EntityManagerInterface
$cache Doctrine\Common\Cache\CacheProvider
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$systemLogger Psr\Log\LoggerInterface
$interval integer

holdExpiredRecords() 공개 메소드

Check (and update) any records that need to be updated from "published" to "held".
public holdExpiredRecords ( )

isDueHold() 공개 메소드

Get the timer for publishing timed records
public isDueHold ( )

isDuePublish() 공개 메소드

Get the timer for publishing timed records
public isDuePublish ( )

publishTimedRecords() 공개 메소드

Check (and update) any records that need to be updated from "timed" to "published".
public publishTimedRecords ( )

프로퍼티 상세

$cache 보호되어 있는 프로퍼티

protected CacheProvider,Doctrine\Common\Cache $cache
리턴 Doctrine\Common\Cache\CacheProvider

$contentTypeNames 보호되어 있는 프로퍼티

protected array $contentTypeNames
리턴 array

$dispatcher 보호되어 있는 프로퍼티

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $dispatcher
리턴 Symfony\Component\EventDispatcher\EventDispatcherInterface

$em 보호되어 있는 프로퍼티

protected EntityManagerInterface,Bolt\Storage $em
리턴 Bolt\Storage\EntityManagerInterface

$interval 보호되어 있는 프로퍼티

protected int $interval
리턴 integer

$systemLogger 보호되어 있는 프로퍼티

protected LoggerInterface,Psr\Log $systemLogger
리턴 Psr\Log\LoggerInterface