note 92277 modified in class.streamwrapper by rasmus

From: Date: Fri, 17 Jul 2009 23:08:54 +0000
Subject: note 92277 modified in class.streamwrapper by rasmus
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-158441@lists.php.net to get a copy of this message
a php interface for wrapper <?php interface WrapperInterface { /** * resource context * * @var resource */ //public $context; /** * constructor * */ public function __construct(); /** * * * @return bool */ public function dir_closedir(); /** * Enter description here... * * @param string $path * @param int $options * @return bool */ public function dir_opendir($path , $options); /** * Enter description here... * * @return string */ public function dir_readdir(); /** * Enter description here... * * @return bool */ public function dir_rewinddir(); /** * Enter description here... * * @param string $path * @param int $mode * @param int $options * @return bool */ public function mkdir($path , $mode , $options); /** * Enter description here... * * @param string $path_from * @param string $path_to * @return bool */ public function rename($path_from , $path_to); /** * Enter description here... * * @param string $path * @param int $options * @return bool */ public function rmdir($path , $options); /** * Enter description here... * * @param int $cast_as * @return resource */ public function stream_cast($cast_as); /** * Enter description here... * */ public function stream_close(); /** * Enter description here... * * @return bool */ public function stream_eof(); /** * Enter description here... * * @return bool */ public function stream_flush(); /** * Enter description here... * * @param mode $operation * @return bool */ public function stream_lock($operation); /** * Enter description here... * * @param string $path * @param string $mode * @param int $options * @param string &$opened_path * @return bool */ public function stream_open($path , $mode , $options , &$opened_path); /** * Enter description here... * * @param int $count * @return string */ public function stream_read($count); /** * Enter description here... * * @param int $offset * @param int $whence = SEEK_SET * @return bool */ public function stream_seek($offset , $whence = SEEK_SET); /** * Enter description here... * * @param int $option * @param int $arg1 * @param int $arg2 * @return bool */ public function stream_set_option($option , $arg1 , $arg2); /** * Enter description here... * * @return array */ public function stream_stat(); /** * Enter description here... * * @return int */ public function stream_tell(); /** * Enter description here... * * @param string $data * @return int */ public function stream_write($data); /** * Enter description here... * * @param string $path * @return bool */ public function unlink($path); /** * Enter description here... * * @param string $path * @param int $flags * @return array */ public function url_stat($path , $flags); } ?> --was-- a php interface for wrapper <?php interface WrapperInterface { /** * resource context * * @var resource */ //public $context; /** * constructor * */ public function __construct(); /** * * * @return bool */ public function dir_closedir(); /** * Enter description here... * * @param string $path * @param int $options * @return bool */ public function dir_opendir($path , $options); /** * Enter description here... * * @return string */ public function dir_readdir(); /** * Enter description here... * * @return bool */ public function dir_rewinddir(); /** * Enter description here... * * @param string $path * @param int $mode * @param int $options * @return bool */ public function mkdir($path , $mode , $options); /** * Enter description here... * * @param string $path_from * @param string $path_to * @return bool */ public function rename($path_from , $path_to); /** * Enter description here... * * @param string $path * @param int $options * @return bool */ public function rmdir($path , $options); /** * Enter description here... * * @param int $cast_as * @return resource */ public function stream_cast($cast_as); /** * Enter description here... * */ public function stream_close(); /** * Enter description here... * * @return bool */ public function stream_eof(); /** * Enter description here... * * @return bool */ public function stream_flush(); /** * Enter description here... * * @param mode $operation * @return bool */ public function stream_lock($operation); /** * Enter description here... * * @param string $path * @param string $mode * @param int $options * @param string &$opened_path * @return bool */ public function stream_open($path , $mode , $options , &$opened_path); /** * Enter description here... * * @param int $count * @return string */ public function stream_read($count); /** * Enter description here... * * @param int $offset * @param int $whence = SEEK_SET * @return bool */ public function stream_seek($offset , $whence = SEEK_SET); /** * Enter description here... * * @param int $option * @param int $arg1 * @param int $arg2 * @return bool */ public function stream_set_option($option , $arg1 , $arg2); /** * Enter description here... * * @return array */ public function stream_stat(); /** * Enter description here... * * @return int */ public function stream_tell(); /** * Enter description here... * * @param string $data * @return int */ public function stream_write($data); /** * Enter description here... * * @param string $path * @return bool */ public function unlink($path); /** * Enter description here... * * @param string $path * @param int $flags * @return array */ public function url_stat($path , $flags); } ?> http://php.net/manual/en/class.streamwrapper.php

« previous php.notes (#158441) next »