\ContentModuleField
A field for editing @link ContentModule on a page N.B. If setting links on sub-fields, make sure to set OtherID for this, otherwise the action for the sub-field will be shifted off the stack
Date: 25/04/13
Time: 2:14 PM
Synopsis
class ContentModuleField
extends FormField
{
- // members
- protected static $curr = NULL;
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- private string $sortField = 'Sort';
- // methods
- public void __construct()
- public void __call()
- public void saveInto()
- public void getRelationshipClass()
- public string FieldHolder()
- public void AvailableModules()
- public void CurrentModules()
- public void getRecord()
- public void handleAction()
- public void addNewModule()
- public void copyModule()
- public void addExistingModule()
- public SS_HTTPResponse getExistingModules()
- public SS_HTTPResponse sort()
- public void reload()
- public SS_HTTPResponse module()
- public void modulefield()
- public void setSortField()
- public static void curr()
Hierarchy
Extends
- FormField
Tasks
Line | Task |
---|---|
82+ | Internationalisation |
239+ | Remove modules already in use by this Page |
Members
private
- $allowed_actions
- $sortField
- $url_handlers
protected
- $curr
Methods
public
- __construct()
- AvailableModules()
- CurrentModules()
- FieldHolder()
- __call()
- addExistingModule()
- addNewModule()
- copyModule()
- curr()
- getExistingModules() — Returns existing modules for a ContentModule type
- getRecord()
- getRelationshipClass()
- handleAction()
- module() — Handles all actions for the individual ContentModule, action is passed on with "do" prepended e.g. publish becomes ContentModule->doPublish
- modulefield() — Handles actions on fields for the module (e.g. uploadfield) Expects the name of the field to be in the ID param (in the form ContentModule[ModuleID][FieldName], and the action to be in the OtherID param
- reload()
- saveInto()
- setSortField()
- sort() — Sorts ContentModules for a given Page