\LangCollectorTask
- Author: Donatas Navidonskis <donatas@navidonskis.com>
Synopsis
class LangCollectorTask
extends BuildTask
{
- // members
- protected string $title = "Lang Collector Task";
- protected string $description = "Parameters: - module: One or more modules to limit collection (comma-separated) - merge: Merge new strings with existing ones already defined (default: FALSE) - example: /dev/tasks/LangCollectorTask \"module=mysite,themes/default&merge=true\" ";
- protected bool $merge = false;
- protected array $module = ;
- protected i18nTextCollector $textCollector;
- // methods
- public SS_HTTPResponse init()
- public void run()
- protected void runCollector()
- protected void writeMessage()
- protected void mergeWith()
Hierarchy
Extends
- BuildTask
Members
protected
- $description
- $merge
—
bool
Merge the same created entities if task is running again - $module
—
array
Given modules from the user - $textCollector
—
i18nTextCollector
Text Collector instance to parse an entities - $title
Methods
protected
- mergeWith() — Collect parameters from given options array and merge it with class properties
- runCollector() — Run text collector
- writeMessage() — Write output message