\CMSSecuredFileAddController
Specific controller used to add files to the advanced-assets CMS UI, that are secured.
- Author: Deviate Ltd 2014-2015 http://www.deviate.net.nz
Synopsis
class CMSSecuredFileAddController
extends CMSFileAddController
{
- // members
- private static string $url_segment = 'advanced-assets/add';
- private static integer $url_priority = 65;
- private static string $required_permission_codes = 'CMS_ACCESS_SecuredAssetAdmin';
- private static string $menu_title = 'Advanced Assets';
- private static string $tree_class = 'Folder';
- // methods
- public void init()
- public SS_HTTPResponse initValidate()
- public Folder currentPage()
- public mixed currentPageID()
- public Form getEditForm()
- public ArrayList Breadcrumbs()
Hierarchy
Extends
- CMSFileAddController
Tasks
Line | Task |
---|---|
10+ | Modify addFolder() and initValidate() to show messages within the CMS. |
35+ | Refactor into single static. There are v.close dupes of this in the other controllers. |
114+ | what template is used here? AssetAdmin_UploadContent.ss doesn't seem to be used anymore |
Members
private
- $required_permission_codes
- $tree_class
- $url_priority
- $url_segment
Methods
public
- Breadcrumbs()
- currentPage() — Custom currentPage() method to handle opening the 'root' folder.
- currentPageID() — Return fake-ID "root" if no ID is found (needed to upload files into the root-folder)
- getEditForm()
- init()
- initValidate() — Intial validation of incoming CMS requests before we do anything useful.