include/formbase.php
Functions
add_prospects_to_prospect_list(
$parent_id, $child_id
)
:
voidFunctions from Save2.php
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $parent_id | ||
| $child_id |
- See
- \include/generic/Save2.php
add_to_prospect_list(
$query_panel, $parent_module, $parent_type, $parent_id, $child_id, $link_attribute, $link_type, $parent
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $query_panel | ||
| $parent_module | ||
| $parent_type | ||
| $parent_id | ||
| $child_id | ||
| $link_attribute | ||
| $link_type | ||
| $parent |
buildRedirectURL(
$return_id
=
'', $return_module
=
''
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $return_id | ||
| $return_module |
checkRequired(
\$prefix $prefix, \$required $required
)
:
booleanCheck for null or zero for list of values
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $prefix | \$prefix | the prefix of value to be checked |
| $required | \$required | array of value to be checked |
| Type | Description |
|---|---|
| boolean | true if all values are set in the array |
getAnyToForm(
$ignore
=
'', $usePostAsAuthority
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $ignore | ||
| $usePostAsAuthority |
getGetToForm(
$ignore
=
'', $usePostAsAuthority
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $ignore | ||
| $usePostAsAuthority |
getLikeForEachWord(
$fieldname, $value, $minsize
=
4
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $fieldname | ||
| $value | ||
| $minsize |
getPostToForm(
$ignore
=
'', $isRegularExpression
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $ignore | ||
| $isRegularExpression |
get_teams_hidden_inputs(
\$module $module
=
''
)
:
Stringget_teams_hidden_inputs This is a helper function to construct a String of the hidden input parameters representing the teams that were sent to the form base code
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $module | \$module | String value of module |
| Type | Description |
|---|---|
| String | HTML format of teams sent to the form base code |
get_teams_url(
\$module $module
=
''
)
:
StringThis is a helper function to return the url portion of the teams sent
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $module | \$module | String value of module used for the prefixing |
| Type | Description |
|---|---|
| String | URL format of teams sent to the form base code |
handleRedirect(
$return_id
=
'', $return_module
=
'', $additionalFlags
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $return_id | ||
| $return_module | ||
| $additionalFlags |
populateFromPost(
$prefix, $focus, $skipRetrieve
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $prefix | ||
| $focus | ||
| $skipRetrieve |
populateFromPostACL(
\SugarBean $focus
)
:
voidIf current user have not permit to change field function replace default value
Parameters
| Name | Type | Description |
|---|---|---|
| $focus | \SugarBean |