modules/ModuleBuilder/parsers/parser.label.php
\ParserLabel
Package:
- Parent(s)
- \ModuleBuilderParser
Properties
$_defMap= ''
inheritedInherited from:
\ModuleBuilderParser::$$_defMap
Details
- Type
- n/a
- Inherited_from
- \ModuleBuilderParser::$$_defMap
$_variables= 'array()'
inheritedInherited from:
\ModuleBuilderParser::$$_variables
Default value
array()
Details- Type
- n/a
- Inherited_from
- \ModuleBuilderParser::$$_variables
Methods
ParserLabel(
$moduleName, $packageName
=
''
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$moduleName | ||
$packageName |
_fatalError(
$msg
)
:
void
inherited
Inherited from:
\ModuleBuilderParser::_fatalError()
Parameters
Name | Type | Description |
---|---|---|
$msg |
_loadFromFile(
$view, $file, $moduleName
)
:
void
inherited
Inherited from:
\ModuleBuilderParser::_loadFromFile()
Parameters
Name | Type | Description |
---|---|---|
$view | ||
$file | ||
$moduleName |
_writeToFile(
$file, $view, $moduleName, $defs, $variables
)
:
void
inherited
Inherited from:
\ModuleBuilderParser::_writeToFile()
Parameters
Name | Type | Description |
---|---|---|
$file | ||
$view | ||
$moduleName | ||
$defs | ||
$variables |
addLabels(
$language, $labels, $moduleName, $basepath
=
null, $forRelationshipLabel
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$language | ||
$labels | ||
$moduleName | ||
$basepath | ||
$forRelationshipLabel |
handleSave(
\REQUEST $params, string $language
)
:
void
Takes in the request params from a save request and processes them for the save.
Parameters
Name | Type | Description |
---|---|---|
$params | \REQUEST | Labels as "label_".System label => Display label pairs |
$language | string | Language key, for example 'en_us' |
handleSaveRelationshipLabels(
$metadata, string $language
)
:
void
Takes in the request params from a save request and processes them for the save.
Parameters
Name | Type | Description |
---|---|---|
$metadata | ||
$language | string | Language key, for example 'en_us' |