soap/SoapHelperFunctions.php

Show: inherited
    Table of Contents

    Functions

    functionadd_create_account(  $seed ) : void

    Parameters
    Name Type Description
    $seed
    functionapply_values( Mixed $seed, Array $dataValues, boolean $firstSync ) : void

    apply_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.

    Parameters
    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

    functionarray_get_name_value_list(  $array ) : void

    Parameters
    Name Type Description
    $array
    functionarray_get_name_value_lists(  $array ) : void

    Parameters
    Name Type Description
    $array
    functionarray_get_return_value(  $array,  $module ) : void

    Parameters
    Name Type Description
    $array
    $module
    functioncanViewPath(  $path,  $base ) : void

    Parameters
    Name Type Description
    $path
    $base
    functioncheckACLAccess(  $bean,  $viewType,  $errorObject,  $error_key ) : void

    Parameters
    Name Type Description
    $bean
    $viewType
    $errorObject
    $error_key
    functioncheckSessionAndModuleAccess(  $session,  $login_error_key,  $module_name,  $access_level,  $module_access_level_error_key,  $errorObject ) : void

    Parameters
    Name Type Description
    $session
    $login_error_key
    $module_name
    $access_level
    $module_access_level_error_key
    $errorObject
    functioncheck_for_duplicate_contacts(  $seed ) : void

    Parameters
    Name Type Description
    $seed
    functioncheck_modules_access(  $user,  $module_name,  $action = 'write' ) : void

    Parameters
    Name Type Description
    $user
    $module_name
    $action
    functiondecrypt_string( \$string $string ) : \a

    decrypt a string use the TripleDES algorithm. This meant to be modified if the end user chooses a different algorithm

    Parameters
    Name Type Description
    $string \$string
    • the string to decrypt
    Returns
    Type Description
    \a decrypted string if we can decrypt, the original string otherwise
    functionfilter_field_list(  $field_list,  $select_fields,  $module_name ) : void

    Parameters
    Name Type Description
    $field_list
    $select_fields
    $module_name
    functionfilter_fields(  $value,  $fields ) : void

    Parameters
    Name Type Description
    $value
    $fields
    functionfilter_return_list( Array $output_list, Array $select_fields, String $module_name ) : \The

    Filter the results of a list query. Limit the fields returned.

    Parameters
    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

    Returns
    Type Description
    \The filtered array of list data.
    functiongetFile(  $zip_file,  $file_in_zip ) : void

    Parameters
    Name Type Description
    $zip_file
    $file_in_zip
    functiongetManifest(  $zip_file ) : void

    Parameters
    Name Type Description
    $zip_file
    functiongetRelationshipResults(  $bean,  $link_field_name,  $link_module_fields ) : void

    Parameters
    Name Type Description
    $bean
    $link_field_name
    $link_module_fields
    functionget_decoded(  $object ) : void

    Parameters
    Name Type Description
    $object
    functionget_encoded(  $object ) : void

    Parameters
    Name Type Description
    $object
    functionget_encoded_Value(  $value ) : void

    Parameters
    Name Type Description
    $value
    functionget_field_list( \SugarBean $value,  $translate = true ) : Array

    Retrieve field data for a provided SugarBean.

    Parameters
    Name Type Description
    $value \SugarBean

    -- The bean to retrieve the field information for.

    $translate
    Returns
    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
    functionget_name_value(  $field,  $value ) : void

    Parameters
    Name Type Description
    $field
    $value
    functionget_name_value_list(  $value,  $returnDomValue = false ) : void

    Parameters
    Name Type Description
    $value
    $returnDomValue
    functionget_name_value_list_for_fields(  $value,  $fields ) : void

    Parameters
    Name Type Description
    $value
    $fields
    functionget_name_value_xml(  $val,  $module_name ) : void

    Parameters
    Name Type Description
    $val
    $module_name
    functionget_report_value( \SavedReport $seed ) : array

    Return the data from a report

    Parameters
    Name Type Description
    $seed \SavedReport
    Returns
    Type Description
    array - output_list - the rows of the reports, field_list - the fields in the report.
    functionget_return_error_value(  $error_num,  $error_name,  $error_description ) : void

    Parameters
    Name Type Description
    $error_num
    $error_name
    $error_description
    functionget_return_module_fields(  $value,  $module,  $error,  $translate = true ) : void

    Parameters
    Name Type Description
    $value
    $module
    $error
    $translate
    functionget_return_value(  $value,  $module,  $returnDomValue = false ) : void

    Parameters
    Name Type Description
    $value
    $module
    $returnDomValue
    functionget_return_value_for_fields(  $value,  $module,  $fields ) : void

    Parameters
    Name Type Description
    $value
    $module
    $fields
    functionget_return_value_for_link_fields(  $bean,  $module,  $link_name_to_value_fields_array ) : void

    Parameters
    Name Type Description
    $bean
    $module
    $link_name_to_value_fields_array
    functionget_user_module_list(  $user ) : void

    Parameters
    Name Type Description
    $user
    functionis_server_version_greater(  $left,  $right ) : void

    Parameters
    Name Type Description
    $left
    $right
    functionlogin_success( ) : void

    functionname_value_lists_get_array(  $list ) : void

    Parameters
    Name Type Description
    $list
    functionnew_get_field_list(  $value,  $translate = true ) : void

    Parameters
    Name Type Description
    $value
    $translate
    functionnew_get_return_module_fields(  $value,  $module,  $translate = true ) : void

    Parameters
    Name Type Description
    $value
    $module
    $translate
    functionnew_handle_set_entries(  $module_name,  $name_value_lists,  $select_fields = FALSE ) : void

    Parameters
    Name Type Description
    $module_name
    $name_value_lists
    $select_fields
    functionnew_handle_set_relationship( String $module_name, String $module_id, String $link_field_name, Array $related_ids ) : true

    Parameters
    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
    • The relationship name for which to create realtionships.
    $related_ids Array

    -- The array of ids for which we want to create relationships

    Returns
    Type Description
    true on success, false on failure
    functionsetFaultObject(  $errorObject ) : void

    Parameters
    Name Type Description
    $errorObject
    Documentation was generated by DocBlox 0.18.1.