LeKoala\DevToolkit\Tasks\DropInvalidFilesTask
- Author: lekoala
Synopsis
class DropInvalidFilesTask
extends BuildTask
{
- // members
- protected string $title = "Drop Invalid Files";
- protected string $description = 'Drop file objects that are not linked to a proper asset (warning ! experimental)';
- private static string $segment = 'DropInvalidFilesTask';
- // methods
- public void run()
- protected void removeLocalFiles()
- protected void removeFiles()
- public static void deleteFile()
- public static void getFullPath()
- public static void getHashPath()
- public void getProtectedFullPath()
- public static void getBaseProtectedPath()
- // Inherited methods from BuildTaskTools
- protected void increaseTimeLimitTo()
- protected void regenerateClassManifest()
- protected array getValidDataObjects()
- protected array getModules()
- protected HTTPRequest getRequest()
- protected void addOption()
- protected array askOptions()
- protected void message()
- protected void isDev()
- protected void isLive()
Hierarchy
Members
private
- $segment
protected
- $description
- $options — array
- $request — LeKoala\DevToolkit\SilverStripe\Control\HTTPRequest
- $title
Methods
protected
public
- deleteFile() — ORM is just too slow for this
- getBaseProtectedPath()
- getFullPath()
- getHashPath()
- getProtectedFullPath()
- run()
Inherited from LeKoala\DevToolkit\BuildTaskTools
protected
- addOption() — Add options (to be called later with askOptions)
- askOptions() — Display a form with options
- getModules() — All modules
- getRequest() — Get the request (and keep your imports clean :-) )
- getValidDataObjects() — All dataobjects
- increaseTimeLimitTo() — Increase time limit
- isDev()
- isLive()
- message()
- regenerateClassManifest() — Rebuild the class manifest