$webapi
$webapi : \Visionline\Crm\WebApi\WebApi
The WebApi
Internal class that defines the file-operation "passthru"
$webapi : \Visionline\Crm\WebApi\WebApi
The WebApi
$connection : \Visionline\Crm\WebApi\Connection
The connection
__construct(\Visionline\Crm\WebApi\WebApi $webapi, string $getFileUrl, \Visionline\Crm\WebApi\Connection $connection, integer $bufferSize, boolean $sendHeaders, boolean $attachment)
Creates a FilePassthruOperation
\Visionline\Crm\WebApi\WebApi | $webapi | The WebApi |
string | $getFileUrl | The URL of the GetFile-Handler |
\Visionline\Crm\WebApi\Connection | $connection | The connection settings to the CRM-VISIONLINE system |
integer | $bufferSize | The buffer size for file operations |
boolean | $sendHeaders | Indicates whether headers should be sent |
boolean | $attachment | Indicates whether the Content-disposition header should be set to 'attachment' |
exec(integer|\Visionline\Crm\WebApi\QueryResult $document, array $stream_context_options, integer $width = NULL, integer $height = NULL, string $resizeMode = NULL) : mixed
Executes the file operation
integer|\Visionline\Crm\WebApi\QueryResult | $document | The document to retrieve |
array | $stream_context_options | The stream context options |
integer | $width | The width to which an image should be resized |
integer | $height | The height to which an image should be resized |
string | $resizeMode | Specifies how an image should be resized |
If an invalid argument was supplied
if an exception occured
The result of this file operation
execMultiple(array $documents, array $stream_context_options, integer $width = NULL, integer $height = NULL, string $resizeMode = NULL) : mixed
Executes the file operation
array | $documents | The documents to retrieve |
array | $stream_context_options | The stream context options |
integer | $width | The width to which an image should be resized |
integer | $height | The height to which an image should be resized |
string | $resizeMode | Specifies how an image should be resized |
If an invalid argument was supplied
if an exception occured
The results of this file operation
process(string $data)
Outputs the received data.
string | $data | The data |
processMetaData(integer $id, integer $width, integer $height, string $resizeMode, string $contentType, string $filename, string $extension, integer $lastModified)
Sends the 'Content-type' and 'Content-disposition' headers if sendHeaders was set
integer | $id | The id of the entity |
integer | $width | The width to which an image should be resized |
integer | $height | The height to which an image should be resized |
string | $resizeMode | Specifies how an image should be resized |
string | $contentType | The content type of the file |
string | $filename | The filename of the file |
string | $extension | The file extension of the file |
integer | $lastModified | The timestamp of the last modification of the file |
getResult() : null
Returns null
Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376 Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376shouldDownload(\Visionline\Crm\WebApi\QueryResult $document, integer $width, integer $height, string $resizeMode) : true
Returns true
\Visionline\Crm\WebApi\QueryResult | $document | The document in question |
integer | $width | The width to which an image should be resized |
integer | $height | The height to which an image should be resized |
string | $resizeMode | Specifies how an image should be resized |
download(integer $id, integer $width, integer $height, string $resizeMode, array $stream_context_options, integer $ifModifiedSince = null)
Downloads the contents of the specified document
integer | $id | The id of the document |
integer | $width | The width to which an image should be resized |
integer | $height | The height to which an image should be resized |
string | $resizeMode | Specifies how an image should be resized |
array | $stream_context_options | The stream context options |
integer | $ifModifiedSince | If specified, the file is only downloaded if it was modified since |
If an error occurs during download