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

Class ComplexTableField_ItemRequest

Description
  • todo: Tie this into ComplexTableField_Item better.

Located in /sapphire/forms/ComplexTableField.php (line 580)

Object
   |
   --ViewableData
      |
      --RequestHandlingData
         |
         --ComplexTableField_ItemRequest
Variable Summary
static mixed $url_handlers
mixed $ctf
mixed $itemID
mixed $methodName
Method Summary
ComplexTableField_ItemRequest __construct ( $ctf,  $itemID)
void dataObj ()
void delete ()
void DetailForm ([int $childID = null])
String edit ()
void getParentIdName ( $parentClass,  $childClass)
void getParentIdNameRelation ( $parentClass,  $childClass,  $relation)
void index ()
void Link ()
void PopupClasses ()
void PopupFirstLink ()
void PopupLastLink ()
void PopupNextLink ()
void PopupPrevLink ()
void saveComplexTableField ( $data,  $form,  $request)
void setParentIdName (String $str)
void setTemplatePopup ( $template)
String show ()
void ShowPagination ()
Variables
static mixed $url_handlers = array(
'$Action!' => '$Action',
'' => 'index',
)
(line 585)

Redefinition of:
RequestHandlingData::$url_handlers
The default URL handling rules. This specifies that the next component of the URL corresponds to a method to be called on this RequestHandlingData object.
mixed $ctf (line 581)
  • access: protected
mixed $itemID (line 582)
  • access: protected
mixed $methodName (line 583)
  • access: protected

Inherited Variables

Inherited from RequestHandlingData

RequestHandlingData::$allowed_actions
RequestHandlingData::$request

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
Methods
Constructor __construct (line 594)
ComplexTableField_ItemRequest __construct ( $ctf,  $itemID)
  • $ctf
  • $itemID

Redefinition of:
Object::__construct()
dataObj (line 657)

Return the data object being manipulated

void dataObj ()
delete (line 644)
void delete ()
DetailForm (line 677)

Renders view, edit and add, depending on the given information.

The form needs several parameters to function independently of its "parent-form", some derived from the context into a hidden-field, some derived from the parent context (which is not accessible here) and delivered by GET: ID, Identifier of the currently edited record (only if record is loaded). <parentIDName>, Link back to the correct parent record (e.g. "parentID"). parentClass, Link back to correct container-class (the parent-record might have many 'has-one'-relationships) CAUTION: "ID" in the DetailForm would be the "childID" in the overview table.

void DetailForm ([int $childID = null])
  • int $childID
edit (line 634)

Just a hook, processed in {DetailForm()}

String edit ()
getParentIdName (line 830)

Returns the db-fieldname of the currently used has_one-relationship.

void getParentIdName ( $parentClass,  $childClass)
  • $parentClass
  • $childClass
getParentIdNameRelation (line 847)

Returns the db-fieldname of the currently used relationship.

void getParentIdNameRelation ( $parentClass,  $childClass,  $relation)
  • $parentClass
  • $childClass
  • $relation
index (line 599)
void index ()
Link (line 590)
void Link ()
Pagination (line 776)

Method handles pagination in asset popup.

  • return: DataObjectSet
Object Pagination ()
PopupClasses (line 813)

Get part of class ancestry (even if popup is not subclassed it might be styled differently in css)

void PopupClasses ()
PopupCurrentItem (line 722)
void PopupCurrentItem ()
PopupFirstLink (line 726)
void PopupFirstLink ()
PopupLastLink (line 738)
void PopupLastLink ()
PopupNextLink (line 748)
void PopupNextLink ()
PopupPrevLink (line 759)
void PopupPrevLink ()
saveComplexTableField (line 703)

Use the URL-Parameter "action_saveComplexTableField" to provide a clue to the main controller if the main form has to be rendered, even if there is no action relevant for the main controller (to provide the instance of ComplexTableField which in turn saves the record.

  • see: Form::ReferencedField
void saveComplexTableField ( $data,  $form,  $request)
  • $data
  • $form
  • $request
setParentIdName (line 840)

Manually overwrites the parent-ID relations.

  • see: setParentClass()
void setParentIdName (String $str)
  • String $str: Example: FamilyID (when one Individual has_one Family)
setTemplatePopup (line 858)
void setTemplatePopup ( $template)
  • $template
show (line 608)

Just a hook, processed in {DetailForm()}

String show ()
ShowPagination (line 799)
void ShowPagination ()

Inherited Methods

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