SilverStripe\ContentReview\Extensions\ContentReviewDefaultSettings
This extensions add a default schema for new pages and pages without a content review setting.
Synopsis
class ContentReviewDefaultSettings
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $defaults = ;
- private static array $many_many = ;
- private static string $content_review_template = 'SilverStripe\\ContentReview\\ContentReviewEmail';
- // methods
- public string getOwnerNames()
- public ManyManyList OwnerGroups()
- public ManyManyList OwnerUsers()
- public void updateCMSFields()
- public ArrayList ContentReviewOwners()
- public string getReviewBody()
- public string getReviewSubject()
- public string getReviewFrom()
- protected string getWithDefault()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $content_review_template
—
string
Template to use for content review emails. - $db — array
- $defaults — array
- $many_many — array
Methods
protected
- getWithDefault() — Get the value of a user-configured field, falling back to the default if left blank.
public
- ContentReviewOwners() — Get all Members that are default Content Owners. This includes checking group hierarchy and adding any direct users.
- OwnerGroups()
- OwnerUsers()
- getOwnerNames()
- getReviewBody() — Get the review body, falling back to the default if left blank.
- getReviewFrom() — Get the "from" field for review emails.
- getReviewSubject() — Get the review subject line, falling back to the default if left blank.
- updateCMSFields()