Class CMSMain
The main "content" area of the CMS. This class creates a 2-frame layout - left-tree and right-form - to sit beneath the main admin menu.
- Object
-
ViewableData
implements
IteratorAggregate
-
RequestHandler
-
Controller
-
LeftAndMain
-
CMSMain
implements
CurrentPageIdentifier,
PermissionProvider
Methods summary
public static
|
|
public
|
|
public
boolean
|
#
ShowSwitchView( )
If this is set to true, the "switchView" context in the template is shown, with links to the staging and publish site. |
public
array
|
#
SwitchView( mixed $page = null )
Overloads the LeftAndMain::ShowView. Allows to pass a page as a parameter, so we are able to switch view also for archived versions. |
public
string
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
#
SiteTreeFilterOptions( )
Returns the SiteTree columns that can be filtered using the the Site Tree Search button as a DataObjectSet |
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
deletefromlive( mixed $urlParams, mixed $form )
Delete the page from live. This means a page in draft mode might still exist. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
tellBrowserAboutPublicationChange( mixed $page, mixed $statusMessage )
Return a few pieces of information about a change to a page |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
createtranslation( )
Create a new translation from an existing item, switch to this language and reload the tree. |
public
|
#
providePermissions( )
Provide the permission codes used by LeftAndMain. Can't put it on LeftAndMain since that's an abstract base class. |
public
|
#
LangSelector( )
Returns all languages with languages already used appearing first. Called by the SSViewer when rendering the template. |
public
boolean
|
|
public
boolean
|
Methods inherited from LeftAndMain
ApplicationLink(),
CMSTopMenu(),
CMSVersion(),
CanOrganiseSitetree(),
EditForm(),
EditorToolbar(),
EmptyForm(),
ForceReload(),
Left(),
LoadingImage(),
LogoStyle(),
MainMenu(),
MceRoot(),
Member_ProfileForm(),
Right(),
SectionTitle(),
addTreeNodeJS(),
ajaxupdateparent(),
ajaxupdatesort(),
callPageMethod(),
canView(),
currentPage(),
currentPageID(),
deleteTreeNodeJS(),
deleteitems(),
getActionUpdateJS(),
getApplicationLogoText(),
getApplicationName(),
getLastFormIn(),
getSiteTreeFor(),
getTemplatesWithSuffix(),
getitem(),
getsubtree(),
isCurrentPage(),
menu_title_for_class(),
myprofile(),
printable(),
require_css(),
require_javascript(),
require_themed_css(),
returnItemToUser(),
save(),
setApplicationName(),
setCurrentPageID(),
setLogo(),
set_loading_image(),
show(),
versionFromVersionFile()
Methods inherited from Controller
CurrentMember(),
Now(),
PastMember(),
PastVisitor(),
can(),
curr(),
defaultAction(),
disableBasicAuth(),
getAction(),
getFormOwner(),
getRequest(),
getResponse(),
getSession(),
getURLParams(),
getViewer(),
handleAction(),
handleRequest(),
hasAction(),
hasActionTemplate(),
has_curr(),
isAjax(),
join_links(),
popCurrent(),
pushCurrent(),
redirect(),
redirectBack(),
redirectedTo(),
render(),
setSession(),
setURLParams()
Methods inherited from RequestHandler
__construct(),
allowedActions(),
checkAccessAction(),
httpError()
Methods inherited from ViewableData
ATT_val(),
BaseHref(),
CSSClasses(),
ColumnBreak(),
ColumnCalc(),
ColumnNumber(),
ColumnPad(),
ColumnPos(),
CurrentPage(),
Debug(),
Even(),
EvenOdd(),
First(),
FirstLast(),
HasPerm(),
IsAjax(),
JS_val(),
Last(),
Me(),
Middle(),
MiddleString(),
Modulus(),
MultipleOf(),
Odd(),
Pos(),
RAW_val(),
SQL_val(),
ThemeDir(),
ThemeName(),
Top(),
TotalItems(),
XML_val(),
__get(),
__isset(),
__set(),
buildCastingCache(),
cachedCall(),
castingClass(),
castingHelper(),
castingHelperPair(),
castingObjectCreator(),
castingObjectCreatorPair(),
customise(),
defineMethods(),
escapeTypeForField(),
getField(),
getIterator(),
getSecurityID(),
getXMLValues(),
hasField(),
hasValue(),
i18nLocale(),
iteratorProperties(),
obj(),
renderWith(),
setCustomisedObj(),
setField()
Methods inherited from Object
__call(),
__toString(),
__wakeup(),
addMethodsFrom(),
addStaticVars(),
addWrapperMethod(),
add_extension(),
add_static_var(),
allMethodNames(),
cacheToFile(),
cacheToFileWithArgs(),
clearCache(),
combined_static(),
create(),
createMethod(),
create_from_string(),
exists(),
extInstance(),
extend(),
getCustomClass(),
getExtensionInstance(),
getExtensionInstances(),
get_extensions(),
get_static(),
hasExtension(),
hasMethod(),
has_extension(),
invokeWithExtensions(),
is_a(),
loadCache(),
parentClass(),
parse_class_spec(),
remove_extension(),
sanitiseCachename(),
saveCache(),
set_stat(),
set_static(),
set_uninherited(),
stat(),
strong_create(),
uninherited(),
uninherited_static(),
useCustomClass()
Magic methods summary
Properties summary
public static
string
|
$url_segment | |
public static
string
|
$url_rule | |
public static
integer
|
$url_priority | |
public static
string
|
$menu_title | |
public static
integer
|
$menu_priority | |
public static
string
|
$tree_class | |
public static
string
|
$subitem_class | |
public static
array
|
$allowed_actions |
#
Define a list of action handling methods that are allowed to be called directly by URLs. The variable should be an array of action names. This sample shows the different values that it can contain: |
Properties inherited from LeftAndMain
$ForceReload,
$application_link,
$application_logo,
$application_logo_style,
$application_logo_text,
$application_name,
$extra_requirements,
$loading_image,
$url_base
Properties inherited from Controller
$action,
$baseInitCalled,
$basicAuthEnabled,
$controller_stack,
$request,
$requestParams,
$response,
$session,
$urlParams,
$url_handlers
Properties inherited from RequestHandler
Properties inherited from ViewableData
$casting,
$customisedObject,
$default_cast,
$failover,
$iteratorPos,
$iteratorTotalItems