Пример #1
0
 /**
  * Sets rotator options
  *
  * Accepts the following option keys:
  *   'size'   => int, Size of file
  *
  * @param  string            $url
  * @param  array|Zend_Config $options
  * @return void
  */
 public function __construct($url, $config)
 {
     parent::__construct($url, $config);
     $config = array_merge(array("limit" => $this->_limit), parent::_parseConfig($config));
     if (file_exists($this->getUrl())) {
         $this->_size = new Zend_Measure_Binary(filesize($this->getUrl()));
     }
     $this->setLimit($config["limit"]);
 }
Пример #2
0
 /**
  * Get rotated files
  *
  * @return array
  */
 protected function _getRotatedFiles()
 {
     return array_reverse(parent::_getRotatedFiles());
     // Sort descending by date
 }