include/generic/SugarWidgets/SugarWidgetFieldrelate.php
\SugarWidgetFieldRelate
Generic Sugar widget
- Parent(s)
- \SugarWidgetReportField < \SugarWidgetField < \SugarWidget
Properties


$form_value= ''
- Type
- n/a
- Inherited_from
- \SugarWidget::$$form_value
- Inherited_from
- \SugarWidgetField::$$form_value
- Inherited_from
- \SugarWidgetReportField::$$form_value


$layout_manager= 'null'
null
Details- Type
- n/a
- Inherited_from
- \SugarWidget::$$layout_manager
- Inherited_from
- \SugarWidgetField::$$layout_manager
- Inherited_from
- \SugarWidgetReportField::$$layout_manager


$widget_id= ''
- Type
- n/a
- Inherited_from
- \SugarWidget::$$widget_id
- Inherited_from
- \SugarWidgetField::$$widget_id
- Inherited_from
- \SugarWidgetReportField::$$widget_id
Methods


SugarWidget(
$layout_manager
)
:
void
Name | Type | Description |
---|---|---|
$layout_manager |


SugarWidgetField(
$layout_manager
)
:
void
Name | Type | Description |
---|---|---|
$layout_manager |


SugarWidgetReportField(
$layout_manager
)
:
void
Name | Type | Description |
---|---|---|
$layout_manager |


_get_column_alias(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


_get_column_select(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


_get_column_select_special(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


_get_list_value(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


display(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


displayDetail(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


displayDetailLabel(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


displayEditLabel(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


displayHeaderCell(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


displayHeaderCellPlain(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


displayInput(
array $layout_def
)
:
string
Method returns HTML of input on configure dashlet page
Name | Type | Description |
---|---|---|
$layout_def | array | definition of a field |
Type | Description |
---|---|
string | HTML of select for edit page |


displaySearch(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


displaySearchLabel(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


getSubClass(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


getTruncatedColumnAlias(
$column_name
)
:
void
getTruncatedColumnAlias This function ensures that a column alias is no more than 28 characters. Should the column_name argument exceed 28 charcters, it creates an alias using the first 22 characters of the column_name plus an md5 of the first 6 characters of the lowercased column_name value.
Inherited from: \SugarWidget::getTruncatedColumnAlias()\SugarWidgetField::getTruncatedColumnAlias()\SugarWidgetReportField::getTruncatedColumnAlias()Name | Type | Description |
---|---|---|
$column_name |


getWidgetId(
)
:
\id
getSubpanelWidgetId This is a utility function to return a widget's unique id
Inherited from: \SugarWidget::getWidgetId()\SugarWidgetField::getWidgetId()\SugarWidgetReportField::getWidgetId()Type | Description |
---|---|
\id | String label of the widget's unique id |


query(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


queryFilter(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


queryFilterEmpty(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


queryFilterIs(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


queryFilterNot_Empty(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


queryFilterStarts_With(
array $layout_def, bool $rename_columns
=
true
)
:
string
Method returns part of where in style table_alias.id IN (...) because we can't join of relation
Name | Type | Description |
---|---|---|
$layout_def | array | definition of a field |
$rename_columns | bool | unused |
Type | Description |
---|---|
string | SQL where part |


queryFilteris_not(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


queryFilterone_of(
array $layout_def, bool $rename_columns
=
true
)
:
string
Method returns part of where in style table_alias.id IN (...) because we can't join of relation
Name | Type | Description |
---|---|---|
$layout_def | array | definition of a field |
$rename_columns | bool | unused |
Type | Description |
---|---|
string | SQL where part |


queryGroupBy(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


queryOrderBy(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


querySelect(
$layout_def
)
:
void
Name | Type | Description |
---|---|---|
$layout_def |


setWidgetId(
\id $id
=
''
)
:
void
setSubpanelWidgetId This is a utility function to set the id for a widget
Inherited from: \SugarWidget::setWidgetId()\SugarWidgetField::setWidgetId()\SugarWidgetReportField::setWidgetId()Name | Type | Description |
---|---|---|
$id | \id | String value to set the widget's unique id |