SilverStripe\ContentReview\Extensions\SiteTreeContentReview
Set dates at which content needs to be reviewed and provide a report and emails to alert to content needing review.
Synopsis
class SiteTreeContentReview
extends DataExtension
implements
PermissionProvider
{
- // members
- private static array $db = ;
- private static array $defaults = ;
- private static array $has_many = ;
- private static array $belongs_many_many = ;
- private static array $schedule = ;
- // methods
- public static array get_schedule()
- public static ArrayList merge_owners()
- public void updateCMSActions()
- public bool|DBDate getReviewDate()
- public bool|DataObject getOptions()
- public string getOwnerNames()
- public null|string getEditorName()
- public ArrayList ContentReviewOwners()
- public ManyManyList OwnerGroups()
- public ManyManyList OwnerUsers()
- public void updateSettingsFields()
- public void addReviewNote()
- public bool advanceReviewDate()
- public bool canBeReviewedBy()
- public void onBeforeWrite()
- private void setDefaultReviewDateForDisabled()
- protected void setDefaultReviewDateForCustom()
- protected void setDefaultReviewDateForInherited()
- public array providePermissions()
- public void requireDefaultRecords()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Implements
- SilverStripe\Security\PermissionProvider
Members
private
- $belongs_many_many — array
- $db — array
- $defaults — array
- $has_many — array
- $schedule — array
Methods
private
protected
public
- ContentReviewOwners() — Get all Members that are Content Owners to this page. This includes checking group hierarchy and adding any direct users.
- OwnerGroups()
- OwnerUsers()
- addReviewNote() — Creates a ContentReviewLog and connects it to this Page.
- advanceReviewDate() — Advance review date to the next date based on review period or set it to null if there is no schedule. Returns true if date was required and false is content review is 'off'.
- canBeReviewedBy() — Check if a review is due by a member for this owner.
- getEditorName()
- getOptions() — Get the object that have the information about the content review settings. Either:
- getOwnerNames()
- getReviewDate() — Returns false if the content review have disabled.
- get_schedule()
- merge_owners() — Takes a list of groups and members and return a list of unique member.
- onBeforeWrite() — Set the review data from the review period, if set.
- providePermissions() — Provide permissions to the CMS.
- requireDefaultRecords() — If the queued jobs module is installed, queue up the first job for 9am tomorrow morning (by default).
- updateCMSActions()
- updateSettingsFields()