Progress Bar Upload Handler for PHP 5.4+ Session Upload Progress handling

package Default
inherited_from \Zend\ProgressBar\Upload\AbstractUploadHandler

 Methods

__construct()

__construct(array|\Traversable $options = array()
Inherited

Parameters

$options

array\Traversable

Optional options

Exceptions

\Zend\ProgressBar\Exception\InvalidArgumentException

getProgress()

getProgress(string $id) : array
Inherited
inherited_from \Zend\ProgressBar\Upload\UploadHandlerInterface::getProgress()

Parameters

$id

string

Returns

array

getProgressAdapter()

getProgressAdapter() : \Zend\ProgressBar\Adapter\AbstractAdapter | \Zend\ProgressBar\ProgressBar
Inherited

Returns

\Zend\ProgressBar\Adapter\AbstractAdapter\Zend\ProgressBar\ProgressBar

getSessionNamespace()

getSessionNamespace() : string
Inherited

Returns

string

Checks if Session Upload Progress is available

isSessionUploadProgressAvailable() : boolean

Returns

boolean

Set options for a upload handler. Accepted options are: - session_namespace: session namespace for upload progress - progress_adapter: progressbar adapter to use for updating progress

setOptions(array|\Traversable $options) : \Zend\ProgressBar\Upload\AbstractUploadHandler
Inherited

Parameters

$options

array\Traversable

Exceptions

\Zend\ProgressBar\Exception\InvalidArgumentException

Returns

\Zend\ProgressBar\Upload\AbstractUploadHandler

setProgressAdapter()

setProgressAdapter(\Zend\ProgressBar\Adapter\AbstractAdapter|\Zend\ProgressBar\ProgressBar $progressAdapter) : \Zend\ProgressBar\Upload\AbstractUploadHandler | \Zend\ProgressBar\Upload\UploadHandlerInterface
Inherited

Parameters

$progressAdapter

\Zend\ProgressBar\Adapter\AbstractAdapter\Zend\ProgressBar\ProgressBar

Returns

\Zend\ProgressBar\Upload\AbstractUploadHandler\Zend\ProgressBar\Upload\UploadHandlerInterface

setSessionNamespace()

setSessionNamespace(string $sessionNamespace) : \Zend\ProgressBar\Upload\AbstractUploadHandler | \Zend\ProgressBar\Upload\UploadHandlerInterface
Inherited

Parameters

$sessionNamespace

string

Returns

\Zend\ProgressBar\Upload\AbstractUploadHandler\Zend\ProgressBar\Upload\UploadHandlerInterface

getUploadProgress()

getUploadProgress(string $id) : array | boolean
inherited_from \Zend\ProgressBar\Upload\AbstractUploadHandler::getUploadProgress()

Parameters

$id

string

Exceptions

\Zend\ProgressBar\Exception\PhpEnvironmentException

Returns

arrayboolean

getUploadProgress()

getUploadProgress(string $id) : array | boolean
Inherited

Parameters

$id

string

Returns

arrayboolean

Returns the formatted size

toByteString(integer $size) : string
Inherited

Parameters

$size

integer

Returns

string

 Properties

 

$progressAdapter

$progressAdapter : \Zend\ProgressBar\Adapter\AbstractAdapter | \Zend\ProgressBar\ProgressBar

Default

 

$sessionNamespace

$sessionNamespace : string

Default

'Zend\ProgressBar\Upload\AbstractUploadHandler'