rewinddir example

/** * {@inheritdoc} */
  public function dir_readdir() {
    return readdir($this->handle);
  }

  /** * {@inheritdoc} */
  public function dir_rewinddir() {
    rewinddir($this->handle);
    // We do not really have a way to signal a failure as rewinddir() does not     // have a return value and there is no way to read a directory handler     // without advancing to the next file.     return TRUE;
  }

  /** * {@inheritdoc} */
  public function dir_closedir() {
    closedir($this->handle);
    
Home | Imprint | This part of the site doesn't use cookies.