modules/DynamicFields/templates/Fields/TemplateBoolean.php

Show: inherited
Table of Contents

\TemplateBoolean

Package:
Parent(s)
\TemplateField

Properties

Propertypublic  $audited= '0'
inheritedInherited from: \TemplateField::$$audited
Default value0Details
Type
n/a
Inherited_from
\TemplateField::$$audited  
Propertypublic  $bean= ''
inheritedInherited from: \TemplateField::$$bean
Details
Type
n/a
Inherited_from
\TemplateField::$$bean  
Propertypublic  $comment= ''''
inheritedInherited from: \TemplateField::$$comment
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$comment  
Propertypublic  $decode_from_request_fields_map= 'array('formula', 'dependency')'
Default valuearray('formula', 'dependency')Details
Type
n/a
Inherited_from
\TemplateField::$$decode_from_request_fields_map  
Propertypublic  $default= ''0''
Default value'0'Details
Type
n/a
Propertypublic  $default_value= ''0''
Default value'0'Details
Type
n/a
Propertypublic  $duplicate_merge= '0'
inheritedInherited from: \TemplateField::$$duplicate_merge
Default value0Details
Type
n/a
Inherited_from
\TemplateField::$$duplicate_merge  
Propertypublic  $ext1= ''''
inheritedInherited from: \TemplateField::$$ext1
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$ext1  
Propertypublic  $ext2= ''''
inheritedInherited from: \TemplateField::$$ext2
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$ext2  
Propertypublic  $ext3= ''''
inheritedInherited from: \TemplateField::$$ext3
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$ext3  
Propertypublic  $ext4= ''''
inheritedInherited from: \TemplateField::$$ext4
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$ext4  
Propertypublic  $formula= ''''
inheritedInherited from: \TemplateField::$$formula
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$formula  
Propertypublic  $help= ''''
inheritedInherited from: \TemplateField::$$help
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$help  
Propertypublic  $id= ''''
inheritedInherited from: \TemplateField::$$id
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$id  
Propertypublic  $importable= ''true''
inheritedInherited from: \TemplateField::$$importable
Default value'true'Details
Type
n/a
Inherited_from
\TemplateField::$$importable  
Propertypublic  $label_value= ''''
inheritedInherited from: \TemplateField::$$label_value
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$label_value  
Propertypublic  $len= ''255''
inheritedInherited from: \TemplateField::$$len
Default value'255'Details
Type
n/a
Inherited_from
\TemplateField::$$len  
Propertypublic  $massupdate= '0'
inheritedInherited from: \TemplateField::$$massupdate
Default value0Details
Type
n/a
Inherited_from
\TemplateField::$$massupdate  
Propertypublic  $name= ''''
inheritedInherited from: \TemplateField::$$name
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$name  
Propertypublic  $new_field_definition= ''
inheritedInherited from: \TemplateField::$$new_field_definition
Details
Type
n/a
Inherited_from
\TemplateField::$$new_field_definition  
Propertypublic  $reportable= 'true'
inheritedInherited from: \TemplateField::$$reportable
Default valuetrueDetails
Type
n/a
Inherited_from
\TemplateField::$$reportable  
Propertypublic  $required= 'false'
inheritedInherited from: \TemplateField::$$required
Default valuefalseDetails
Type
n/a
Inherited_from
\TemplateField::$$required  
Propertypublic  $size= ''20''
inheritedInherited from: \TemplateField::$$size
Default value'20'Details
Type
n/a
Inherited_from
\TemplateField::$$size  
Propertypublic  $supports_unified_search= 'false'
Default valuefalseDetails
Type
n/a
Inherited_from
\TemplateField::$$supports_unified_search  
Propertypublic  $type= ''bool''
Default value'bool'Details
Type
n/a
Propertypublic  $unified_search= '0'
inheritedInherited from: \TemplateField::$$unified_search
Default value0Details
Type
n/a
Inherited_from
\TemplateField::$$unified_search  
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', 'ext2'=>'ext2', 'ext4'=>'ext4', 'ext3'=>'ext3', 'label_value'=>'label_value', 'unified_search'=>'unified_search', 'full_text_search'=>'full_text_search', 'calculated' => 'calculated', 'formula' => 'formula', 'enforced' => 'enforced', 'dependency' => 'dependency', )'
inheritedInherited from: \TemplateField::$$vardef_map
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', 'ext2'=>'ext2', 'ext4'=>'ext4', 'ext3'=>'ext3', 'label_value'=>'label_value', 'unified_search'=>'unified_search', 'full_text_search'=>'full_text_search', 'calculated' => 'calculated', 'formula' => 'formula', 'enforced' => 'enforced', 'dependency' => 'dependency', )Details
Type
n/a
Inherited_from
\TemplateField::$$vardef_map  
Propertypublic  $view= ''edit''
inheritedInherited from: \TemplateField::$$view
Default value'edit'Details
Type
n/a
Inherited_from
\TemplateField::$$view  
Propertypublic  $vname= ''''
inheritedInherited from: \TemplateField::$$vname
Default value''Details
Type
n/a
Inherited_from
\TemplateField::$$vname  

Methods

methodprotectedapplyVardefRules( ) : void
inherited

Inherited from: \TemplateField::applyVardefRules()
methodprotectedconvertBooleanValue(  $value ) : void
inherited

Inherited from: \TemplateField::convertBooleanValue()
Parameters
Name Type Description
$value
methodpublicdelete(  $df ) : void
inherited

Inherited from: \TemplateField::delete()
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()
Returns
Type Description
int
methodpublicget_additional_defs( ) : void
inherited

Inherited from: \TemplateField::get_additional_defs()
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()

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

Parameters
Name Type Description
$table
methodpublicget_db_default(  $modify = false ) : void
inherited

Inherited from: \TemplateField::get_db_default()
Parameters
Name Type Description
$modify
methodpublicget_db_delete_alter_table(  $table ) : void
Parameters
Name Type Description
$table
methodpublicget_db_modify_alter_table(  $table ) : void
inherited

mysql requires the datatype caluse in the alter statment.it will be no-op anyway.

Inherited from: \TemplateField::get_db_modify_alter_table()
Parameters
Name Type Description
$table
methodpublicget_db_required(  $modify = false ) : void
inherited

Inherited from: \TemplateField::get_db_required()
Parameters
Name Type Description
$modify
methodpublicget_db_type( ) : void
inherited

Inherited from: \TemplateField::get_db_type()
methodpublicget_dup_merge_def(  $def ) : void
inherited

Inherited from: \TemplateField::get_dup_merge_def()
Parameters
Name Type Description
$def
methodpublicget_field_def( ) : void
inherited

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

get_field_name

Inherited from: \TemplateField::get_field_name()

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_html( ) : void
inherited

Inherited from: \TemplateField::get_html()
methodpublicget_html_detail( ) : void
inherited

Inherited from: \TemplateField::get_html_detail()
methodpublicget_html_edit( ) : void
inherited

Inherited from: \TemplateField::get_html_edit()
methodpublicget_html_label( ) : void
inherited

Inherited from: \TemplateField::get_html_label()
methodpublicget_html_list( ) : void
inherited

Inherited from: \TemplateField::get_html_list()
methodpublicget_html_search( ) : void
inherited

Inherited from: \TemplateField::get_html_search()
methodpublicget_xtpl(  $bean = false ) : void
inherited

Inherited from: \TemplateField::get_xtpl()
Parameters
Name Type Description
$bean
methodpublicget_xtpl_detail( ) : void

methodpublicget_xtpl_edit( ) : void

methodpublicget_xtpl_list( ) : void

methodpublicget_xtpl_search( ) : void

methodpublicis_required( ) : void
inherited

Inherited from: \TemplateField::is_required()
methodpublicpopulateFromPost( ) : void
inherited

Inherited from: \TemplateField::populateFromPost()
methodpublicpopulateFromRow( \$row $row = array() ) : void
inherited

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

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

The Array key/value pairs from fields_meta_data table

methodpublicprepare( ) : void
inherited

Inherited from: \TemplateField::prepare()
methodpublicsave( \DynamicField $df ) : void
inherited

save

Inherited from: \TemplateField::save()

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
inherited

Inherited from: \TemplateField::set()
Parameters
Name Type Description
$values
Documentation was generated by DocBlox 0.18.1.