\SimplifyLeftAndMainDecorator
SimplifyLeftAndMainDecorator
Decorates LeftAndMain, applies the Simplify permissions using CSS and JS via alternateAccessCheck()
Also calls any code related to permissions
Synopsis
class SimplifyLeftAndMainDecorator
extends LeftAndMainExtension
{
- // members
- private static array $js_files = ;
- private static array $css_files = ;
- // methods
- private static null checkPermissions()
- public null init()
Hierarchy
Extends
- LeftAndMainExtension
Tasks
Line | Task |
---|---|
56 | - what does/did this do? No longer works with new 3.x JS |
67 | -BUG FIX ME - uses old JS, need to fix this to work with new 3.x CMS JS |
Members
private
- $css_files
- $js_files
Methods
private
- checkPermissions() — checkPermissions loop through each permission, check if the current user has it, and add the permission.js or permission.css file as a requirement
public
- init() — Checks Simplify default and custom permission, also combines the CSS and JS.