Book/dir-Phpdoc专题
目录
目录
- 安装/配置
- 预定义常量
- Directory — Directory 类
- Directory::close — 释放目录句柄
- Directory::read — 从目录句柄中读取条目
- Directory::rewind — 倒回目录句柄
- 目录函数函数
简介
Directory 实例是通过调用 <span class="function">dir 函数创建的,而不是 new 操作符。
类摘要
Directory
class Directory {
/* 属性 */
public string
$path
;
public resource
$handle
;
/* 方法 */
public void
close ([ <span
class="methodparam">resource
$dir_handle
] )
public string
read ([ <span
class="type">resource $dir_handle
] )
public void
rewind ([ <span
class="methodparam">resource
$dir_handle
] )
}
属性
path
被打开目录的地址
handle
目录句柄。可以被其他的目录操作函数使用,例如 <span
class="function">readdir, rewinddir
and closedir。
Directory::close
释放目录句柄
说明
public void
Directory::close ([ <span
class="methodparam">resource
$dir_handle
] )
与 closedir 函数功能一样,只是
dir_handle
默认为 $this
变量。
Directory::read
从目录句柄中读取条目
说明
public string
Directory::read ([ <span
class="methodparam">resource
$dir_handle
] )
与 readdir 函数功能一样, 只是
dir_handle
默认为 $this
变量。
Directory::rewind
倒回目录句柄
说明
public void
Directory::rewind ([ <span
class="methodparam">resource
$dir_handle
] )
与 rewinddir 函数功能一样, 只是
dir_handle
默认为 $this
变量。