modules/ModuleBuilder/MB/MBPackage.php
\MBPackage
Properties
Methods
copyCustomDropdownValuesForModules(
$modules, $path
)
:
void
Name | Type | Description |
---|---|---|
$modules | ||
$path |
customBuildInstall(
$modules, $path, $extensions
=
array()
)
:
void
Name | Type | Description |
---|---|---|
$modules | ||
$path | ||
$extensions |
exportCustom(
$modules, $export
=
true, $clean
=
true
)
:
void
Name | Type | Description |
---|---|---|
$modules | ||
$export | ||
$clean |
exportProject(
$package, $export
=
true, $clean
=
true
)
:
void
Name | Type | Description |
---|---|---|
$package | ||
$export | ||
$clean |
exportProjectInstall(
$package, $for_export
)
:
void
Name | Type | Description |
---|---|---|
$package | ||
$for_export |
getCustomDropDownStringsForModules(
$modules, $list_strings
)
:
void
Name | Type | Description |
---|---|---|
$modules | ||
$list_strings |
getCustomFieldsManifestForModule(
$module, $installdefs
)
:
void
Name | Type | Description |
---|---|---|
$module | ||
$installdefs |
getCustomMetadataManifestForModule(
$module, $installdefs
)
:
void
Name | Type | Description |
---|---|---|
$module | ||
$installdefs |
getCustomRelationshipsByModuleName(
string $moduleName, bool $lhs
=
false
)
:
mixed
Name | Type | Description |
---|---|---|
$moduleName | string | |
$lhs | bool | Return relationships where $moduleName - left module in join. |
Type | Description |
---|---|
mixed | Array or false when module name is wrong. |
getCustomRelationshipsMetaFilesByModuleName(
string $moduleName, bool $lhs
=
false, bool $metadataOnly
=
false
)
:
array
Name | Type | Description |
---|---|---|
$moduleName | string | |
$lhs | bool | Return relationships where $moduleName - left module in join. |
$metadataOnly | bool | Return only relationships metadata file. |
Type | Description |
---|---|
array |
getExtensionsList(
array $module, mixed $includeRelationships
=
true
)
:
array
Get _custom_ extensions for module.
Default path - custom/Extension/modules/$module/Ext.
Name | Type | Description |
---|---|---|
$module | array | Name. |
$includeRelationships | mixed | ARRAY - relationships files between $module and names in array; TRUE - with all relationships files; |
Type | Description |
---|---|
array | Paths. |
getExtensionsManifestForPackage(
string $path, array $installdefs
)
:
void
Name | Type | Description |
---|---|---|
$path | string | |
$installdefs | array | link |
- Todo
- private changed protected for testing purposes.
getLanguageManifestForModule(
$module, $installdefs
)
:
void
Name | Type | Description |
---|---|---|
$module | ||
$installdefs |
getManifest(
$version_specific
=
false, $for_export
=
false
)
:
void
Name | Type | Description |
---|---|---|
$version_specific | ||
$for_export |
getModule(
$name, bool $force
=
true
)
:
\MBModule
Name | Type | Description |
---|---|---|
$name | ||
$force | bool |
Type | Description |
---|---|
\MBModule |
getModuleByFullName(
string $name
)
:
\MBModule
Returns an MBModule by the given full name (package key + module name) if it exists in this package
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
\MBModule |
getRelationshipsForModule(
\$moduleName $moduleName
)
:
array
Returns a set of field defs for fields that will exist when this package is deployed based on the relationships in all of its modules.
Name | Type | Description |
---|---|---|
$moduleName | \$moduleName | (module must be from whithin this package) |
Type | Description |
---|---|
array | Field defs |
loadModuleTitles(
\$languge $languge
=
''
)
:
Loads the translated module titles from the selected language into.
Will override currently loaded string to reflect undeployed label changes. $app_list_strings
Name | Type | Description |
---|---|---|
$languge | \$languge | String language identifyer |