Symbiote\FrontendObjects\Page\ObjectCreatorPage
A page type that lets users create other data objects from the frontend of their website.
- Author: marcus@silverstripe.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class ObjectCreatorPage
extends Page
{
- // members
- private static string $table_name = 'ObjectCreatorPage';
- private static array $createable_types = ;
- private static array $db = ;
- private static array $has_one = ;
- private static array $defaults = ;
- private static string $icon = 'frontend-objects/images/objectcreatorpage.png';
- private static array $parent_map = ;
- protected $_cache_review_items = NULL;
- // methods
- public void allSubtypes()
- public void allAvailableTypes()
- public void getCMSFields()
- public void onBeforeWrite()
- public void onChangeRestrictCreationToItems()
- public void ParentMap()
- public void RestrictCreationToItems()
- public void LinkReview()
- public void ReviewItems()
- public ArrayList ReviewItemsViewable()
- public ArrayList ReviewItemsEditable()
- public bool useObjectExistsHandling()
- public bool|null canReview()
Hierarchy
Extends
- Page
Members
private
- $createable_types
- $db
- $defaults
- $has_one
- $icon
- $parent_map
—
array
A mapping between object create type and the type of parent that it should be created under (if applicable) - $table_name
protected
-
$_cache_review_items
Returns all viewable and editable items that are waiting to be approved.
Methods
public
- LinkReview() — Return link for the review listing page
- ParentMap()
- RestrictCreationToItems()
- ReviewItems()
- ReviewItemsEditable() — Items the user the user can review and approve
- ReviewItemsViewable() — Items the user may have previously reviewed but are no longer editable by them.
- allAvailableTypes()
- allSubtypes()
- canReview() — Check whether the member can review submissions or not
- getCMSFields()
- onBeforeWrite()
- onChangeRestrictCreationToItems()
- useObjectExistsHandling() — checks to see if the object being created has the objectExists() method which is needed to check for existing object