portal/include/SugarFields/SugarFieldHandler.php

Show: inherited
Table of Contents

\SugarFieldHandler

Package:

Properties

Propertypublic  $sugarFieldObjects= 'array()'
Default valuearray()Details
Type
n/a

Methods

methodpublicSugarFieldHandler( ) : void

methodpublicdisplayJSValidation(  $vardef,  $formname,  $displayParams = array() ) : void

Parameters
Name Type Description
$vardef
$formname
$displayParams
methodpublicdisplaySmarty( \parentFieldArray $parentFieldArray, \vardef $vardef, \displayType $displayType, \displayParam $displayParams = array() ) : void

Returns the smarty code to be used in a template built by TemplateHandler The SugarField class is choosen dependant on the vardef's type field.

Parameters
Name Type Description
$parentFieldArray \parentFieldArray

string name of the variable in the parent template for the bean's data

$vardef \vardef

vardef field defintion

$displayType \displayType

string the display type for the field (eg DetailView, EditView, etc)

$displayParams \displayParam

parameters for displayin available paramters are: * labelSpan - column span for the label * fieldSpan - column span for the field

methodpublicgetSugarField( \field $field ) : void

return the singleton of the SugarField

Parameters
Name Type Description
$field \field

string field type

Documentation was generated by DocBlox 0.18.1.