\FrontEndEditable
Synopsis
interface FrontEndEditable
{
- // methods
- public static FrontEndEditable add_another()
- public null|RequiredFields getFrontEndValidator()
- public array FrontEndFieldsWithAjaxValidation()
- public string FrontEndShortTitle()
- public string FrontEndExtendedTitle()
- public array FrontEndHeaders()
- public array ExtraClassesForFrontEnd()
- public string ExtraClassesForFrontEndForm()
- public array RightTitlesForFrontEnd()
- public array PlaceHoldersForFrontEnd()
- public array FieldsToRemoveFromFrontEnd()
- public array FrontEndCustomRelationFields()
- public array FrontEndCustomRelationsOptionProvider()
- public array FrontEndMakeReadOnlyFields()
- public array FrontEndDeleteAlternatives()
- public null|DataObject FrontEndParentObject()
- public null|DataList FrontEndSiblings()
- public void FrontEndNoSiblingEdits()
- public array FrontEndAlternativeViewLinks()
- public string FrontEndEditIconCode()
- public string FrontEndEditColour()
Methods
public
- ExtraClassesForFrontEnd() — format: FieldName => class
- ExtraClassesForFrontEndForm()
- FieldsToRemoveFromFrontEnd() — format: - FieldNameA, - FieldNameB, etc..
- FrontEndAlternativeViewLinks() — Additional Views can be added here. Some are added by default, but you can add other ones, such as preview, etc...
- FrontEndCustomRelationFields() — list of relations that should not be created automatically...
- FrontEndCustomRelationsOptionProvider() — list of options for each relation that can be selected instead of adding a new one ...
- FrontEndDeleteAlternatives() — list of fields foreign relations that are not deleted but where a field is set to false or something similar
- FrontEndEditColour() — return an HTML colour e.g. "GREEN" or "#223223"
- FrontEndEditIconCode() — return a code or HTML snippet
- FrontEndExtendedTitle() — more detailed title to explain the specific record you are dealing with make it return an empty string if no extended title is required...
- FrontEndFieldsWithAjaxValidation() — adds the "ajax-validation" css class to the field in the form.
- FrontEndHeaders() — inserts Fields before FieldName so that you can create headers FieldName => Field
- FrontEndMakeReadOnlyFields() — list of fields that should be made read-only ...
- FrontEndNoSiblingEdits() — fields that can be edited right across siblings.
- FrontEndParentObject() — returns the parent dataobject for the formation of breadcrumbs in the front-end editor
- FrontEndShortTitle() — the short title for the object
- FrontEndSiblings() — returns the parent dataobject for the formation of breadcrumbs in the front-end editor the most common usage is like this: ```php public function FrontEndSiblings($rootParent = null, $includeMe = true) { return $this->FrontEndDefaultSiblings($rootParent, $includeMe); } ```
- PlaceHoldersForFrontEnd() — format: FieldName => placeholder value
- RightTitlesForFrontEnd() — format: FieldName => HTML Help Message
- add_another()
- getFrontEndValidator() — required fields for front end...