modules/ModuleBuilder/parsers/views/SubpanelMetaDataParser.php
\SubpanelMetaDataParser
- Parent(s)
- \ListLayoutMetaDataParser < \AbstractMetaDataParser
Properties


$_fielddefs= ''
- Type
- n/a
- Inherited_from
- \AbstractMetaDataParser::$$_fielddefs
- Inherited_from
- \ListLayoutMetaDataParser::$$_fielddefs


$_moduleName= ''
- Type
- n/a
- Inherited_from
- \AbstractMetaDataParser::$$_moduleName
- Inherited_from
- \ListLayoutMetaDataParser::$$_moduleName


$_viewdefs= ''
- Type
- n/a
- Inherited_from
- \AbstractMetaDataParser::$$_viewdefs
- Inherited_from
- \ListLayoutMetaDataParser::$$_viewdefs


$allowParent= 'false'
false
Details- Type
- n/a
- Inherited_from
- \ListLayoutMetaDataParser::$$allowParent


$columns= 'array ( 'LBL_DEFAULT' => 'getDefaultFields' , 'LBL_HIDDEN' => 'getAvailableFields' )'
array ( 'LBL_DEFAULT' => 'getDefaultFields' , 'LBL_HIDDEN' => 'getAvailableFields' )
Details- Type
- n/a


$implementation= ''
- Type
- n/a
- Inherited_from
- \AbstractMetaDataParser::$$implementation
- Inherited_from
- \ListLayoutMetaDataParser::$$implementation
Methods


__construct(
$subpanelName, $moduleName, $packageName
=
''
)
:
void
Name | Type | Description |
---|---|---|
$subpanelName | ||
$moduleName | ||
$packageName |


_populateFromRequest(
)
:
void


_standardizeFieldLabels(
$fielddefs
)
:
void
Name | Type | Description |
---|---|---|
$fielddefs |


getAdditionalFields(
)
:
array
Returns additional fields available for users to create fields
Inherited from: \ListLayoutMetaDataParser::getAdditionalFields()Type | Description |
---|---|
array | List of additional fields as an array, where key = value = <field name> |


getAvailableFields(
)
:
array
Returns unused fields that are available for use in either default or additional list views
Inherited from: \ListLayoutMetaDataParser::getAvailableFields()Type | Description |
---|---|
array | List of available fields as an array, where key = value = <field name> |


getDefaultFields(
)
:
array
Return a list of the default fields for a subpanel TODO: have this return just a list of fields, without definitions
Type | Description |
---|---|
array | List of default fields as an array, where key = value = <field name> |


getFieldDefs(
)
:
void


getHistory(
)
:
void


getLanguage(
)
:
void


getLayoutAsArray(
)
:
void


getOriginalViewDefs(
)
:
void


getRequiredFields(
)
:
void


isTrue(
$val
)
:
bool
Used to determine if a field property is true or false given that it could be the boolean value or a string value such use 'false' or '0'
Inherited from: \AbstractMetaDataParser::isTrue()\ListLayoutMetaDataParser::isTrue()Name | Type | Description |
---|---|---|
$val |
Type | Description |
---|---|
bool |
- Static


isValidField(
$key, $def
)
:
void
Name | Type | Description |
---|---|---|
$key | ||
$def |


makeRelateFieldsAsLink(
Array $defs
)
:
\$defs
makeRelateFieldsAsLink This method will go through the subpanel definition entries being saved and then apply formatting to any that are relate field so that a link to the related record may be shown in the subpanel code. This is done by adding the widget_class, target_module and target_record_key deltas to the related subpanel definition entry.
Name | Type | Description |
---|---|---|
$defs | Array | of subpanel definitions to possibly alter |
Type | Description |
---|---|
\$defs | Array of formatted subpanel definition entries to include any relate field attributes for Subpanels |


removeField(
$fieldName
)
:
void
Name | Type | Description |
---|---|---|
$fieldName |


restoreInvisibleFields(
$invisibleFields, $viewdefs
)
:
void
Name | Type | Description |
---|---|---|
$invisibleFields | ||
$viewdefs |


validField(
$def, $view
=
""
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$view |