Class lajax\translatemanager\services\Scanner
Inheritance | lajax\translatemanager\services\Scanner |
---|---|
Available since version | 1.0 |
Scanner class for scanning project, detecting new language elements
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$scanners | array | List of language element classes | lajax\translatemanager\services\Scanner |
Public Methods
Method | Description | Defined By |
---|---|---|
addLanguageItem() | Adding language elements to the array. | lajax\translatemanager\services\Scanner |
addLanguageItems() | Adding language elements to the array. | lajax\translatemanager\services\Scanner |
getLanguageItems() | Returns existing language elements. | lajax\translatemanager\services\Scanner |
getNewLanguageElements() | Returns new language elements. | lajax\translatemanager\services\Scanner |
getRemovableLanguageSourceIds() | Returns removable LanguageSource ids. | lajax\translatemanager\services\Scanner |
run() | Scanning project for text not stored in database. | lajax\translatemanager\services\Scanner |
scanning() | Scanning project for text not stored in database. | lajax\translatemanager\services\Scanner |
stdout() | Prints a string to STDOUT | lajax\translatemanager\services\Scanner |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
CATEGORY_ARRAY | 'array' | Array category. | lajax\translatemanager\services\Scanner |
CATEGORY_DATABASE | 'database' | Database category. | lajax\translatemanager\services\Scanner |
CATEGORY_JAVASCRIPT | 'javascript' | JavaScript category. | lajax\translatemanager\services\Scanner |
Property Details
List of language element classes
Method Details
Adding language elements to the array.
public void addLanguageItem ( $category, $message ) | ||
$category | string | |
$message | string |
Adding language elements to the array.
public void addLanguageItems ( $languageItems ) | ||
$languageItems | array | Example:
|
Returns existing language elements.
public array getLanguageItems ( ) | ||
return | array | Associative array containing the language elements. |
---|
Returns new language elements.
public array getNewLanguageElements ( ) | ||
return | array | Associative array containing the new language elements. |
---|
Returns removable LanguageSource ids.
public array getRemovableLanguageSourceIds ( ) |
Scanning project for text not stored in database.
public integer run ( ) | ||
return | integer | The number of new language elements. |
---|
Scanning project for text not stored in database.
public integer scanning ( ) | ||
return | integer | The number of new language elements. |
---|
Prints a string to STDOUT
public void stdout ( $string ) | ||
$string | string |