modules/ModuleBuilder/MB/MBModule.php

Show: inherited
Table of Contents

Constants

Constant  MB_TEMPLATES = 'include/SugarObjects/templates'
Constant  MB_IMPLEMENTS = 'include/SugarObjects/implements'

\MBModule

Package:

Properties

Propertypublic  $always_implement= 'array ( 'assignable' => 'Assignable' , 'acl' => 'Access Controls' , 'studio' => 'Studio Support' , 'audit' => 'Audit Table' )'
Default valuearray ( 'assignable' => 'Assignable' , 'acl' => 'Access Controls' , 'studio' => 'Studio Support' , 'audit' => 'Audit Table' )Details
Type
n/a
Propertypublic  $config= 'array ( 'team_security' => 1 , 'assignable' => 1 , 'acl' => 1 , 'has_tab' => 1 , 'studio' => 1 , 'audit' => 1 )'
Default valuearray ( 'team_security' => 1 , 'assignable' => 1 , 'acl' => 1 , 'has_tab' => 1 , 'studio' => 1 , 'audit' => 1 )Details
Type
n/a
Propertypublic  $config_md5= 'null'
Default valuenullDetails
Type
n/a
Propertypublic  $errors= 'array ( )'
Default valuearray ( )Details
Type
n/a
Propertypublic  $iTemplate= 'array ( 'team_security' , 'assignable' )'
Default valuearray ( 'team_security' , 'assignable' )Details
Type
n/a
Propertypublic  $implementable= 'array ( 'team_security' => 'Team Security' , 'has_tab' => 'Navigation Tab' )'
Default valuearray ( 'team_security' => 'Team Security' , 'has_tab' => 'Navigation Tab' )Details
Type
n/a
Propertypublic  $mbpublicdefs= ''
Details
Type
n/a
Propertypublic  $name= ''''
Default value''Details
Type
n/a
Propertypublic  $path= ''''
Default value''Details
Type
n/a

Methods

methodpublic__construct(  $name,  $path,  $package,  $package_key ) : void

Parameters
Name Type Description
$name
$path
$package
$package_key
methodpublicaddField(  $vardef ) : void

Parameters
Name Type Description
$vardef
methodpublicaddFieldObject(  $field ) : void

Parameters
Name Type Description
$field
methodpublicaddInstallDefs(  $installDefs ) : void

Parameters
Name Type Description
$installDefs
methodpublicaddLabel(  $displayLabel ) : void

Required for an MB module to work with Dynamic fields

Parameters
Name Type Description
$displayLabel
methodpublicaddTemplate(  $template ) : void

Parameters
Name Type Description
$template
methodpublicbuild(  $basepath ) : void

Parameters
Name Type Description
$basepath
methodpubliccopy(  $new_name ) : void

Parameters
Name Type Description
$new_name
methodpubliccopyCustomFiles(  $from,  $to ) : void

Parameters
Name Type Description
$from
$to
methodpubliccopyDashlet( ) : void

methodpubliccopyMetaData( ) : void

methodpubliccopyMetaRecursive(  $from,  $to,  $overwrite = false ) : void

Parameters
Name Type Description
$from
$to
$overwrite
methodpubliccopyViews( ) : void

methodpubliccreateClasses(  $path ) : void

Parameters
Name Type Description
$path
methodpubliccreateIcon( ) : void

methodpubliccreateMenu(  $path ) : void

Parameters
Name Type Description
$path
methodpublicdelete( ) : void

methodpublicdeleteDropDown(  $language = 'en_us',  $key ) : void

Parameters
Name Type Description
$language
$key
methodpublicdeleteField(  $name ) : void

Parameters
Name Type Description
$name
methodpublicdeleteLabel(  $language = 'en_us',  $key ) : void

Parameters
Name Type Description
$language
$key
methodpublicfieldExists(  $name = '',  $type = '' ) : void

Parameters
Name Type Description
$name
$type
methodpublicgetAppListStrings(  $language = 'en_us' ) : void

Parameters
Name Type Description
$language
methodpublicgetAvailibleSubpanelDef(  $panelName ) : void

Parameters
Name Type Description
$panelName
methodpublicgetDBName(  $name ) : void

Parameters
Name Type Description
$name
methodpublicgetLabel(  $language = 'en_us',  $key ) : void

Parameters
Name Type Description
$language
$key
methodpublicgetLinkFields( ) : array

Returns an array of fields defs with all the link fields for this module.

Returns
Type Description
array
methodpublicgetLocalSubpanelDef(  $panelName ) : void

Parameters
Name Type Description
$panelName
methodpublicgetModStrings(  $language = 'en_us' ) : void

Parameters
Name Type Description
$language
methodpublicgetModuleDir( ) : void

methodpublicgetModuleName( ) : void

methodpublicgetNodes( ) : void

methodpublicgetPackageName( ) : void

methodpublicgetProvidedSubpanels( ) : void

methodpublicgetRelationships( ) : \UndeployedRelationships

Returns
Type Description
\UndeployedRelationships
methodpublicgetTypes( ) : void

methodpublicgetVardefs(  $by_group = false ) : void

Parameters
Name Type Description
$by_group
methodpublicgetWirelessLayouts( ) : void

methodpublicload( ) : void

Loads the module based on the module name

methodpublicpopulateFromPost( ) : void

methodpublicremoveFieldFromLayouts(  $fieldName ) : void

Parameters
Name Type Description
$fieldName
methodpublicremoveTemplate(  $template ) : void

Parameters
Name Type Description
$template
methodpublicrename(  $new_name ) : void

Parameters
Name Type Description
$new_name
methodpublicrenameLanguageFiles(  $new_dir,  $duplicate = false ) : void

Parameters
Name Type Description
$new_dir
$duplicate
methodpublicrenameMetaData( string $new_dir, string $old_name ) : void

Rename module name in metadata

Parameters
Name Type Description
$new_dir string
$old_name string
methodpublicsave( ) : void

methodpublicsaveAvailibleSubpanelDef(  $panelName,  $layout ) : void

Parameters
Name Type Description
$panelName
$layout
methodpublicsaveConfig( ) : void

methodpublicsetAppListStrings(  $language = 'en_us',  $app_list_strings ) : void

Parameters
Name Type Description
$language
$app_list_strings
methodpublicsetConfigMD5( ) : void

methodpublicsetDropDown(  $language = 'en_us',  $key,  $value ) : void

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

Parameters
Name Type Description
$language
$key
$value
methodpublicsetModStrings(  $language = 'en_us',  $mod_strings ) : void

Parameters
Name Type Description
$language
$mod_strings
Documentation was generated by DocBlox 0.18.1.