Свойство | Тип | Описание | |
---|---|---|---|
$cache | |||
$contentTypeNames | array | ||
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
$em | Bolt\Storage\EntityManagerInterface | ||
$interval | integer | ||
$systemLogger | Psr\Log\LoggerInterface |
Метод | Описание | |
---|---|---|
__construct ( array $contentTypeNames, Bolt\Storage\EntityManagerInterface $em, |
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 ( |
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 ( |
Set the QueryBuilder where parameters. | |
save ( |
Save a modified entity. | |
timedHandleRecords ( string $contentTypeName, string $type ) | Handle any pending timed publish/hold transitions. |
public __construct ( array $contentTypeNames, Bolt\Storage\EntityManagerInterface $em, |
||
$contentTypeNames | array | |
$em | Bolt\Storage\EntityManagerInterface | |
$cache | ||
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | |
$systemLogger | Psr\Log\LoggerInterface | |
$interval | integer |
public holdExpiredRecords ( ) |
public publishTimedRecords ( ) |
protected CacheProvider,Doctrine\Common\Cache $cache | ||
Результат |
protected EventDispatcherInterface,Symfony\Component\EventDispatcher $dispatcher | ||
Результат | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected EntityManagerInterface,Bolt\Storage $em | ||
Результат | Bolt\Storage\EntityManagerInterface |