modules/Administration/updater_utils.php

Show: inherited
    Table of Contents

    Functions

    functionauthenticateDownloadKey( ) : void

    functioncheckDownloadKey(  $data ) : void

    Parameters
    Name Type Description
    $data
    functioncheckSystemLicenseStatus( ) : void

    functioncheckSystemState( ) : void

    functioncheck_now(  $send_usage_info = true,  $get_request_data = false,  $response_data = false,  $from_install = false ) : void

    Parameters
    Name Type Description
    $send_usage_info
    $get_request_data
    $response_data
    $from_install
    functioncompareVersions(  $ver1,  $ver2 ) : void

    Parameters
    Name Type Description
    $ver1
    $ver2
    functiongetBaseSystemInfo(  $send_usage_info = true ) : void

    Parameters
    Name Type Description
    $send_usage_info
    functiongetModuleWhiteListForLicenseCheck( \User $user ) : array

    Whitelist of modules and actions that don't need redirect

    Use following standard for whitelist: array( 'module_name_1' => array('action_name_1', 'action_name_2', ...), // Allow only "action_name_1" and "action_name_2" for "module_name_1" 'module_name_2' => 'all', | // Allow ALL actions in module "module_name_2" ... )

    Parameters
    Name Type Description
    $user \User
    Returns
    Type Description
    array
    functiongetSystemInfo(  $send_usage_info = true ) : void

    Parameters
    Name Type Description
    $send_usage_info
    functionget_CheckUpdates_config_setting( ) : void

    functionget_last_check_date_config_setting( ) : void

    functionget_last_check_version_config_setting( ) : void

    functionget_sugarbeat( ) : void

    functionhasExceededOfflineClientLicenses(  $num_oc_lic ) : void

    Parameters
    Name Type Description
    $num_oc_lic
    functionisAboutToExpire(  $expire_date,  $days_before_warning = 7 ) : void

    Parameters
    Name Type Description
    $expire_date
    $days_before_warning
    functionisNeedRedirectDependingOnUserAndSystemState( string $state, string $module = null, string $action = null,  $whiteList = array() ) : boolean

    Check if $module and $action don't get into whitelist and do we need redirect

    Parameters
    Name Type Description
    $state string

    Now works only for 'LICENSE_KEY' state (TODO: do we need any other state?)

    $module string

    Module to check

    $action string

    (optional) Action to check. Can be omitted because some modules include all actions

    $whiteList
    Returns
    Type Description
    boolean
    functionloadLicense(  $firstLogin = false ) : void

    Parameters
    Name Type Description
    $firstLogin
    functionloginLicense( ) : void

    functionocLicense( ) : void

    functionsetSystemState( string $state ) : void

    Redirect current user if current module and action isn't in whitelist

    Parameters
    Name Type Description
    $state string

    Now works only for 'LICENSE_KEY' state (TODO: do we need any other state?)

    Details
    Global
    User $current_user User object that stores current application user  
    functionset_CheckUpdates_config_setting(  $value ) : void

    Parameters
    Name Type Description
    $value
    functionset_last_check_date_config_setting(  $value ) : void

    Parameters
    Name Type Description
    $value
    functionset_last_check_version_config_setting(  $value ) : void

    Parameters
    Name Type Description
    $value
    functionset_sugarbeat(  $value ) : void

    Parameters
    Name Type Description
    $value
    functionshouldCheckSugar( ) : void

    Documentation was generated by DocBlox 0.18.1.