modules/ModuleBuilder/parsers/parser.dropdown.php
\ParserDropDown
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
_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 |
getNewCustomContents(
$dropdown_name, $dropdown, $lang
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$dropdown_name | ||
$dropdown | ||
$lang |
handleSave(
$file, $view, $moduleName, $defs
)
:
void
inherited
Inherited from:
\ModuleBuilderParser::handleSave()
Parameters
Name | Type | Description |
---|---|---|
$file | ||
$view | ||
$moduleName | ||
$defs |
saveDropDown(
\REQUEST $params
)
:
void
Takes in the request params from a save request and processes them for the save.
Parameters
Name | Type | Description |
---|---|---|
$params | \REQUEST | params $params |
synchDropDown(
\$dropdown_name $dropdown_name, \$dropdown $dropdown, \$selected_lang $selected_lang, \$saveLov $saveLoc
)
:
void
function synchDropDown Ensures that the set of dropdown keys is consistant accross all languages.
Parameters
Name | Type | Description |
---|---|---|
$dropdown_name | \$dropdown_name | The name of the dropdown to be synched |
$dropdown | \$dropdown | array The dropdown currently being saved |
$selected_lang | \$selected_lang | String the language currently selected in Studio/MB |
$saveLoc | \$saveLov | String the path to the directory to save the new lang file in. |
synchMBDropDown(
\$dropdown_name $dropdown_name, \$dropdown $dropdown, \$selected_lang $selected_lang, \$module $module
)
:
void
function synchMBDropDown Ensures that the set of dropdown keys is consistant accross all languages in a ModuleBuilder Module
Parameters
Name | Type | Description |
---|---|---|
$dropdown_name | \$dropdown_name | The name of the dropdown to be synched |
$dropdown | \$dropdown | array The dropdown currently being saved |
$selected_lang | \$selected_lang | String the language currently selected in Studio/MB |
$module | \$module | MBModule the module to update the languages in |