SilverStripe Development Tools: Tasks

https://dev2.ddcareers.quinnlabs.com

dev → tasks

MigrateContentToElement

When installing Elemental this task converts content in the $Content field to an ElementContent
Run task

Reset Globally Enabled elements

Reset individual elements 'AvailableGlobally' setting via the YAML config
Run task

Hydrate the focuspoint extension image size cache

Run this task to cache all image sizes, and speed up image generation
Run task

Clear SVG Variants

Removes all SVG variant files from the asset store. Run with --confirm to actually delete.
Parameters:
confirm
Actually delete the variants (without this flag, only shows what would be deleted) [default: 0]
verbose
Show detailed output for each file [default: 0]
Run task

Login Session Garbage Collection Task

Removes expired login sessions and "remember me" hashes from the database
Run task

Invalidate All Login Sessions Task

Removes all login sessions and "remember me" hashes (including yours) from the database
Run task

Initial DataObject localisation (excludes SiteTree)

Intended for projects which already have data when Fluent module is added.
Display additional information This dev task will localise / publish all DataObjects in the default locale. Locale setup has to be done before running this task.
Pass limit=N to limit number of records to localise. Pass publish=1 to enable publishing of localised Versioned DataObjects.
Regardless, Versioned DataObjects which were not already published will not be published, only localised. DataObjects which were already localised will always be skipped.
This class may be extended to create custom initialization tasks targeting or excluding specific classes.
Parameters:
publish
Publish pages after localising (if they were published beforehand) [default: 0]
limit
Maximum number of records to localise at once [default: 1]
Run task

Clear InterventionBackend cache

Clears caches for InterventionBackend
Run task

Deletes all temporary test databases

Cleans up leftover databases from aborted test executions (starting with ss_tmpdb)
Run task

i18n Textcollector Task

Traverses through files in order to collect the "entity master tables" stored in each module.
Parameters:
locale
Sets default locale
writer
Custom writer class (must implement the SilverStripe\i18n\Messages\Writer interface)
module
One or more modules to limit collection (comma-separated)
merge
Merge new strings with existing ones already defined in language files [default: true] [default: 1]
Run task

Checking broken External links in the SiteTree

A task that records external broken links in the SiteTree
Run task

Migrate Focus-Point Field-Values.

Migrate Focus-Point fields from v2 to v3 or vice-versa.
Parameters:
direction
"up" if migrating from old to new, "down" to revert a migration
Run task

Initial SiteTree localisation

Intended for projects which already have some Pages when Fluent module is added
Display additional information This dev task will localise / publish all Pages in the default locale. Locale setup has to be done before running this task.
Pass limit=N to limit number of records to localise. Pass publish=1 to force publishing of localised Pages.
Regardless, Pages which were not already published will not be published, only localised. Pages which were already localised will always be skipped.
Parameters:
publish
Publish pages after localising (if they were published beforehand) [default: 0]
limit
Maximum number of records to localise at once [default: 1]
Run task