modules/DynamicFields/templates/Fields/TemplateDecimal.php

Show: inherited
Table of Contents

\TemplateDecimal

Package:
Parent(s)
\TemplateFloat < \TemplateRange < \TemplateText < \TemplateField

Properties

Propertypublic  $audited= '0'
Default value0Details
Type
n/a
Inherited_from
\TemplateField::$$audited  
Inherited_from
\TemplateText::$$audited  
Inherited_from
\TemplateRange::$$audited  
Inherited_from
\TemplateFloat::$$audited  
Propertypublic  $bean= ''
Details
Type
n/a
Inherited_from
\TemplateField::$$bean  
Inherited_from
\TemplateText::$$bean  
Inherited_from
\TemplateRange::$$bean  
Inherited_from
\TemplateFloat::$$bean  
Propertypublic  $comment= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$comment  
Inherited_from
\TemplateText::$$comment  
Inherited_from
\TemplateRange::$$comment  
Inherited_from
\TemplateFloat::$$comment  
Propertypublic  $default= 'null'
Default valuenullDetails
Type
n/a
Propertypublic  $default_value= 'null'
Default valuenullDetails
Type
n/a
Propertypublic  $ext1= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$ext1  
Inherited_from
\TemplateText::$$ext1  
Inherited_from
\TemplateRange::$$ext1  
Inherited_from
\TemplateFloat::$$ext1  
Propertypublic  $ext2= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$ext2  
Inherited_from
\TemplateText::$$ext2  
Inherited_from
\TemplateRange::$$ext2  
Inherited_from
\TemplateFloat::$$ext2  
Propertypublic  $ext3= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$ext3  
Inherited_from
\TemplateText::$$ext3  
Inherited_from
\TemplateRange::$$ext3  
Inherited_from
\TemplateFloat::$$ext3  
Propertypublic  $ext4= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$ext4  
Inherited_from
\TemplateText::$$ext4  
Inherited_from
\TemplateRange::$$ext4  
Inherited_from
\TemplateFloat::$$ext4  
Propertypublic  $formula= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$formula  
Inherited_from
\TemplateText::$$formula  
Inherited_from
\TemplateRange::$$formula  
Inherited_from
\TemplateFloat::$$formula  
Propertypublic  $help= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$help  
Inherited_from
\TemplateText::$$help  
Inherited_from
\TemplateRange::$$help  
Inherited_from
\TemplateFloat::$$help  
Propertypublic  $id= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$id  
Inherited_from
\TemplateText::$$id  
Inherited_from
\TemplateRange::$$id  
Inherited_from
\TemplateFloat::$$id  
Propertypublic  $importable= ''true''
Default value'true'Details
Type
n/a
Inherited_from
\TemplateField::$$importable  
Inherited_from
\TemplateText::$$importable  
Inherited_from
\TemplateRange::$$importable  
Inherited_from
\TemplateFloat::$$importable  
Propertypublic  $label_value= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$label_value  
Inherited_from
\TemplateText::$$label_value  
Inherited_from
\TemplateRange::$$label_value  
Inherited_from
\TemplateFloat::$$label_value  
Propertypublic  $len= ''18''
inheritedInherited from: \TemplateFloat::$$len
Default value'18'Details
Type
n/a
Inherited_from
\TemplateFloat::$$len  
Propertypublic  $massupdate= '0'
Default value0Details
Type
n/a
Inherited_from
\TemplateField::$$massupdate  
Inherited_from
\TemplateText::$$massupdate  
Inherited_from
\TemplateRange::$$massupdate  
Inherited_from
\TemplateFloat::$$massupdate  
Propertypublic  $name= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$name  
Inherited_from
\TemplateText::$$name  
Inherited_from
\TemplateRange::$$name  
Inherited_from
\TemplateFloat::$$name  
Propertypublic  $precision= ''8''
inheritedInherited from: \TemplateFloat::$$precision
Default value'8'Details
Type
n/a
Inherited_from
\TemplateFloat::$$precision  
Propertypublic  $reportable= 'true'
Default valuetrueDetails
Type
n/a
Inherited_from
\TemplateField::$$reportable  
Inherited_from
\TemplateText::$$reportable  
Inherited_from
\TemplateRange::$$reportable  
Inherited_from
\TemplateFloat::$$reportable  
Propertypublic  $required= 'false'
Default valuefalseDetails
Type
n/a
Inherited_from
\TemplateField::$$required  
Inherited_from
\TemplateText::$$required  
Inherited_from
\TemplateRange::$$required  
Inherited_from
\TemplateFloat::$$required  
Propertypublic  $size= ''20''
Default value'20'Details
Type
n/a
Inherited_from
\TemplateField::$$size  
Inherited_from
\TemplateText::$$size  
Inherited_from
\TemplateRange::$$size  
Inherited_from
\TemplateFloat::$$size  
Propertypublic  $type= ''decimal''
Default value'decimal'Details
Type
n/a
Propertypublic  $vardef_map= 'array( 'name'=>'name', 'label'=>'vname', // bug 15801 - need to ALWAYS keep default and default_value consistent as some methods/classes use one, some use another... 'default_value'=>'default', 'default'=>'default_value', 'display_default'=>'default_value', // 'default_value'=>'default_value', // 'default'=>'default_value', 'len'=>'len', 'required'=>'required', 'type'=>'type', 'audited'=>'audited', 'massupdate'=>'massupdate', 'options'=>'ext1', 'help'=>'help', 'comments'=>'comment', 'importable'=>'importable', 'duplicate_merge'=>'duplicate_merge', 'duplicate_merge_dom_value'=>'duplicate_merge_dom_value', //bug #14897 'merge_filter'=>'merge_filter', 'reportable' => 'reportable', 'min'=>'ext1', 'max'=>'ext2', 'ext2'=>'ext2', 'ext4'=>'ext4', //'disable_num_format'=>'ext3', 'ext3'=>'ext3', 'label_value'=>'label_value', 'unified_search'=>'unified_search', 'full_text_search'=>'full_text_search', )'
Default valuearray( 'name'=>'name', 'label'=>'vname', // bug 15801 - need to ALWAYS keep default and default_value consistent as some methods/classes use one, some use another... 'default_value'=>'default', 'default'=>'default_value', 'display_default'=>'default_value', // 'default_value'=>'default_value', // 'default'=>'default_value', 'len'=>'len', 'required'=>'required', 'type'=>'type', 'audited'=>'audited', 'massupdate'=>'massupdate', 'options'=>'ext1', 'help'=>'help', 'comments'=>'comment', 'importable'=>'importable', 'duplicate_merge'=>'duplicate_merge', 'duplicate_merge_dom_value'=>'duplicate_merge_dom_value', //bug #14897 'merge_filter'=>'merge_filter', 'reportable' => 'reportable', 'min'=>'ext1', 'max'=>'ext2', 'ext2'=>'ext2', 'ext4'=>'ext4', //'disable_num_format'=>'ext3', 'ext3'=>'ext3', 'label_value'=>'label_value', 'unified_search'=>'unified_search', 'full_text_search'=>'full_text_search', )Details
Type
n/a
Inherited_from
\TemplateField::$$vardef_map  
Inherited_from
\TemplateText::$$vardef_map  
Inherited_from
\TemplateRange::$$vardef_map  
Inherited_from
\TemplateFloat::$$vardef_map  
Propertypublic  $view= ''edit''
Default value'edit'Details
Type
n/a
Inherited_from
\TemplateField::$$view  
Inherited_from
\TemplateText::$$view  
Inherited_from
\TemplateRange::$$view  
Inherited_from
\TemplateFloat::$$view  
Propertypublic  $vname= ''''
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$vname  
Inherited_from
\TemplateText::$$vname  
Inherited_from
\TemplateRange::$$vname  
Inherited_from
\TemplateFloat::$$vname  

Methods

methodpublicTemplateDecimal( ) : void

methodpublicTemplateFloat( ) : void
inherited

Inherited from: \TemplateFloat::TemplateFloat()
methodpublic__construct( ) : void
inherited

__construct

Inherited from: \TemplateRange::__construct()\TemplateFloat::__construct()

Constructor for class. This constructor ensures that TemplateRanage instances have the enable_range_search vardef value.

methodprotectedconvertBooleanValue(  $value ) : void
Parameters
Name Type Description
$value
methodpublicdelete(  $df ) : void
Parameters
Name Type Description
$df
methodpublicgetDupMergeDomValue( ) : int
inherited

duplicate_merge_dom_value drives the dropdown in the studio editor. This dropdown drives two fields though, duplicate_merge and merge_filter. When duplicate_merge_dom_value is not set, we need to derive it from the values of those two fields. Also, when studio sends this value down to be read in PopulateFromPost, it is set to duplicate_merge rather than duplicate_merge_dom_value, so we must check if duplicate_merge is a number rather than a string as well.

Inherited from: \TemplateField::getDupMergeDomValue()\TemplateText::getDupMergeDomValue()\TemplateRange::getDupMergeDomValue()\TemplateFloat::getDupMergeDomValue()
Returns
Type Description
int
methodpublicget_db_add_alter_table(  $table ) : void
inherited

Oracle Support: do not set required constraint if no default value is supplied.

Inherited from: \TemplateField::get_db_add_alter_table()\TemplateText::get_db_add_alter_table()\TemplateRange::get_db_add_alter_table()\TemplateFloat::get_db_add_alter_table()

In this case the default value will be handled by the application/sugarbean.

Parameters
Name Type Description
$table
methodpublicget_db_default(  $modify = false ) : void
Parameters
Name Type Description
$modify
methodpublicget_db_modify_alter_table(  $table ) : void
Parameters
Name Type Description
$table
methodpublicget_db_required(  $modify = false ) : void
Parameters
Name Type Description
$modify
methodpublicget_db_type( ) : void

methodpublicget_dup_merge_def(  $def ) : void
Parameters
Name Type Description
$def
methodpublicget_field_def( ) : void
inherited

get_field_def

Inherited from: \TemplateFloat::get_field_def()
methodprotectedget_field_name( String $module, String $name ) : \The

This is a helper function to return a field's proper name. It checks to see if an instance of the module can be created and then attempts to retrieve the field's name based on the name lookup skey supplied to the method.

Parameters
Name Type Description
$module String

The name of the module

$name String

The field name key

Returns
Type Description
\The field name for the module
methodpublicget_xtpl(  $bean = false ) : void
Parameters
Name Type Description
$bean
methodpublicpopulateFromPost( ) : void
Details
See
\parent::populateFromPost  
methodpublicpopulateFromRow( \$row $row = array() ) : void
inherited

populateFromRow This function supports setting the values of all TemplateField instances.

Inherited from: \TemplateField::populateFromRow()\TemplateText::populateFromRow()\TemplateRange::populateFromRow()\TemplateFloat::populateFromRow()
Parameters
Name Type Description
$row \$row

The Array key/value pairs from fields_meta_data table

methodpublicrepairCustomSearchFields(  $vardefs,  $module,  $package = '' ) : void
Parameters
Name Type Description
$vardefs
$module
$package
methodpublicsave( \DynamicField $df ) : void

This function says the field template by calling the DynamicField addFieldObject function. It then checks to see if updates are needed for the SearchFields.php file. In the event that the unified_search member variable is set to true, a search field definition is updated/created to the SearchFields.php file.

Parameters
Name Type Description
$df \DynamicField
methodpublicset(  $values ) : void
Parameters
Name Type Description
$values
Documentation was generated by DocBlox 0.18.1.