Add @method tags for File and GZipFile class
authorMatthias Schmidt <gravatronics@live.com>
Sat, 21 May 2016 20:31:09 +0000 (22:31 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 21 May 2016 20:31:09 +0000 (22:31 +0200)
wcfsetup/install/files/lib/system/io/File.class.php
wcfsetup/install/files/lib/system/io/GZipFile.class.php

index 9baacf14e0893f4030e5384dea4f1a2e8d346844..9dce79165e449c524b4e773f1909e477e554a70f 100644 (file)
@@ -22,6 +22,16 @@ use wcf\system\exception\SystemException;
  * @package    com.woltlab.wcf
  * @subpackage system.io
  * @category   Community Framework
+ * 
+ * @method     boolean         close($handle)
+ * @method     boolean         eof($handle)
+ * @method     string          gets($handle, $length = null)
+ * @method     resource        open($filename, $mode, $use_include_path = false, $context = null)
+ * @method     integer         seek($handle, $offset, $whence = SEEK_SET)
+ * @method     string          read($zp, $length)
+ * @method     integer         tell($handle)
+ * @method     boolean         touch($filename, $time = 0, $atime = 0)         note: default value of `$time` actually is `time()`
+ * @method     integer         write($handle, $string, $length = null)
  */
 class File {
        /**
index 226cf2e1628c54e3836bc438a4d78e79cfd3997e..b4ae3162b3feb3533e485e64f0a6f19a152bbf93 100644 (file)
@@ -11,6 +11,9 @@ use wcf\system\exception\SystemException;
  * @package    com.woltlab.wcf
  * @subpackage system.io
  * @category   Community Framework
+ * 
+ * @method     resource        open($filename, $mode, $use_include_path = 0)
+ * @method     boolean         rewind($zp)
  */
 class GZipFile extends File {
        /**
@@ -89,7 +92,7 @@ class GZipFile extends File {
                }
                
                if ($this->seek($eof) == -1) $eof--;
-                               
+               
                $this->rewind();
                return $eof - $correction;
        }