ModuleInstall/PackageManager/PackageManagerDownloader.php

Show: inherited
Table of Contents

Constants

Constant  PACKAGE_MANAGER_DOWNLOAD_SERVER = 'https://depot.sugarcrm.com/depot/'
Constant  PACKAGE_MANAGER_DOWNLOAD_PAGE = 'download.php'

\PackageManagerDownloader

Package:

Methods

methodpublicdownload( \session_id $session_id, \file_name $file_name, \save_dir $save_dir = '', \download_sever $download_server = '' ) : \the

Using curl we will download the file from the depot server

Parameters
Name Type Description
$session_id \session_id

the session_id this file is queued for

$file_name \file_name

the file_name to download

$save_dir \save_dir

(optional) if specified it will direct where to save the file once downloaded

$download_server \download_sever

(optional) if specified it will direct the url for the download

Returns
Type Description
\the full path of the saved file
Documentation was generated by DocBlox 0.18.1.