\SimplifyAction
SimplifyAction Provides url actions to draw the Simplify Field Tree, and toggle Permissions on or off
@package simplify
Synopsis
class SimplifyAction
extends Controller
{
- // members
- public static $group = NULL;
- public static array $allowed_actions = ;
- // methods
- public string drawTree()
- public static void toggleFieldPermission()
- public static void PageTree()
- public static void getChildrenAsUL()
Hierarchy
Extends
- Controller
Tasks
Line | Task |
---|---|
84 | This works, but only returns the initial field state of the objects |
Members
public
- $allowed_actions
- $group
Methods
public
- PageTree() — Display a tree of all page types and their children, with perms
- drawTree() — url action function that calls PageTree with the given group action: SimplifyAction/drawTree/ID action where ID is the group Code eg; simplify/drawTree/administrators
- getChildrenAsUL() — Custom getChildrenAsUL - specific for Pages/Tabsets/Tabs/Fields TODO this is very slow - improve it! TODO could load branches via AJAX instead
- toggleFieldPermission() — url action function that toggles a given field permission on or off action: simplify/toggleFieldPermission/ID where ID = Page|Name|Type|GroupID eg; simplify/toggleFieldPermission/Page|Behaviour|1 TODO: the pipe delimiting is rather eh. refactor.