\ContentModuleSettingsController
Synopsis
class ContentModuleSettingsController
extends ContentModuleMain
{
- // members
- private static string $url_segment = 'content-modules/settings';
- private static string $url_rule = '/$Action/$ID/$OtherID';
- private static integer $url_priority = 42;
- private static string $required_permission_codes = 'CMS_ACCESS_ContentModule';
- private static string $session_namespace = 'CMSMain';
- // methods
- public void getEditForm()
- // Inherited methods from ContentModuleMain
- public void init()
- public void index()
- public void getResponseNegotiator()
- public boolean ShowSwitchView()
- public void SwitchView()
- public string Link()
- public void LinkModules()
- public void LinkModulesWithSearch()
- public void LinkModuleEdit()
- public void LinkModuleSettings()
- public void LinkModuleHistory()
- protected void LinkWithSearch()
- public void LinkModuleAdd()
- public string LinkPreview()
- public Form SearchForm()
- protected array getModuleTypes()
- public void doSearch()
- public ArrayList Breadcrumbs()
- public SS_List ModuleTypesList()
- public void getRecord()
- public Form getEditForm()
- public void listview()
- public SS_List getList()
- public void getModulesGridField()
- public void getModuleTypesGridField()
- public void ListViewForm()
- public void save()
- public void getNewItem()
- public void deletefromlive()
- public void performPublish()
- public void canView()
- public void revert()
- public void delete()
- public void publish()
- public void unpublish()
- public array rollback()
- public html doRollback()
- public void batchactions()
- public void BatchActionParameters()
- public void BatchActionList()
- public void buildbrokenlinks()
- public void publishall()
- public void restore()
- public void duplicate()
- public void duplicatewithchildren()
- public string CMSVersion()
- public void providePermissions()
- public SS_List ModuleTypes()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
488 | Duplicate record fetching (see parent implementation) |
768 | Can't merge $FormAttributes in template at the moment |
Members
private
- $required_permission_codes
- $session_namespace
- $url_priority
- $url_rule
- $url_segment
Methods
public
Inherited from ContentModuleMain
protected
- LinkWithSearch()
- getModuleTypes() — Returns a sorted array suitable for a dropdown with moduletypes and their translated name
public
- BatchActionList() — Returns a list of batch actions
- BatchActionParameters()
- Breadcrumbs()
- CMSVersion() — Return the version number of this application.
- Link() — Override {@link LeftAndMain} Link to allow blank URL segment
- LinkModuleAdd()
- LinkModuleEdit()
- LinkModuleHistory()
- LinkModuleSettings()
- LinkModules()
- LinkModulesWithSearch()
- LinkPreview() — Disable this for now, need to get it working
- ListViewForm()
- ModuleTypes() — Populates an array of classes in the CMS which allows the user to change the page type.
- ModuleTypesList() — Populates an array of classes in the CMS which allows the user to change the page type.
- SearchForm() — Returns a Form for page searching for use in templates.
- ShowSwitchView() — If this is set to true, the "switchView" context in the template is shown, with links to the staging and publish site.
- SwitchView() — Overloads the LeftAndMain::ShowView. Allows to pass a page as a parameter, so we are able to switch view also for archived versions.
- batchactions() — Batch Actions Handler
- buildbrokenlinks()
- canView()
- delete() — Delete the current page from draft stage.
- deletefromlive() — Delete the page from live. This means a page in draft mode might still exist.
- doRollback() — Rolls a site back to a given version ID
- doSearch()
- duplicate()
- duplicatewithchildren()
- getEditForm()
- getList() — Returns the pages meet a certain criteria as {@see CMSSiteTreeFilter} or the subpages of a parent page defaulting to no filter and show all pages in first level.
- getModuleTypesGridField()
- getModulesGridField()
- getNewItem()
- getRecord() — Get a database record to be managed by the CMS.
- getResponseNegotiator()
- index()
- init()
- listview()
- performPublish() — Actually perform the publication step
- providePermissions()
- publish()
- publishall()
- restore() — Restore a completely deleted page from the SiteTree_versions table.
- revert() — Reverts a page by publishing it to live.
- rollback()
- save() — Save and Publish page handler
- unpublish()