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 |
filterExportedRelationshipFile(
\$fn $fn, \$module $module, \$includeRelationship $includeRelationships
)
:
boolean
Processes the name of the file and compares against the passed in module names to evaluate whether the file should be included for export. Returns true or false
Name | Type | Description |
---|---|---|
$fn | \$fn | (file name that is being evaluated) |
$module | \$module | (name of current module being evaluated) |
$includeRelationships | \$includeRelationship | (list of related modules that are also being exported, to be used as filters) |
Type | Description |
---|---|
boolean | true or false |
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
This returns an UNFILTERED list of custom relationships by module name. You will have to filter the relationships by the modules being exported after calling this method
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, \$includeRelationship $exportedModulesFilter
=
array()
)
:
array
Name | Type | Description |
---|---|---|
$moduleName | string | |
$lhs | bool | Return relationships where $moduleName - left module in join. |
$metadataOnly | bool | Return only relationships metadata file. |
$exportedModulesFilter | \$includeRelationship | (list of related modules that are also being exported) |
Type | Description |
---|---|
array | (array of relationships filtered to only include relationships to modules being exported) |
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 |