\WorkflowEmbargoExpiryExtension
Adds embargo period and expiry dates to content items
- Author: marcus@silverstripe.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class WorkflowEmbargoExpiryExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $dependencies = ;
- public static boolean $showTimePicker = true;
- private Is $isPublishJobRunning = false;
- public WorkflowService $workflowService;
- public Is $isWorkflowInEffect = false;
- public static array $extendedMethodReturn = ;
- // methods
- public void updateCMSFields()
- public void onBeforeWrite()
- public void getIntroMessageParts()
- public void getIntroMessage()
- public void getCMSValidator()
- public array extendedRequiredFieldsCheckEmbargoDates()
- public void getUserDate()
- public void setIsWorkflowInEffect()
- public boolean getIsWorkflowInEffect()
- public void setIsPublishJobRunning()
- public boolean getIsPublishJobRunning()
Hierarchy
Extends
- DataExtension
Tasks
Line | Task |
---|---|
300+ | check this is relevant in this embargoexpiry only version of advanced workflow |
Members
private
- $db
- $dependencies
- $has_one
- $isPublishJobRunning — Is
public
- $extendedMethodReturn — array
- $isWorkflowInEffect — Is
- $showTimePicker
- $workflowService — WorkflowService
Methods
public
- extendedRequiredFieldsCheckEmbargoDates() — Uses AWRequiredFields to peform validation at the DataExtension level.
- getCMSValidator()
- getIntroMessage()
- getIntroMessageParts()
- getIsPublishJobRunning()
- getIsWorkflowInEffect() — Check if a workflow is in effect
- getUserDate()
- onBeforeWrite() — Event handler called before writing to the database, overloaded from parent to manage the PublishJob properties of the owner item.
- setIsPublishJobRunning() — This is set to true when {@link ProcessJobQueueTask} is running
- setIsWorkflowInEffect()
- updateCMSFields()