BuilderElementRenderUtil Class Reference

Static Public Member Functions

static renderEditable ($className, $renderForCanvas=false, $id=null, $properties=null, $content=null, $params=null)
static renderNonEditable ($className, $renderForCanvas=false, $wrapElementInRow=0, $id=null, $properties=null, $content=null, $params=null)
static resolveElement ($className, $renderForCanvas=false, $id=null, $properties=null, $content=null, $params=null)
static resolveSerializedDataByElement (BaseBuilderElement $element, $serializedProperties=false, $serializedContent=false)
static validateEditableForm ()

Data Fields

const DO_NOT_WRAP_IN_ROW = 0
const WRAP_IN_ROW = 1
const WRAP_IN_HEADER_ROW = 2

Static Protected Member Functions

static resolveToArrayIfJson (&$content)

Detailed Description

Class BuilderElementRenderUtil Utility class to render builder elements. This should always be preferred over directly invoking Builder element's construct.

Definition at line 42 of file BuilderElementRenderUtil.php.


Member Function Documentation

static renderEditable ( className,
renderForCanvas = false,
id = null,
properties = null,
content = null,
params = null 
) [static]

Render an element as editable

Parameters:
$className 
bool $renderForCanvas
null $id
null $properties
null $content
null $params
Returns:
string

Definition at line 60 of file BuilderElementRenderUtil.php.

static renderNonEditable ( className,
renderForCanvas = false,
wrapElementInRow = 0,
id = null,
properties = null,
content = null,
params = null 
) [static]

Render an element as noneditable

Parameters:
$className 
bool $renderForCanvas
bool $wrapElementInRow
null $id
null $properties
null $content
null $params
Returns:
string

Definition at line 79 of file BuilderElementRenderUtil.php.

static resolveElement ( className,
renderForCanvas = false,
id = null,
properties = null,
content = null,
params = null 
) [static]

Resolve a builder element

Parameters:
$className 
bool $renderForCanvas
null $id
null $properties
null $content
null $params
Returns:
BaseBuilderElement

Definition at line 115 of file BuilderElementRenderUtil.php.

static resolveSerializedDataByElement ( BaseBuilderElement element,
serializedProperties = false,
serializedContent = false 
) [static]

Resolve serialized data array for an element.

Parameters:
BaseBuilderElement $element
bool $serializedProperties
bool $serializedContent
Returns:
array

Definition at line 134 of file BuilderElementRenderUtil.php.

static resolveToArrayIfJson ( &$  content  )  [static, protected]

Resolve a string to array if its appears to be json

Parameters:
$content 

Definition at line 148 of file BuilderElementRenderUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Oct 21 07:10:23 2017