\NonSecuredAssetAdmin
Creates a new folder on the F/S for uploading assets to, but not in a secure manner. See {@Link SecuredAssetAdmin}.
- Author: Deviate Ltd 2014-2015 http://www.deviate.net.nz
Synopsis
class NonSecuredAssetAdmin
extends AssetAdmin
implements
PermissionProvider
{
- // members
- private static integer $menu_priority = 5;
- private static string $menu_icon = "silverstripe-advancedassets/images/icons/controller-non-secured-asset-admin-16.png";
- private static string $menu_title = "Files";
- private static array $allowed_actions = ;
- // methods
- public void init()
- public SS_HTTPResponse initValidate()
- public array providePermissions()
- public SS_List getList()
- public SS_List SiteTreeAsUL()
- public array Breadcrumbs()
- public null doSync()
- public HTMLText addfolder()
Hierarchy
Extends
- AssetAdmin
Implements
- PermissionProvider
Tasks
Line | Task |
---|---|
10+ | Modify addFolder() and initValidate() to show messages within the CMS. |
61+ | Refactor into single static. There are v.close dupes of this in the other controllers. |
Members
private
- $allowed_actions — array
Methods
public
- Breadcrumbs()
- SiteTreeAsUL()
- addfolder() — {@inheritdoc}
- doSync() — Can be queried with an ajax request to trigger the filesystem sync. It returns a FormResponse status message to display in the CMS
- getList()
- init()
- initValidate() — Intial validation of incoming CMS requests before we do anything useful.
- providePermissions()