Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
Zend_ProgressBar_Adapter_JsPull Class Reference
Inheritance diagram for Zend_ProgressBar_Adapter_JsPull:
Zend_ProgressBar_Adapter

Public Member Functions

 setExitAfterSend ($exitAfterSend)
 
 notify ($current, $max, $percent, $timeTaken, $timeRemaining, $text)
 
 finish ()
 
- Public Member Functions inherited from Zend_ProgressBar_Adapter
 __construct ($options=null)
 
 setConfig (Zend_Config $config)
 
 setOptions (array $options)
 
 notify ($current, $max, $percent, $timeTaken, $timeRemaining, $text)
 
 finish ()
 

Protected Member Functions

 _outputData ($data)
 

Protected Attributes

 $_exitAfterSend = true
 
- Protected Attributes inherited from Zend_ProgressBar_Adapter
 $_skipOptions
 

Detailed Description

Definition at line 40 of file JsPull.php.

Member Function Documentation

◆ _outputData()

_outputData (   $data)
protected

Outputs given data the user agent.

This split-off is required for unit-testing.

Parameters
string$data
Returns
void

Definition at line 109 of file JsPull.php.

110  {
111  echo $data;
112 
113  if ($this->_exitAfterSend) {
114  exit;
115  }
116  }
exit
Definition: redirect.phtml:12

◆ finish()

finish ( )

Defined by Zend_ProgressBar_Adapter_Interface

Returns
void

Definition at line 94 of file JsPull.php.

95  {
96  $data = Zend_Json::encode(array('finished' => true));
97 
98  $this->_outputData($data);
99  }
static encode($valueToEncode, $cycleCheck=false, $options=array())
Definition: Json.php:130

◆ notify()

notify (   $current,
  $max,
  $percent,
  $timeTaken,
  $timeRemaining,
  $text 
)

Defined by Zend_ProgressBar_Adapter_Interface

Parameters
float$currentCurrent progress value
float$maxMax progress value
float$percentCurrent percent value
integer$timeTakenTaken time in seconds
integer$timeRemainingRemaining time in seconds
string$textStatus text
Returns
void

Definition at line 71 of file JsPull.php.

72  {
73  $arguments = array(
74  'current' => $current,
75  'max' => $max,
76  'percent' => ($percent * 100),
77  'timeTaken' => $timeTaken,
78  'timeRemaining' => $timeRemaining,
79  'text' => $text,
80  'finished' => false
81  );
82 
84 
85  // Output the data
86  $this->_outputData($data);
87  }
if($this->helper('Magento\Tax\Helper\Data') ->displayFullSummary()) foreach( $block->getTotal() ->getFullInfo() as $info)(isset($info['hidden']) && $info['hidden']) $percent
Definition: tax.phtml:33
endifif( $block->getLastPageNum()>1)( 'Page') ?></strong >< ul class $text
Definition: pager.phtml:43
$arguments
static encode($valueToEncode, $cycleCheck=false, $options=array())
Definition: Json.php:130

◆ setExitAfterSend()

setExitAfterSend (   $exitAfterSend)

Set wether to exit after json data send or not

Parameters
boolean$exitAfterSend
Returns
Zend_ProgressBar_Adapter_JsPull

Definition at line 55 of file JsPull.php.

56  {
57  $this->_exitAfterSend = $exitAfterSend;
58  }

Field Documentation

◆ $_exitAfterSend

$_exitAfterSend = true
protected

Definition at line 47 of file JsPull.php.


The documentation for this class was generated from the following file: