modules/ModuleBuilder/parsers/views/SubpanelMetaDataParser.php

Show: inherited
Table of Contents

\SubpanelMetaDataParser

Package:
Parent(s)
\ListLayoutMetaDataParser < \AbstractMetaDataParser

Properties

Propertypublic  $_viewdefs= ''
Details
Type
n/a
Inherited_from
\AbstractMetaDataParser::$$_viewdefs  
Inherited_from
\ListLayoutMetaDataParser::$$_viewdefs  
Propertyprotected  $allowParent= 'false'
inheritedInherited from: \ListLayoutMetaDataParser::$$allowParent
Default valuefalseDetails
Type
n/a
Inherited_from
\ListLayoutMetaDataParser::$$allowParent  
Propertypublic  $columns= 'array ( 'LBL_DEFAULT' => 'getDefaultFields' , 'LBL_HIDDEN' => 'getAvailableFields' )'
Default valuearray ( 'LBL_DEFAULT' => 'getDefaultFields' , 'LBL_HIDDEN' => 'getAvailableFields' )Details
Type
n/a
Propertyprotected  $labelIdentifier= ''vname''
Default value'vname'Details
Type
n/a

Methods

methodpublic__construct(  $subpanelName,  $moduleName,  $packageName = '' ) : void

Parameters
Name Type Description
$subpanelName
$moduleName
$packageName
methodprotected_populateFromRequest( ) : void
methodprotected_standardizeFieldLabels(  $fielddefs ) : void
Parameters
Name Type Description
$fielddefs
methodpublic_trimFieldDefs(  $def ) : void
static

Parameters
Name Type Description
$def
methodpublicfindInvisibleFields(  $viewdefs ) : void

Parameters
Name Type Description
$viewdefs
methodpublicgetAdditionalFields( ) : array
inherited

Returns additional fields available for users to create fields

Inherited from: \ListLayoutMetaDataParser::getAdditionalFields()
Returns
Type Description
array List of additional fields as an array, where key = value = <field name>
methodpublicgetArrayDiff(  $one,  $two ) : void
staticinherited

Inherited from: \ListLayoutMetaDataParser::getArrayDiff()
Parameters
Name Type Description
$one
$two
methodpublicgetAvailableFields( ) : array
inherited

Returns unused fields that are available for use in either default or additional list views

Inherited from: \ListLayoutMetaDataParser::getAvailableFields()
Returns
Type Description
array List of available fields as an array, where key = value = <field name>
methodpublicgetDefaultFields( ) : array

Return a list of the default fields for a subpanel TODO: have this return just a list of fields, without definitions

Returns
Type Description
array List of default fields as an array, where key = value = <field name>
methodpublicgetLayout( ) : void
inherited

Inherited from: \ListLayoutMetaDataParser::getLayout()
methodpublicgetOriginalViewDefs( ) : void
methodpublichandleSave(  $populate = true ) : void

Parameters
Name Type Description
$populate
methodprotectedisTrue(  $val ) : bool
staticinherited

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()
Parameters
Name Type Description
$val
Returns
Type Description
bool
Details
Static
 
methodpublicisValidField(  $key,  $def ) : void
inherited

Inherited from: \ListLayoutMetaDataParser::isValidField()
Parameters
Name Type Description
$key
$def
methodprotectedmakeRelateFieldsAsLink( 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.

Parameters
Name Type Description
$defs Array

of subpanel definitions to possibly alter

Returns
Type Description
\$defs Array of formatted subpanel definition entries to include any relate field attributes for Subpanels
methodpublicremoveField(  $fieldName ) : void
inherited

Inherited from: \ListLayoutMetaDataParser::removeField()
Parameters
Name Type Description
$fieldName
methodpublicrestoreInvisibleFields(  $invisibleFields,  $viewdefs ) : void

Parameters
Name Type Description
$invisibleFields
$viewdefs
methodpublicvalidField(  $def,  $view = "" ) : void
Parameters
Name Type Description
$def
$view
Documentation was generated by DocBlox 0.18.1.