Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
 }
 /**
  * Creates a FilePassthruOperation
  * @param WebApi $webapi The WebApi
  * @param string $getFileUrl The URL of the GetFile-Handler
  * @param Connection $connection The connection settings to the CRM-VISIONLINE system
  * @param int $bufferSize The buffer size for file operations
  * @param bool $sendHeaders Indicates whether headers should be sent
  * @param bool $attachment Indicates whether the Content-disposition header should be set to 'attachment'
  */
 public function __construct(WebApi $webapi, $getFileUrl, Connection $connection, $bufferSize, $sendHeaders, $attachment)
 {
     parent::__construct($webapi, $getFileUrl, $connection, $bufferSize);
     $this->sendHeaders = $sendHeaders;
     $this->attachment = $attachment;
 }
 /**
  * Creates a save file operation
  * @param WebApi $webapi The WebApi
  * @param string $getFileUrl The URL of the GetFile-Handler
  * @param Connection $connection The connection settings to the CRM-VISIONLINE system
  * @param int $bufferSize The buffer size for file operations
  * @param string $directory The directory to which to save the file
  * @param bool $forceDownload Specifies whether the file should be downloaded, even if it exists and is not outdated.
  */
 public function __construct(WebApi $webapi, $getFileUrl, Connection $connection, $bufferSize, $directory, $forceDownload)
 {
     parent::__construct($webapi, $getFileUrl, $connection, $bufferSize);
     $this->directory = $directory;
     $this->forceDownload = $forceDownload;
 }
 /**
  * Create a get file operation
  * @param WebApi $webapi The WebApi
  * @param string $getFileUrl The URL of the GetFile-Handler
  * @param Connection $connection The connection settings to the CRM-VISIONLINE system
  * @param int $bufferSize The buffer size for file operations
  */
 public function __construct(WebApi $webapi, $getFileUrl, Connection $connection, $bufferSize)
 {
     parent::__construct($webapi, $getFileUrl, $connection, $bufferSize);
 }