include/SugarFields/SugarFieldHandler.php
\SugarFieldHandler
Package: SugarCRM
Handle Sugar fields
- Api
 
Methods

displaySmarty(
          \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 |