ProgressBar/Adapter.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_ProgressBar  
Version
$Id$  

\Zend_ProgressBar_Adapter

Package: Zend_ProgressBar
Abstract class for Zend_ProgressBar_Adapters
Children
\Zend_ProgressBar_Adapter_JsPull
\Zend_ProgressBar_Adapter_Console
\Zend_ProgressBar_Adapter_JsPush
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_skipOptions = array('options', 'config')
Option keys to skip when calling setOptions()
Default valuearray('options', 'config')Details
Type
array

Methods

methodpublic__construct(null | array | \Zend_Config $options = null) : void

Create a new adapter

$options may be either be an array or a Zend_Config object which specifies adapter related options.
Parameters
NameTypeDescription
$optionsnull | array | \Zend_Config
methodpublicfinish() : void
abstract

Called when the progress is explicitly finished

methodpublicnotify(float $current, float $max, float $percent, integer $timeTaken, integer $timeRemaining, string $text) : void
abstract

Notify the adapter about an update

Parameters
NameTypeDescription
$currentfloat

Current progress value

$maxfloat

Max progress value

$percentfloat

Current percent value

$timeTakeninteger

Taken time in seconds

$timeRemaininginteger

Remaining time in seconds

$textstring

Status text

methodpublicsetConfig(\Zend_Config $config) : \Zend_ProgressBar_Adapter

Set options via a Zend_Config instance

Parameters
NameTypeDescription
$config\Zend_Config
Returns
TypeDescription
\Zend_ProgressBar_Adapter
methodpublicsetOptions(array $options) : \Zend_ProgressBar_Adapter

Set options via an array

Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_ProgressBar_Adapter
Documentation was generated by phpDocumentor 2.2.0 .