modules/DynamicFields/templates/Fields/TemplateIFrame.php
\TemplateIFrame
- Parent(s)
- \TemplateURL < \TemplateText < \TemplateField
Properties
$audited= '0'
0
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$audited
- Inherited_from
- \TemplateText::$$audited
- Inherited_from
- \TemplateURL::$$audited
$bean= ''
- Type
- n/a
- Inherited_from
- \TemplateField::$$bean
- Inherited_from
- \TemplateText::$$bean
- Inherited_from
- \TemplateURL::$$bean
$comment= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$comment
- Inherited_from
- \TemplateText::$$comment
- Inherited_from
- \TemplateURL::$$comment
$decode_from_request_fields_map= 'array('formula', 'dependency')'
array('formula', 'dependency')
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$decode_from_request_fields_map
- Inherited_from
- \TemplateText::$$decode_from_request_fields_map
- Inherited_from
- \TemplateURL::$$decode_from_request_fields_map
$default= 'null'
null
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$default
- Inherited_from
- \TemplateText::$$default
- Inherited_from
- \TemplateURL::$$default
$default_value= 'null'
null
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$default_value
- Inherited_from
- \TemplateText::$$default_value
- Inherited_from
- \TemplateURL::$$default_value
$duplicate_merge= '0'
0
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$duplicate_merge
- Inherited_from
- \TemplateText::$$duplicate_merge
- Inherited_from
- \TemplateURL::$$duplicate_merge
$ext1= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$ext1
- Inherited_from
- \TemplateText::$$ext1
- Inherited_from
- \TemplateURL::$$ext1
$ext2= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$ext2
- Inherited_from
- \TemplateText::$$ext2
- Inherited_from
- \TemplateURL::$$ext2
$ext3= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$ext3
- Inherited_from
- \TemplateText::$$ext3
- Inherited_from
- \TemplateURL::$$ext3
$ext4= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$ext4
- Inherited_from
- \TemplateText::$$ext4
- Inherited_from
- \TemplateURL::$$ext4
$formula= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$formula
- Inherited_from
- \TemplateText::$$formula
- Inherited_from
- \TemplateURL::$$formula
$help= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$help
- Inherited_from
- \TemplateText::$$help
- Inherited_from
- \TemplateURL::$$help
$id= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$id
- Inherited_from
- \TemplateText::$$id
- Inherited_from
- \TemplateURL::$$id
$importable= ''true''
'true'
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$importable
- Inherited_from
- \TemplateText::$$importable
- Inherited_from
- \TemplateURL::$$importable
$label_value= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$label_value
- Inherited_from
- \TemplateText::$$label_value
- Inherited_from
- \TemplateURL::$$label_value
$len= ''255''
'255'
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$len
- Inherited_from
- \TemplateText::$$len
- Inherited_from
- \TemplateURL::$$len
$massupdate= '0'
0
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$massupdate
- Inherited_from
- \TemplateText::$$massupdate
- Inherited_from
- \TemplateURL::$$massupdate
$name= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$name
- Inherited_from
- \TemplateText::$$name
- Inherited_from
- \TemplateURL::$$name
$new_field_definition= ''
- Type
- n/a
- Inherited_from
- \TemplateField::$$new_field_definition
- Inherited_from
- \TemplateText::$$new_field_definition
- Inherited_from
- \TemplateURL::$$new_field_definition
$reportable= 'true'
true
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$reportable
- Inherited_from
- \TemplateText::$$reportable
- Inherited_from
- \TemplateURL::$$reportable
$required= 'false'
false
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$required
- Inherited_from
- \TemplateText::$$required
- Inherited_from
- \TemplateURL::$$required
$size= ''20''
'20'
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$size
- Inherited_from
- \TemplateText::$$size
- Inherited_from
- \TemplateURL::$$size
$supports_unified_search= 'true'
true
Details- Type
- n/a
- Inherited_from
- \TemplateURL::$$supports_unified_search
$unified_search= '0'
0
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$unified_search
- Inherited_from
- \TemplateText::$$unified_search
- Inherited_from
- \TemplateURL::$$unified_search
$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',
)'
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',
)
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$vardef_map
- Inherited_from
- \TemplateText::$$vardef_map
- Inherited_from
- \TemplateURL::$$vardef_map
$view= ''edit''
'edit'
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$view
- Inherited_from
- \TemplateText::$$view
- Inherited_from
- \TemplateURL::$$view
$vname= ''''
''
Details- Type
- n/a
- Inherited_from
- \TemplateField::$$vname
- Inherited_from
- \TemplateText::$$vname
- Inherited_from
- \TemplateURL::$$vname
Methods
applyVardefRules(
)
:
void
convertBooleanValue(
$value
)
:
void
Name | Type | Description |
---|---|---|
$value |
getDupMergeDomValue(
)
:
int
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()\TemplateURL::getDupMergeDomValue()Type | Description |
---|---|
int |
get_db_add_alter_table(
$table
)
:
void
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()\TemplateURL::get_db_add_alter_table()In this case the default value will be handled by the application/sugarbean.
Name | Type | Description |
---|---|---|
$table |
get_db_default(
$modify
=
false
)
:
void
Name | Type | Description |
---|---|---|
$modify |
get_db_delete_alter_table(
$table
)
:
void
Name | Type | Description |
---|---|---|
$table |
get_db_modify_alter_table(
$table
)
:
void
mysql requires the datatype caluse in the alter statment.it will be no-op anyway.
Inherited from: \TemplateField::get_db_modify_alter_table()\TemplateText::get_db_modify_alter_table()\TemplateURL::get_db_modify_alter_table()Name | Type | Description |
---|---|---|
$table |
get_db_required(
$modify
=
false
)
:
void
Name | Type | Description |
---|---|---|
$modify |
get_db_type(
)
:
void
get_dup_merge_def(
$def
)
:
void
Name | Type | Description |
---|---|---|
$def |
get_field_name(
String $module, String $name
)
:
\The
get_field_name
Inherited from: \TemplateField::get_field_name()\TemplateText::get_field_name()\TemplateURL::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.
Name | Type | Description |
---|---|---|
$module | String | The name of the module |
$name | String | The field name key |
Type | Description |
---|---|
\The | field name for the module |
get_html(
)
:
void
get_html_list(
)
:
void
get_html_search(
)
:
void
get_xtpl(
$bean
=
false
)
:
void
Name | Type | Description |
---|---|---|
$bean |
get_xtpl_list(
)
:
void
is_required(
)
:
void
populateFromPost(
)
:
void
populateFromRow(
\$row $row
=
array()
)
:
void
populateFromRow This function supports setting the values of all TemplateField instances.
Inherited from: \TemplateField::populateFromRow()\TemplateText::populateFromRow()\TemplateURL::populateFromRow()Name | Type | Description |
---|---|---|
$row | \$row | The Array key/value pairs from fields_meta_data table |
save(
\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.
Name | Type | Description |
---|---|---|
$df | \DynamicField |