PHP 클래스 CloudConvert\Process

저자: Josias Montag ([email protected])
상속: extends ApiObject
파일 보기 프로젝트 열기: cloudconvert/cloudconvert-php

공개 메소드들

메소드 설명
__construct ( Api $api, string $url ) : Process Construct a new Process instance
delete ( ) : Process Delete Process from API
download ( string $localfile = null, string $remotefile = null ) : Process Download process files from API
downloadAll ( string $directory = null ) : Process Download all output process files from API
downloadStream ( resource $stream, string $remotefile = null ) : Process Download process files from API and write to a given stream
start ( array $parameters ) : Process Starts the Process
upload ( $stream, string $filename = null ) : Process Uploads the input file. See https://cloudconvert.com/apidoc#upload
wait ( ) : Process Waits for the Process to finish (or end with an error)

메소드 상세

__construct() 공개 메소드

Construct a new Process instance
public __construct ( Api $api, string $url ) : Process
$api Api
$url string The Process URL
리턴 Process

delete() 공개 메소드

Delete Process from API
public delete ( ) : Process
리턴 Process

download() 공개 메소드

Download process files from API
public download ( string $localfile = null, string $remotefile = null ) : Process
$localfile string Local file name (or directory) the file should be downloaded to
$remotefile string Remote file name which should be downloaded (if there are multiple output files available)
리턴 Process

downloadAll() 공개 메소드

Download all output process files from API
public downloadAll ( string $directory = null ) : Process
$directory string Local directory the files should be downloaded to
리턴 Process

downloadStream() 공개 메소드

Download process files from API and write to a given stream
public downloadStream ( resource $stream, string $remotefile = null ) : Process
$stream resource Stream to write the downloaded data to
$remotefile string Remote file name which should be downloaded (if there are multiple output files available)
리턴 Process

start() 공개 메소드

Starts the Process
public start ( array $parameters ) : Process
$parameters array Parameters for creating the Process. See https://cloudconvert.com/apidoc#start
리턴 Process

upload() 공개 메소드

Uploads the input file. See https://cloudconvert.com/apidoc#upload
public upload ( $stream, string $filename = null ) : Process
$filename string Filename of the input file
리턴 Process

wait() 공개 메소드

Waits for the Process to finish (or end with an error)
public wait ( ) : Process
리턴 Process