Comments: on this page. Click to read or post your own.

Class Page_Controller

Description

The most common kind of controller; effectively a controller linked to a DataObject.

ContentControllers are most useful in the content-focused areas of a site. This is generally the bulk of a site; however, they may be less appropriate in, for example, the user management section of an application.

On its own, content controller does very little. Its constructor is passed a DataObject which is stored in $this->dataRecord. Any unrecognised method calls, for example, Title() and Content(), will be passed along to the data record,

Subclasses of ContentController are generally instantiated by ModelAsController; this will create a controller based on the URLSegment action variable, by looking in the SiteTree table.

Located in /mysite/code/Page.php (line 10)

Object
   |
   --ViewableData
      |
      --Controller
         |
         --ContentController
            |
            --Page_Controller
Direct descendents
Class Description
VirtualPage_Controller Controller for the virtual page.
ErrorPage_Controller Controller for ErrorPages.
RedirectorPage_Controller Controller for the RedirectorPage.
GhostPage_Controller Controller for GhostPages
UserDefinedForm_Controller Controller for the UserDefinedForm page type.
Method Summary
void init ()
Variables
Methods
init (line 11)
void init ()

Redefinition of:
ContentController::init()

Redefined in descendants as:

Inherited Methods

Inherited From ContentController

ContentController::__construct()
ContentController::ChildrenOf()
ContentController::data()
ContentController::deleteinstallfiles()
ContentController::getMenu()
ContentController::init()
ContentController::LangAttributes()
ContentController::Link()
ContentController::LoginForm()
ContentController::Menu()
ContentController::Page()
ContentController::PageComments()
ContentController::project()
ContentController::RelativeLink()
ContentController::Section2()
ContentController::SilverStripeNavigator()
ContentController::successfullyinstalled()

Inherited From Controller

Controller::AbsoluteLink()
Controller::can()
Controller::checkAccessAction()
Controller::curr()
Controller::currentController()
Controller::CurrentMember()
Controller::defaultAction()
Controller::disableBasicAuth()
Controller::getAction()
Controller::getFormOwner()
Controller::getResponse()
Controller::getSession()
Controller::getURLParams()
Controller::getViewer()
Controller::has_curr()
Controller::init()
Controller::isAjax()
Controller::LinkTo()
Controller::Now()
Controller::PastMember()
Controller::PastVisitor()
Controller::popCurrent()
Controller::pushCurrent()
Controller::redirect()
Controller::redirectedTo()
Controller::run()
Controller::setSession()
Controller::setURLParams()

Inherited From ViewableData

ViewableData::ATT_val()
ViewableData::BaseHref()
ViewableData::buildCastingHelperCache()
ViewableData::cachedCall()
ViewableData::castingHelper()
ViewableData::castingHelperPair()
ViewableData::castingObjectCreator()
ViewableData::castingObjectCreatorPair()
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::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::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()
blog comments powered by Disqus

Documentation generated on Mon, 12 May 2008 15:15:44 +1200 by phpDocumentor 1.3.2