Пример #1
0
 /**
  * This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after
  * rewind in some cases.
  *
  * @see FilterIterator::rewind()
  */
 public function rewind()
 {
     $iterator = $this;
     while ($iterator instanceof \OuterIterator) {
         if ($iterator->getInnerIterator() instanceof \FilesystemIterator) {
             $iterator->getInnerIterator()->next();
             $iterator->getInnerIterator()->rewind();
         }
         $iterator = $iterator->getInnerIterator();
     }
     parent::rewind();
 }
Пример #2
0
 /**
  * This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after
  * rewind in some cases.
  *
  * @see FilterIterator::rewind()
  */
 public function rewind()
 {
     if (PHP_VERSION_ID > 50607 || PHP_VERSION_ID > 50523 && PHP_VERSION_ID < 50600) {
         parent::rewind();
         return;
     }
     $iterator = $this;
     while ($iterator instanceof \OuterIterator) {
         $innerIterator = $iterator->getInnerIterator();
         if ($innerIterator instanceof \FilesystemIterator) {
             $innerIterator->next();
             $innerIterator->rewind();
         }
         $iterator = $iterator->getInnerIterator();
     }
     parent::rewind();
 }
Пример #3
0
 /**
  * This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after
  * rewind in some cases.
  *
  * @see FilterIterator::rewind()
  */
 public function rewind()
 {
     $iterator = $this;
     while ($iterator instanceof \OuterIterator) {
         $innerIterator = $iterator->getInnerIterator();
         if ($innerIterator instanceof RecursiveDirectoryIterator) {
             if ($innerIterator->isRewindable()) {
                 $innerIterator->next();
                 $innerIterator->rewind();
             }
         } elseif ($iterator->getInnerIterator() instanceof \FilesystemIterator) {
             $iterator->getInnerIterator()->next();
             $iterator->getInnerIterator()->rewind();
         }
         $iterator = $iterator->getInnerIterator();
     }
     parent::rewind();
 }
Пример #4
0
 /**
  * This is a workaround for the problem with FilterIterator leaving inner \FilesystemIterator in wrong state after
  * rewind in some cases.
  *
  * @see FilterIterator::rewind()
  */
 public function rewind()
 {
     $iterator = $this;
     while ($iterator instanceof OuterIterator) {
         $innerIterator = $iterator->getInnerIterator();
         if ($innerIterator instanceof ehough_finder_iterator_RecursiveDirectoryIterator) {
             if ($innerIterator->isRewindable()) {
                 $innerIterator->next();
                 $innerIterator->rewind();
             }
         } elseif (class_exists('FilesystemIterator') && $iterator->getInnerIterator() instanceof FilesystemIterator) {
             $iterator->getInnerIterator()->next();
             $iterator->getInnerIterator()->rewind();
         }
         $iterator = $iterator->getInnerIterator();
     }
     parent::rewind();
 }
Пример #5
0
 /**
  * This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after
  * rewind in some cases.
  *
  * @see FilterIterator::rewind()
  */
 public function rewind()
 {
     if (PHP_VERSION_ID > 50607 || PHP_VERSION_ID > 50523 && PHP_VERSION_ID < 50600) {
         parent::rewind();
         return;
     }
     $iterator = $this;
     while ($iterator instanceof \OuterIterator) {
         $innerIterator = $iterator->getInnerIterator();
         if ($innerIterator instanceof RecursiveDirectoryIterator) {
             // this condition is necessary for iterators to work properly with non-local filesystems like ftp
             if ($innerIterator->isRewindable()) {
                 $innerIterator->next();
                 $innerIterator->rewind();
             }
         } elseif ($innerIterator instanceof \FilesystemIterator) {
             $innerIterator->next();
             $innerIterator->rewind();
         }
         $iterator = $innerIterator;
     }
     parent::rewind();
 }
Пример #6
0
 public function rewind()
 {
     parent::rewind();
     $this->multiShardPaths = [];
 }
Пример #7
0
	public function rewind() {
		$this->rewound = true;
		$this->cache = array();
		parent::rewind();
	}
Пример #8
0
 /**
  * revient au depart
  * @return void
  */
 public function rewind()
 {
     $this->pos = 0;
     $this->fetched = 0;
     parent::rewind();
 }
 /**
  * {@inheritdoc}
  */
 public function rewind()
 {
     $this->initializeAttributeTypes();
     parent::rewind();
 }
 public function rewind()
 {
     parent::rewind();
     $this->ignore_level = -1;
 }
 public function rewind()
 {
     parent::rewind();
     $this->line = 0;
 }
Пример #12
0
 public function rewind()
 {
     $this->skipped = 0;
     parent::rewind();
 }
Пример #13
0
 public function rewind()
 {
     echo "rewind(), ";
     return parent::rewind();
 }
 /** Rewind and reset so that it once again searches.
  * @return void
  */
 function rewind()
 {
     parent::rewind();
     $this->done = false;
 }