\ExternalContentAdmin
Backend administration pages for the external content module
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
- License: BSD License http://silverstripe.org/bsd-license
Synopsis
class ExternalContentAdmin
extends LeftAndMain
implements
CurrentPageIdentifier,PermissionProvider
{
- // constants
- const URL_STUB = 'extadmin';
- // members
- public static string $directory = 'external-content';
- private static string $url_segment = 'external-content';
- private static string $url_rule = '$Action//$ID';
- private static string $menu_title = 'External Content';
- private static string $tree_class = 'ExternalContentSource';
- private static array $allowed_actions = ;
- // methods
- public void init()
- public void pageStatus()
- public number getCurrentPageID()
- public void currentPageID()
- public DataObject currentPage()
- public static boolean isValidId()
- public void migrate()
- public Dataobject getRecord()
- public void EditForm()
- public void getEditForm()
- public Form AddForm()
- public unknown_type addprovider()
- public Form DeleteItemsForm()
- public void deleteprovider()
- public void getCMSTreeTitle()
- public void LinkTreeView()
- public String treeview()
- public void SiteTreeAsUL()
- public void getsubtree()
- public String generatePageIconsCss()
- public void save()
- public void delete()
- public String updateSources()
- public void updatetreenodes()
Hierarchy
Extends
- LeftAndMain
Implements
- CurrentPageIdentifier
- PermissionProvider
Constants
Name | Value |
---|---|
URL_STUB | 'extadmin' |
Members
private
- $allowed_actions
- $tree_class
- $url_rule
- $url_segment
—
string
URL segment used by the backend
public
-
$directory
The directory that the module is assuming it's installed in to.
Methods
public
- AddForm() — Get the form used to create a new provider
- DeleteItemsForm() — Copied from AssetAdmin...
- EditForm() — Return the edit form
- LinkTreeView()
- SiteTreeAsUL()
- addprovider() — Add a new provider (triggered by the ExternalContentAdmin_left template)
- currentPage() — Custom currentPage() method to handle opening the 'root' folder
- currentPageID()
- delete() — Delete the content source/item.
- deleteprovider() — Delete a folder
- generatePageIconsCss() — Include CSS for page icons. We're not using the JSTree 'types' option because it causes too much performance overhead just to add some icons.
- getCMSTreeTitle()
- getCurrentPageID() — If there's no ExternalContentSource ID available from Session or Request data then instead of LeftAndMain::currentPageID() returning just `null`, "extend" its range to use the first sub-class of {@link ExternalContentSource} the system can find, either via config or introspection.
- getEditForm() — Return the form for editing
- getRecord() — Return the record corresponding to the given ID.
- getsubtree() — Get a subtree underneath the request param 'ID'.
- init()
- isValidId() — Is the passed in ID a valid format?
- migrate() — Action to migrate a selected object through to SS
- pageStatus() — Overridden to properly output a value and end, instead of letting further headers (X-Javascript-Include) be output
- save() — Save the content source/item.
- treeview()
- updateSources() — Retrieve the updated source list, used in an AJAX request to update the current view.
- updatetreenodes()