Arquivos
hhvm/hphp/system/classes/directory.php
T
Paul Tarjan ed171866b7 update docs
2013-05-24 10:10:58 -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);
}
}