\WebAppConfig
AppConfig.
- Author: Bram de Leeuw
Synopsis
class WebAppConfig
extends DataObject
implements
PermissionProvider
{
- // methods
- public void getCMSFields()
- public void onBeforeWrite()
- public Fieldset getCMSActions()
- public String CMSEditLink()
- public static SiteConfig current_site_config()
- public void requireDefaultRecords()
- public static SiteConfig make_site_config()
- public boolean canView()
- public boolean canEdit()
- public void providePermissions()
- public boolean canCreateTopLevel()
Hierarchy
Extends
- DataObject
Implements
- PermissionProvider
Members
private
- $db
- $has_many
Methods
public
- CMSEditLink()
- canCreateTopLevel() — Can a user create pages in the root of this site?
- canEdit() — Can a user edit pages on this site? This method is only called if a page is set to Inherit, but there is nothing to inherit from.
- canView() — Can a user view pages on this site? This method is only called if a page is set to Inherit, but there is nothing to inherit from.
- current_site_config() — Get the current sites SiteConfig, and creates a new one through {@link make_site_config()} if none is found.
- getCMSActions() — The code from here on out is copied from the SiteConfig and is written by
- getCMSFields()
- make_site_config() — Create SiteConfig with defaults from language file.
- onBeforeWrite()
- providePermissions()
- requireDefaultRecords() — Setup a default SiteConfig record if none exists