modules/ModuleBuilder/MB/MBModule.php
Constants
\MBModule
Package:
Properties


$always_implement= 'array ( 'assignable' => 'Assignable' , 'acl' => 'Access Controls' , 'studio' => 'Studio Support' , 'audit' => 'Audit Table' )'
Default value
array ( 'assignable' => 'Assignable' , 'acl' => 'Access Controls' , 'studio' => 'Studio Support' , 'audit' => 'Audit Table' )
Details- Type
- n/a


$config= 'array (
'assignable' => 1 , 'acl' => 1 , 'has_tab' => 1 , 'studio' => 1 , 'audit' => 1 )'
Default value
array (
'assignable' => 1 , 'acl' => 1 , 'has_tab' => 1 , 'studio' => 1 , 'audit' => 1 )
Details- Type
- n/a


$implementable= 'array (
'has_tab' => 'Navigation Tab' )'
Default value
array (
'has_tab' => 'Navigation Tab' )
Details- Type
- n/a
Methods


__construct(
$name, $path, $package, $package_key
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$name | ||
$path | ||
$package | ||
$package_key |


addLabel(
$displayLabel
)
:
void
Required for an MB module to work with Dynamic fields
Parameters
Name | Type | Description |
---|---|---|
$displayLabel |


copyMetaRecursive(
$from, $to, $overwrite
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$from | ||
$to | ||
$overwrite |


getLinkFields(
)
:
array
Returns an array of fields defs with all the link fields for this module.
Returns
Type | Description |
---|---|
array |


renameLanguageFiles(
$new_dir, $duplicate
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$new_dir | ||
$duplicate |


renameMetaData(
string $new_dir, string $old_name
)
:
void
Rename module name in metadata
Parameters
Name | Type | Description |
---|---|---|
$new_dir | string | |
$old_name | string |


saveAvailibleSubpanelDef(
$panelName, $layout
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$panelName | ||
$layout |


setAppListStrings(
$language
=
'en_us', $app_list_strings
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$language | ||
$app_list_strings |


setDropDown(
$language
=
'en_us', $key, $value
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$language | ||
$key | ||
$value |


setLabel(
$language
=
'en_us', $key, $value
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$language | ||
$key | ||
$value |