From 5b2760da9dca574a3440358890d0e09113b49a78 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Sat, 13 Dec 2003 23:10:26 +0000 Subject: [PATCH] Document rename/mkdir/rmdir methods for userspace wrappers. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146390 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/stream-wrapper-register.xml | 69 ++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/reference/stream/functions/stream-wrapper-register.xml b/reference/stream/functions/stream-wrapper-register.xml index b0bc1d3ac8..c6938a7279 100644 --- a/reference/stream/functions/stream-wrapper-register.xml +++ b/reference/stream/functions/stream-wrapper-register.xml @@ -1,5 +1,5 @@ - + stream_wrapper_register @@ -224,6 +224,73 @@ + + boolrename + stringpath_from + stringpath_to + + + This method is called in response to rename + calls on URL paths associated with the wrapper and should attempt + to rename the item specified by path_from + to the specification given by path_to. + It should return &true; on success or &false; on failure. + In order for the appropriate error message to be returned, + do not define this method if your wrapper does not support renaming. + + + + Userspace wrapper rename method is not supported prior to + PHP 5.0.0. + + + + + boolmkdir + stringpath + intmode + intoptions + + + This method is called in response to mkdir + calls on URL paths associated with the wrapper and should attempt + to create the directory specified by path. + It should return &true; on success or &false; on failure. + In order for the appropriate error message to be returned, + do not define this method if your wrapper does not support + creating directories. Posible values for options + include REPORT_ERRORS and + STREAM_MKDIR_RECURSIVE. + + + + Userspace wrapper mkdir method is not supported prior to + PHP 5.0.0. + + + + + boolrmdir + stringpath + intoptions + + + This method is called in response to rmdir + calls on URL paths associated with the wrapper and should attempt + to remove the directory specified by path. + It should return &true; on success or &false; on failure. + In order for the appropriate error message to be returned, + do not define this method if your wrapper does not support + removing directories. Possible values for options + include REPORT_ERRORS. + + + + Userspace wrapper rmdir method is not supported prior to + PHP 5.0.0. + + + booldir_opendir stringpath