Пример #1
0
 /**
  * The communication adapter for the ProgressBar.
  *
  * @param \Zend_ProgressBar_Adapter_Interface $adapter
  * @return \MUtil_Html_ProgressPanel (continuation pattern)
  */
 public function setProgressBarAdapter(\Zend_ProgressBar_Adapter $adapter)
 {
     if ($adapter instanceof \Zend_ProgressBar_Adapter_JsPush) {
         $prefix = $this->getFunctionPrefix();
         // Set the fields, in case they where not set earlier
         $adapter->setUpdateMethodName($prefix . 'Update');
         $adapter->setFinishMethodName($prefix . 'Finish');
     }
     $this->progressBarAdapter = $adapter;
     return $this;
 }