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

Class AssetTableField

Description

Provides a tabuar list in your form with view, edit and add links to edit records with a "has-one"-relationship. Detail-views are shown in a greybox-iframe.

Features pagination in the overview as well as the detail-views.

CAUTION: You need to make sure that the original form-call to the main controller (e.g. EditForm()) returns a form which includes this field even if no data is loaded, to provide a "starting point" for action_callfieldmethod and ReferencedField.

All URL data sent to and from ComplexTableField is encapsulated in $_REQUEST['ctf'] to avoid side-effects with the main controller.

Example-URL for a "DetailForm"-call explained: "/admin/family/?executeForm=EditForm&action_callfieldmethod&fieldName=Individual&childID=7&methodName=edit"

  • executeForm Name of the form on the main rendering page (e.g. "FamilyAdmin")
  • action_callfieldmethod Trigger to call a method of a single field in "EditForm" instead of rendering the whole thing
  • fieldName Name of the targeted formField
  • methodName Method on the formfield (e.g. "ComplexTableField")
  • childID Identifier of the database-record (the targeted table is determined by the $sourceClass parameter)

Located in /cms/code/AssetTableField.php (line 2)

Object
   |
   --ViewableData
      |
      --RequestHandlingData
         |
         --FormField
            |
            --TableListField
               |
               --ComplexTableField
                  |
                  --AssetTableField
Variable Summary
mixed $folder
mixed $template
Method Summary
AssetTableField __construct ( $controller,  $name,  $sourceClass,  $fieldList,  $detailFormFields, [ $sourceFilter = ""], [ $sourceSort = ""], [ $sourceJoin = ""])
void DetailForm ()
void Folder ()
void setFolder ( $folder)
void sourceID ()
Variables
mixed $folder (line 4)
  • access: protected
mixed $template = "AssetTableField" (line 6)
  • access: protected

Redefinition of:
ComplexTableField::$template
Template for main rendering

Inherited Variables

Inherited from ComplexTableField

ComplexTableField::$actions
ComplexTableField::$controller
ComplexTableField::$defaultAction
ComplexTableField::$detailFormFields
ComplexTableField::$detailFormValidator
ComplexTableField::$itemClass
ComplexTableField::$parentClass
ComplexTableField::$parentIdName
ComplexTableField::$permissions
ComplexTableField::$popupCaption
ComplexTableField::$popupClass
ComplexTableField::$popupHeight
ComplexTableField::$popupWidth
ComplexTableField::$relationAutoSetting
ComplexTableField::$showPagination
ComplexTableField::$sourceItems
ComplexTableField::$sourceJoin
ComplexTableField::$templatePopup
ComplexTableField::$unpagedSourceItems
ComplexTableField::$url_handlers
ComplexTableField::$viewAction

Inherited from TableListField

TableListField::$cachedSourceItems
TableListField::$clickAction
TableListField::$csvFieldEscape
TableListField::$csvFieldFormatting
TableListField::$csvHasHeader
TableListField::$csvSeparator
TableListField::$customCsvQuery
TableListField::$customQuery
TableListField::$customSourceItems
TableListField::$exportButtonLabel
TableListField::$extraLinkParams
TableListField::$fieldCasting
TableListField::$fieldFormatting
TableListField::$fieldList
TableListField::$fieldListCsv
TableListField::$groupByField
TableListField::$highlightConditions
TableListField::$IsReadOnly
TableListField::$Markable
TableListField::$MarkableTitle
TableListField::$methodName
TableListField::$pageSize
TableListField::$readOnly
TableListField::$sourceClass
TableListField::$sourceFilter
TableListField::$sourceSort
TableListField::$summaryFieldList
TableListField::$summaryTitle
TableListField::$totalCount
TableListField::$__cachedQuery

Inherited from FormField

FormField::$containerFieldSet
FormField::$description
FormField::$disabled
FormField::$dontEscape
FormField::$extraClass
FormField::$extraClasses
FormField::$form
FormField::$leftTitle
FormField::$message
FormField::$messageType
FormField::$name
FormField::$readonly
FormField::$rightTitle
FormField::$tabIndex
FormField::$title
FormField::$value

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 8)
AssetTableField __construct ( $controller,  $name,  $sourceClass,  $fieldList,  $detailFormFields, [ $sourceFilter = ""], [ $sourceSort = ""], [ $sourceJoin = ""])
  • $controller
  • $name
  • $sourceClass
  • $fieldList
  • $detailFormFields
  • $sourceFilter
  • $sourceSort
  • $sourceJoin

Redefinition of:
ComplexTableField::__construct()
See class comments
DetailForm (line 30)
void DetailForm ()
Folder (line 22)
void Folder ()
setFolder (line 16)
void setFolder ( $folder)
  • $folder
sourceID (line 26)
void sourceID ()

Redefinition of:
ComplexTableField::sourceID()

Inherited Methods

Inherited From ComplexTableField

ComplexTableField::__construct()
ComplexTableField::add()
ComplexTableField::AddForm()
ComplexTableField::AddLink()
ComplexTableField::ajax_render()
ComplexTableField::createFieldSet()
ComplexTableField::FieldHolder()
ComplexTableField::getCustomFieldsFor()
ComplexTableField::getFieldsFor()
ComplexTableField::getParentClass()
ComplexTableField::getParentIdName()
ComplexTableField::getParentIdNameRelation()
ComplexTableField::getValidatorFor()
ComplexTableField::getViewer()
ComplexTableField::handleItem()
ComplexTableField::IsAddMode()
ComplexTableField::isComposite()
ComplexTableField::ItemCount()
ComplexTableField::Items()
ComplexTableField::saveComplexTableField()
ComplexTableField::setDetailFormValidator()
ComplexTableField::setParentClass()
ComplexTableField::setParentIdName()
ComplexTableField::setPopupCaption()
ComplexTableField::setPopupSize()
ComplexTableField::setRelationAutoSetting()
ComplexTableField::setTemplatePopup()
ComplexTableField::sourceClass()
ComplexTableField::sourceFilter()
ComplexTableField::sourceID()

Inherited From TableListField

TableListField::__construct()
TableListField::Actions()
TableListField::addSummary()
TableListField::ajax_refresh()
TableListField::BaseLink()
TableListField::Can()
TableListField::colFunction_avg()
TableListField::colFunction_sum()
TableListField::CurrentLink()
TableListField::delete()
TableListField::export()
TableListField::ExportLink()
TableListField::FieldHolder()
TableListField::FieldList()
TableListField::filterString()
TableListField::FirstItem()
TableListField::FirstLink()
TableListField::getCastedValue()
TableListField::getCsvQuery()
TableListField::getCsvSeparator()
TableListField::getExtraLinkParams()
TableListField::getPermissions()
TableListField::getQuery()
TableListField::GroupedItems()
TableListField::handleItem()
TableListField::HasGroupedItems()
TableListField::HasSummary()
TableListField::Headings()
TableListField::index()
TableListField::isFieldSortable()
TableListField::Items()
TableListField::LastItem()
TableListField::LastLink()
TableListField::ListStart()
TableListField::Name()
TableListField::NamePlural()
TableListField::NameSingular()
TableListField::NextLink()
TableListField::PageSize()
TableListField::performReadonlyTransformation()
TableListField::permissions_for_object()
TableListField::PrevLink()
TableListField::printall()
TableListField::PrintLink()
TableListField::removeCsvHeader()
TableListField::removeSummary()
TableListField::setClick_AjaxLoad()
TableListField::setClick_PopupLoad()
TableListField::setCSVFieldFormatting()
TableListField::setCsvSeparator()
TableListField::setCustomCsvQuery()
TableListField::setCustomQuery()
TableListField::setCustomSourceItems()
TableListField::setExtraLinkParams()
TableListField::setFieldCasting()
TableListField::setFieldFormatting()
TableListField::setFieldListCsv()
TableListField::setHighlightConditions()
TableListField::setPageSize()
TableListField::setPermissions()
TableListField::setShowPagination()
TableListField::setTemplate()
TableListField::ShowPagination()
TableListField::sourceClass()
TableListField::sourceFilter()
TableListField::sourceID()
TableListField::sourceItems()
TableListField::SummaryFields()
TableListField::SummaryTitle()
TableListField::Title()
TableListField::TotalCount()
TableListField::Utility()

Inherited From FormField

FormField::__construct()
FormField::addExtraClass()
FormField::attrName()
FormField::attrTitle()
FormField::attrValue()
FormField::createTag()
FormField::dataValue()
FormField::debug()
FormField::describe()
FormField::extraClass()
FormField::Field()
FormField::FieldHolder()
FormField::forTemplate()
FormField::getForm()
FormField::getTabIndex()
FormField::getTabIndexHTML()
FormField::hasClass()
FormField::hasData()
FormField::id()
FormField::isComposite()
FormField::isDisabled()
FormField::isReadonly()
FormField::jsValidation()
FormField::LeftTitle()
FormField::Link()
FormField::Message()
FormField::MessageType()
FormField::Name()
FormField::name_to_label()
FormField::performDisabledTransformation()
FormField::performReadonlyTransformation()
FormField::removeExtraClass()
FormField::Required()
FormField::RightTitle()
FormField::rootFieldSet()
FormField::saveInto()
FormField::setContainerFieldSet()
FormField::setDisabled()
FormField::setError()
FormField::setForm()
FormField::setLeftTitle()
FormField::setName()
FormField::setReadonly()
FormField::setRightTitle()
FormField::setTabIndex()
FormField::setTitle()
FormField::setValue()
FormField::SmallFieldHolder()
FormField::Title()
FormField::transform()
FormField::Type()
FormField::validate()
FormField::Value()

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