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

Class ModelAdmin_CollectionController

Description

Handles a managed model class and provides default collection filtering behavior.

Located in /cms/code/ModelAdmin.php (line 367)

Object
   |
   --ViewableData
      |
      --RequestHandlingData
         |
         --Controller
            |
            --ModelAdmin_CollectionController
Variable Summary
static mixed $url_handlers
mixed $modelClass
Method Summary
ModelAdmin_CollectionController __construct ( $parent,  $model)
unknown add (unknown_type $request)
void AddForm ()
void doCreate ( $data,  $form,  $request)
unknown getModelClass ()
void getResultColumns ( $searchCriteria)
SQLQuery getSearchQuery ( $searchCriteria)
unknown handleActionOrID (unknown_type $request)
RecordController handleID (HTTPRequest $request)
unknown Link ()
Form ResultsForm ( $searchCriteria)
string search ( $request,  $form)
Variables
Methods
Constructor __construct (line 375)
ModelAdmin_CollectionController __construct ( $parent,  $model)
  • $parent
  • $model

Redefinition of:
Object::__construct()
add (line 623)

Create a new model record.

unknown add (unknown_type $request)
  • unknown_type $request
AddForm (line 637)

Returns a form for editing the attached model

  • access: public
void AddForm ()
ColumnSelectionField (line 456)

Give the flexibilility to show variouse combination of columns in the search result table

  • access: public
void ColumnSelectionField ()
doCreate (line 656)
void doCreate ( $data,  $form,  $request)
  • $data
  • $form
  • $request
getModelClass (line 394)

Return the class name of the model being managed.

unknown getModelClass ()
getResultColumns (line 556)
void getResultColumns ( $searchCriteria)
  • $searchCriteria
getSearchQuery (line 551)

Gets the search query generated on the SearchContext from DataObject::getDefaultSearchContext(), and the current GET parameters on the request.

SQLQuery getSearchQuery ( $searchCriteria)
  • $searchCriteria
handleActionOrID (line 405)

Delegate to different control flow, depending on whether the URL parameter is a number (record id) or string (action).

unknown handleActionOrID (unknown_type $request)
  • unknown_type $request
handleID (line 420)

Delegate to the RecordController if a valid numeric ID appears in the URL segment.

RecordController handleID (HTTPRequest $request)
Link (line 385)

Appends the model class to the URL.

unknown Link ()
ResultsForm (line 575)

Shows results from the "search" action in a TableListField.

Form ResultsForm ( $searchCriteria)
  • $searchCriteria
search (line 519)

Action to render a data object collection, using the model context to provide filters and paging.

string search ( $request,  $form)
  • $request
  • $form
SearchForm (line 432)

Get a search form for a single DataObject subclass.

  • access: public
Form SearchForm ()

Inherited Methods

Inherited From Controller

Controller::AbsoluteLink()
Controller::can()
Controller::curr()
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::Now()
Controller::PastMember()
Controller::PastVisitor()
Controller::popCurrent()
Controller::pushCurrent()
Controller::redirect()
Controller::redirectBack()
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()
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:43:13 +1300 by phpDocumentor 1.3.2