modules/ExpressionEngine/formulaHelper.php

Show: inherited
Table of Contents

\FormulaHelper

Package:

Methods

methodpubliccleanFields( 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
Name Type Description
$fieldDef array
$includeLinks
$forRelatedField
$returnKeys
Returns
Type Description
array
methodpublicgetFieldValue(  $focus,  $field ) : void
static

Parameters
Name Type Description
$focus
$field
methodprotectedgetLinksForDeployedModule(  $module ) : void
static

Parameters
Name Type Description
$module
methodprotectedgetLinksForMBModule(  $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
methodpublicgetLinksForModule( string $module, \MBPackage $package = null ) : array
static

Parameters
Name Type Description
$module string
$package \MBPackage
Returns
Type Description
array set of links that are valid for related module function is the formula builder
Details
Static
 
methodpublicgetRelatableFieldsForLink( array $link, \MBPackage $package = null, array $allowedTypes = array() ) : array
static

Parameters
Name Type Description
$link array
$package \MBPackage
$allowedTypes array

list of types to allow as related fields

Returns
Type Description
array
Details
Static
 
methodprotectedisFalse(  $v ) : void
static

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