SilverCart\Dev\Tasks\LocaleToolsTask
Synopsis
class LocaleToolsTask
extends BuildTask
{
- // members
- private static string $segment = 'sc-locale-tools';
- protected string $title = 'Locale Tools';
- protected string $description = 'Task to provide some locale base dev tools.';
- private static array $allowed_actions = ;
- // methods
- public void run()
- public void runDefault()
- public void addMissingLocaleEntries()
- protected void renderAddMissingLocaleEntriesForm()
- // Inherited methods from ExtendedBuildTask
- protected void handleAction()
- public string Link()
- public string BaseLink()
- public string getLineBreak()
- public void printLine()
- public void printMessage()
Hierarchy
Members
private
- $allowed_actions — array
- $segment
—
string
Set a custom url segment (to follow dev/tasks/)
protected
- $description
—
string
Describe the implications the task has, and the changes it makes. Accepts HTML formatting. - $title
—
string
Shown in the overview on the {@link TaskRunner}.
Methods
protected
- renderAddMissingLocaleEntriesForm() — Renders the AddMissingLocaleEntriesForm.
public
- addMissingLocaleEntries() — Action to add missing locale entries.
- run() — Main action to run this task.
- runDefault() — Default action to run this task.
Inherited from SilverCart\Dev\ExtendedBuildTask
protected
- handleAction() — Handles an action called on this task.
public
- BaseLink() — Returns the link with the given $action of this task.
- Link() — Returns the link with the given $action of this task.
- getLineBreak() — Returns the line break string for the given environment context (CLI/browser).
- printLine() — Prints a line to the output.
- printMessage() — Prints the given $message to the output.