Пример #1
0
 /**
  * Defined by Zend_ProgressBar_Adapter
  *
  * @param null|array|Zend_Config $options
  */
 public function __construct($options = null)
 {
     // Call parent constructor with options
     parent::__construct($options);
     // Check if a width was set, else use auto width
     if ($this->_width === null) {
         $this->setWidth();
     }
 }
Пример #2
0
 /**
  * Defined by Zend_ProgressBar_Adapter
  *
  * @param null|array|Zend_Config $options
  */
 public function __construct($options = null)
 {
     // If STDOUT isn't defined, open a local resource
     if (!defined('STDOUT')) {
         $this->_stdout = fopen('php://stdout', 'w');
     }
     // Call parent constructor with options
     parent::__construct($options);
     // Check if a width was set, else use auto width
     if ($this->_width === null) {
         $this->setWidth();
     }
 }