modules/ExpressionEngine/formulaHelper.php
\FormulaHelper
Package:
Methods
cleanFields(
array $fieldDef, $includeLinks
=
true, $forRelatedField
=
false, $returnKeys
=
false
)
:
array
static
Takes an array of field defs and returns a formated list of fields that are valid for use in expressions.
Parameters
Returns
Name | Type | Description |
---|---|---|
$fieldDef | array | |
$includeLinks | ||
$forRelatedField | ||
$returnKeys |
Type | Description |
---|---|
array |
getLinksForMBModule(
$module, $package
)
:
void
static
For In module builder, the vardef and link fields are not yet solidifed, so we need to run through the undeployed relationships and get the link fields from there
Parameters
Name | Type | Description |
---|---|---|
$module | ||
$package |
getLinksForModule(
string $module, \MBPackage $package
=
null
)
:
array
static
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$module | string | |
$package | \MBPackage |
Type | Description |
---|---|
array | set of links that are valid for related module function is the formula builder |
- Static
getRelatableFieldsForLink(
array $link, \MBPackage $package
=
null, array $allowedTypes
=
array()
)
:
array
static
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$link | array | |
$package | \MBPackage | |
$allowedTypes | array | list of types to allow as related fields |
Type | Description |
---|---|
array |
- Static