Arquivos
hhvm/hphp/system/classes/file_system/Directory.php
T
Paul Tarjan 8eaa77f319 rejigger systemlib
I've always been a bit sad about having all classes in the same file to govern inclusion order. And the filenames didn't match the class names.

Instead, lets not rely on whatever order `find` returns, and instead hard-code the ordering of the system lib. I grouped the files by what extension they came from.
2013-06-03 23:54:26 -07:00

32 linhas
589 B
PHP

<?php
// This doc comment block generated by idl/sysdoc.php
/**
* ( excerpt from http://php.net/manual/en/class.directory.php )
*
* Instances of Directory are created by calling the dir() function, not
* by the new operator.
*
*/
class Directory {
public $path;
public $handle;
public function __construct($path) {
$this->path = $path;
$this->handle = opendir($path);
}
public function read() {
return readdir($this->handle);
}
public function rewind() {
rewinddir($this->handle);
}
public function close() {
closedir($this->handle);
}
}