include/SugarFields/SugarFieldHandler.php

Show: inherited
Table of Contents

\SugarFieldHandler

Package: SugarCRM

Handle Sugar fields

Api
 

Methods

methodpublicSugarFieldHandler( ) : void

methodpublicdisplaySmarty( \parentFieldArray $parentFieldArray, \vardef $vardef, \displayType $displayType, \displayParam $displayParams = array(),  $tabindex = 1 ) : void
static

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

$tabindex
methodpublicfixupFieldType(  $field ) : void
static

Parameters
Name Type Description
$field
methodpublicgetSugarField( \field $field,  $returnNullIfBase = false ) : void
static

return the singleton of the SugarField

Parameters
Name Type Description
$field \field

string field type

$returnNullIfBase
Documentation was generated by DocBlox 0.18.1.