Comments: on this page. Click to read or post your own.
LeftAndMain is the parent class of all the two-pane views in the CMS.
If you are wanting to add more areas to the CMS, you can do it by subclassing LeftAndMain.
This is essentially an abstract class which should be subclassed. See CMSMain for a good example.
Located in /cms/code/LeftAndMain.php (line 12)
Object | --ViewableData | --RequestHandlingData | --Controller | --LeftAndMain
| Class | Description |
|---|---|
| CommentAdmin | Comment administration system within the CMS |
| SecurityAdmin | Security section of the CMS |
| GenericDataAdmin | Provides a common interface for searching, viewing and editing DataObjects. |
| ReportAdmin | Reports section of the CMS. |
| AssetAdmin | AssetAdmin is the 'file store' section of the CMS. |
| CMSMain | The main "content" area of the CMS. |
| ModelAdmin | Generates a three-pane UI for editing model classes, with an automatically generated search panel, tabular results and edit forms. |
Set the application name, and the logo text.
The application logo path. Customisable by calling LeftAndMain::setLogo() - the first parameter.
The application logo style. Customisable by calling LeftAndMain::setLogo() - the second parameter.
The application logo text. Customisable by calling LeftAndMain::setApplicationName() - the second parameter.
The application name. Customisable by calling LeftAndMain::setApplicationName() - the first parameter.
Register additional requirements through the class.
Used mainly to work around the missing "lazy loading" functionality for getting css/javascript required after an ajax-call (e.g. loading the editform).
Default menu items for the core cms functionality, set in cms/_config.php.
Inherited from Controller
Controller::$action
Controller::$baseInitCalled
Controller::$basicAuthEnabled
Controller::$controller_stack
Controller::$request
Controller::$requestParams
Controller::$response
Controller::$session
Controller::$urlParams
Controller::$url_handlers
Inherited from ViewableData
ViewableData::$casting
ViewableData::$castingHelperPair_cache
ViewableData::$customisedObj
ViewableData::$failover
ViewableData::$iteratorPos
ViewableData::$iteratorTotalItems
ViewableData::$namedAs
ViewableData::$parent
ViewableData::$_natural_cache
ViewableData::$_object_cache
ViewableData::$_xml_cache
Inherited from Object
Object::$builtInMethods
Object::$class
Object::$classConstructed
Object::$extensions
Object::$extension_instances
Object::$extraMethods
Object::$extraStatics
Object::$statics
Object::$static_cached
Add a navigation item to the main administration menu showing in the top bar.
Clears the entire menu
Sets a static variable on this class which means the panel will be reloaded.
Get a single menu item by its code value.
Get all menu entries.
Generate the default entries for the CMS main menu.
Removes an existing item from the menu.
Replace a navigation item to the main administration menu showing in the top bar.
Register the given stylesheet file as required.
Register the given javascript file as required in the CMS.
Filenames should be relative to the base, eg, SAPPHIRE_DIR . '/javascript/loader.js'
Register the given "themeable stylesheet" as required.
Themeable stylesheets have globally unique names, just like templates and PHP files. Because of this, they can be replaced by similarly named CSS files in the theme directory.
Set the CMS application logo.
Set the image shown when the CMS is loading.
Return JavaScript code to generate a tree node for the given page, if visible
Ajax handler for updating the parent of a tree node
Ajax handler for updating the order of a number of tree nodes
$_GET[ID]: An array of node ids in the correct order $_GET[MovedNodeID]: The node that actually got moved
Use this as an action handler for custom CMS buttons.
Returns true if the current user can access the CMS
Returns true if the current user has administrative rights in the CMS
Return the version number of this application
Delete a number of items
Return JavaScript code to remove a tree node for the given page, if it exists.
Return the CMS's HTML-editor toolbar
Return a piece of javascript that will update the actions of the main form
Get the application logo text.
Get the application name.
Return a list of appropriate templates for this class, with the given suffix
You should implement a Link() function in your subclass of LeftAndMain, to point to the URL of that particular controller.
Returns the main menu of the CMS. This is also used by init() to work out which sections the user has access to.
Return the base directory of the tiny_mce codebase
Allows you to returns a new data object to the tree (subclass of sitetree) and updates the tree via javascript.
Save and Publish page handler
Return the title of the current section, as shown on the main menu
Inherited From Controller
Controller::AbsoluteLink()
Controller::can()
Controller::curr()
Controller::currentController()
Controller::CurrentMember()
Controller::defaultAction()
Controller::disableBasicAuth()
Controller::getAction()
Controller::getFormOwner()
Controller::getRequest()
Controller::getResponse()
Controller::getSession()
Controller::getURLParams()
Controller::getViewer()
Controller::handleAction()
Controller::handleRequest()
Controller::has_curr()
Controller::init()
Controller::isAjax()
Controller::join_links()
Controller::LinkTo()
Controller::Now()
Controller::PastMember()
Controller::PastVisitor()
Controller::popCurrent()
Controller::pushCurrent()
Controller::redirect()
Controller::redirectedTo()
Controller::render()
Controller::setSession()
Controller::setURLParams()
Inherited From RequestHandlingData
RequestHandlingData::checkAccessAction()
RequestHandlingData::getRequest()
RequestHandlingData::handleRequest()
RequestHandlingData::httpError()
Inherited From ViewableData
ViewableData::ATT_val()
ViewableData::BaseHref()
ViewableData::buildCastingHelperCache()
ViewableData::cachedCall()
ViewableData::castingHelper()
ViewableData::castingHelperPair()
ViewableData::castingObjectCreator()
ViewableData::castingObjectCreatorPair()
ViewableData::CSSClasses()
ViewableData::CurrentMember()
ViewableData::CurrentPage()
ViewableData::customise()
ViewableData::Debug()
ViewableData::defineMethods()
ViewableData::escapeTypeForField()
ViewableData::Even()
ViewableData::EvenOdd()
ViewableData::First()
ViewableData::FirstLast()
ViewableData::getField()
ViewableData::getIterator()
ViewableData::getXMLValues()
ViewableData::hasField()
ViewableData::HasPerm()
ViewableData::hasValue()
ViewableData::i18nLocale()
ViewableData::IsAjax()
ViewableData::iteratorProperties()
ViewableData::JS_val()
ViewableData::Last()
ViewableData::Me()
ViewableData::Middle()
ViewableData::MiddleString()
ViewableData::obj()
ViewableData::Odd()
ViewableData::Pos()
ViewableData::RAW_val()
ViewableData::renderWith()
ViewableData::SecurityID()
ViewableData::setCustomisedObj()
ViewableData::setField()
ViewableData::SQL_val()
ViewableData::ThemeDir()
ViewableData::Top()
ViewableData::TotalItems()
ViewableData::val()
ViewableData::XML_val()
ViewableData::__get()
ViewableData::__isset()
ViewableData::__set()
Inherited From Object
Object::__construct()
Object::addMethodsFrom()
Object::addStaticVars()
Object::addWrapperMethod()
Object::add_extension()
Object::allMethodNames()
Object::buildMethodList()
Object::cacheToFile()
Object::cacheToFileWithArgs()
Object::create()
Object::createMethod()
Object::defineMethods()
Object::exists()
Object::extend()
Object::extInstance()
Object::getCustomClass()
Object::hasExtension()
Object::hasMethod()
Object::invokeWithExtensions()
Object::is_a()
Object::loadCache()
Object::parentClass()
Object::sanitiseCachename()
Object::saveCache()
Object::set_stat()
Object::set_uninherited()
Object::stat()
Object::strong_create()
Object::uninherited()
Object::useCustomClass()
Object::__call()
Object::__toString()
Documentation generated on Tue, 07 Oct 2008 15:58:28 +1300 by phpDocumentor 1.3.2