soap/SoapHelperFunctions.php
Functions
apply_values(
Mixed $seed, Array $dataValues, boolean $firstSync
)
:
voidapply_values
This function applies the given values to the bean object. If it is a first time sync then empty values will not be copied over.
| Name | Type | Description |
|---|---|---|
| $seed | Mixed | Object representing SugarBean instance |
| $dataValues | Array | Array of fields/values to set on the SugarBean instance |
| $firstSync | boolean | Boolean indicating whether or not this is a first time sync |
checkACLAccess(
$bean, $viewType, $errorObject, $error_key
)
:
void| Name | Type | Description |
|---|---|---|
| $bean | ||
| $viewType | ||
| $errorObject | ||
| $error_key |
checkSessionAndModuleAccess(
$session, $login_error_key, $module_name, $access_level, $module_access_level_error_key, $errorObject
)
:
void| Name | Type | Description |
|---|---|---|
| $session | ||
| $login_error_key | ||
| $module_name | ||
| $access_level | ||
| $module_access_level_error_key | ||
| $errorObject |
check_modules_access(
$user, $module_name, $action
=
'write'
)
:
void| Name | Type | Description |
|---|---|---|
| $user | ||
| $module_name | ||
| $action |
decrypt_string(
\$string $string
)
:
\adecrypt a string use the TripleDES algorithm. This meant to be modified if the end user chooses a different algorithm
| Name | Type | Description |
|---|---|---|
| $string | \$string |
|
| Type | Description |
|---|---|
| \a | decrypted string if we can decrypt, the original string otherwise |
filter_field_list(
$field_list, $select_fields, $module_name
)
:
void| Name | Type | Description |
|---|---|---|
| $field_list | ||
| $select_fields | ||
| $module_name |
filter_return_list(
Array $output_list, Array $select_fields, String $module_name
)
:
\TheFilter the results of a list query. Limit the fields returned.
| Name | Type | Description |
|---|---|---|
| $output_list | Array | -- The array of list data |
| $select_fields | Array | -- The list of fields that should be returned. If this array is specfied, only the fields in the array will be returned. |
| $module_name | String | -- The name of the module this being worked on |
| Type | Description |
|---|---|
| \The | filtered array of list data. |
getRelationshipResults(
$bean, $link_field_name, $link_module_fields
)
:
void| Name | Type | Description |
|---|---|---|
| $bean | ||
| $link_field_name | ||
| $link_module_fields |
get_field_list(
\SugarBean $value, $translate
=
true
)
:
ArrayRetrieve field data for a provided SugarBean.
| Name | Type | Description |
|---|---|---|
| $value | \SugarBean | -- The bean to retrieve the field information for. |
| $translate |
| Type | Description |
|---|---|
| Array | -- 'field'=> 'name' -- the name of the field 'type' -- the data type of the field 'label' -- the translation key for the label of the field 'required' -- Is the field required? 'options' -- Possible values for a drop down field |
get_name_value_list(
$value, $returnDomValue
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $value | ||
| $returnDomValue |
get_name_value_list_for_fields(
$value, $fields
)
:
void| Name | Type | Description |
|---|---|---|
| $value | ||
| $fields |
get_report_value(
\SavedReport $seed
)
:
arrayReturn the data from a report
| Name | Type | Description |
|---|---|---|
| $seed | \SavedReport |
| Type | Description |
|---|---|
| array | - output_list - the rows of the reports, field_list - the fields in the report. |
get_return_error_value(
$error_num, $error_name, $error_description
)
:
void| Name | Type | Description |
|---|---|---|
| $error_num | ||
| $error_name | ||
| $error_description |
get_return_module_fields(
$value, $module, $error, $translate
=
true
)
:
void| Name | Type | Description |
|---|---|---|
| $value | ||
| $module | ||
| $error | ||
| $translate |
get_return_value(
$value, $module, $returnDomValue
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $value | ||
| $module | ||
| $returnDomValue |
get_return_value_for_fields(
$value, $module, $fields
)
:
void| Name | Type | Description |
|---|---|---|
| $value | ||
| $module | ||
| $fields |
get_return_value_for_link_fields(
$bean, $module, $link_name_to_value_fields_array
)
:
void| Name | Type | Description |
|---|---|---|
| $bean | ||
| $module | ||
| $link_name_to_value_fields_array |
new_get_field_list(
$value, $translate
=
true
)
:
void| Name | Type | Description |
|---|---|---|
| $value | ||
| $translate |
new_get_return_module_fields(
$value, $module, $translate
=
true
)
:
void| Name | Type | Description |
|---|---|---|
| $value | ||
| $module | ||
| $translate |
new_handle_set_entries(
$module_name, $name_value_lists, $select_fields
=
FALSE
)
:
void| Name | Type | Description |
|---|---|---|
| $module_name | ||
| $name_value_lists | ||
| $select_fields |
new_handle_set_relationship(
String $module_name, String $module_id, String $link_field_name, Array $related_ids
)
:
true| Name | Type | Description |
|---|---|---|
| $module_name | String | -- The name of the module that the primary record is from. This name should be the name the module was developed under (changing a tab name is studio does not affect the name that should be passed into this method). |
| $module_id | String | -- The ID of the bean in the specified module |
| $link_field_name | String |
|
| $related_ids | Array | -- The array of ids for which we want to create relationships |
| Type | Description |
|---|---|
| true | on success, false on failure |