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

Class ModelAdmin_RecordController

Description

Handles operations on a single record from a managed model.

  • todo: change the parent controller varname to indicate the model scaffolding functionality in ModelAdmin

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

Object
   |
   --ViewableData
      |
      --RequestHandlingData
         |
         --Controller
            |
            --ModelAdmin_RecordController
Variable Summary
Method Summary
ModelAdmin_RecordController __construct ( $parentController,  $request)
void doDelete ( $data,  $form,  $request)
mixed doSave (array $data, Form $form, HTTPRequest $request)
void edit ( $request)
void EditForm ()
void index ()
void Link ()
mixed view (HTTPRequest $request)
Variables
Methods
Constructor __construct (line 679)
ModelAdmin_RecordController __construct ( $parentController,  $request)
  • $parentController
  • $request

Redefinition of:
Object::__construct()
doDelete (line 773)

Delete the current record

  • access: public
void doDelete ( $data,  $form,  $request)
  • $data
  • $form
  • $request
doSave (line 758)

Postback action to save a record

mixed doSave (array $data, Form $form, HTTPRequest $request)
edit (line 699)

Edit action - shows a form for editing this record

void edit ( $request)
  • $request
EditForm (line 727)

Returns a form for editing the attached model

  • access: public
void EditForm ()
index (line 814)
void index ()
Link (line 690)

Link fragment - appends the current record ID to the URL.

void Link ()
view (line 790)

Renders the record view template.

mixed view (HTTPRequest $request)
ViewForm (line 804)

Returns a form for viewing the attached model

  • access: public
Form ViewForm ()

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:14 +1300 by phpDocumentor 1.3.2