service/core/SoapHelperWebService.php
\SoapHelperWebServices
- Children
- \SugarWebServiceUtilv3
- \SugarRestUtils
Methods
checkACLAccess(
$bean, $viewType, $errorObject, $error_key
)
:
void
Name | Type | Description |
---|---|---|
$bean | ||
$viewType | ||
$errorObject | ||
$error_key |
checkQuery(
$errorObject, $query, $order_by
=
''
)
:
void
Name | Type | Description |
---|---|---|
$errorObject | ||
$query | ||
$order_by |
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
)
:
\a
decrypt 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 |
getRelationshipResults(
String $bean, String $link_field_name, Array $link_module_fields, String $optional_where
=
''
)
:
Array
Fetch and array of related records
Name | Type | Description |
---|---|---|
$bean | String | -- Primary record |
$link_field_name | String | -- The name of the relationship |
$link_module_fields | Array | -- The keys of the array are the SugarBean attributes, the values of the array are the values the attributes should have. |
$optional_where | String | -- IGNORED |
Type | Description |
---|---|
Array | 'rows/fields_set_on_rows' -- The list of records and what fields were actually set for thos erecords |
get_field_list(
$value, $fields, $translate
=
true
)
:
void
Name | Type | Description |
---|---|---|
$value | ||
$fields | ||
$translate |
get_name_value_list_for_fields(
$value, $fields
)
:
void
Name | Type | Description |
---|---|---|
$value | ||
$fields |
get_report_value(
\SavedReport $seed, $select_fields
)
:
array
Return the data from a report
Name | Type | Description |
---|---|---|
$seed | \SavedReport | |
$select_fields |
Type | Description |
---|---|
array | - output_list - the rows of the reports, field_list - the fields in the report. |
get_return_module_fields(
$value, $module, $fields, $translate
=
true
)
:
void
Name | Type | Description |
---|---|---|
$value | ||
$module | ||
$fields | ||
$translate |
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 |
is_valid_ip_address(
string $session_var
)
:
bool
Use the same logic as in SugarAuthenticate to validate the ip address
Name | Type | Description |
---|---|---|
$session_var | string |
Type | Description |
---|---|
bool | - true if the ip address is valid, false otherwise. |
login_success(
$name_value_list
=
array()
)
:
void
Name | Type | Description |
---|---|---|
$name_value_list |
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, Array $name_value_list, int $delete
)
:
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 |
$name_value_list | Array | -- The array of name value pair of additional attributes to be set when adding this relationship |
$delete | int | delete -- If 0 then add relationship else delete this relationship data |
Type | Description |
---|---|
true | on success, false on failure |
returnFieldsWithAccess(
object $seed, array $select_fields
=
array()
)
:
array
returnFieldsWithAccess
Name | Type | Description |
---|---|---|
$seed | object | an instance of the bean we are checking acl's on |
$select_fields | array | array of fields being explicitly checked for access, empty array means check all |
Type | Description |
---|---|
array | Array of the fields for this bean that passed the acl filter test |
validate_authenticated(
String $session_id
)
:
truefalse
Validate the provided session information is correct and current. Load the session.
Name | Type | Description |
---|---|---|
$session_id | String | -- The session ID that was returned by a call to login. |
Type | Description |
---|---|
truefalse | -- If the session is valid and loaded.-- if the session is not valid. |
validate_user(
string $user_name, string $password
)
:
truefalse
Validate the user session based on user name and password hash.
Name | Type | Description |
---|---|---|
$user_name | string | -- The user name to create a session for |
$password | string | -- The MD5 sum of the user's password |
Type | Description |
---|---|
truefalse | -- If the session is created-- If the session is not created |