Свойство | Type | Description | |
---|---|---|---|
$cache | |||
$contentTypeNames | array | ||
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
$em | Bolt\Storage\EntityManagerInterface | ||
$interval | integer | ||
$systemLogger | Psr\Log\LoggerInterface |
Méthode | Description | |
---|---|---|
__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". |
Méthode | Description | |
---|---|---|
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 | ||
Résultat |
protected EventDispatcherInterface,Symfony\Component\EventDispatcher $dispatcher | ||
Résultat | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected EntityManagerInterface,Bolt\Storage $em | ||
Résultat | Bolt\Storage\EntityManagerInterface |