diff options
Diffstat (limited to 'REFLECTION')
-rw-r--r-- | REFLECTION | 369 |
1 files changed, 225 insertions, 144 deletions
@@ -1,75 +1,83 @@ -Extension [ <persistent> extension #66 zip version 1.20.0-dev ] { +Extension [ <persistent> extension #66 zip version 1.22.3 ] { - Functions { - Function [ <internal:zip> function zip_open ] { + Function [ <internal, deprecated:zip> function zip_open ] { - Parameters [1] { - Parameter #0 [ <required> $filename ] + Parameter #0 [ <required> string $filename ] } } - Function [ <internal:zip> function zip_close ] { + Function [ <internal, deprecated:zip> function zip_close ] { - Parameters [1] { Parameter #0 [ <required> $zip ] } + - Return [ void ] } - Function [ <internal:zip> function zip_read ] { + Function [ <internal, deprecated:zip> function zip_read ] { - Parameters [1] { Parameter #0 [ <required> $zip ] } } - Function [ <internal:zip> function zip_entry_open ] { + Function [ <internal, deprecated:zip> function zip_entry_open ] { - Parameters [3] { Parameter #0 [ <required> $zip_dp ] Parameter #1 [ <required> $zip_entry ] - Parameter #2 [ <optional> $mode ] + Parameter #2 [ <optional> string $mode = "rb" ] } + - Return [ bool ] } - Function [ <internal:zip> function zip_entry_close ] { + Function [ <internal, deprecated:zip> function zip_entry_close ] { - Parameters [1] { - Parameter #0 [ <required> $zip_ent ] + Parameter #0 [ <required> $zip_entry ] } + - Return [ bool ] } - Function [ <internal:zip> function zip_entry_read ] { + Function [ <internal, deprecated:zip> function zip_entry_read ] { - Parameters [2] { Parameter #0 [ <required> $zip_entry ] - Parameter #1 [ <optional> $len ] + Parameter #1 [ <optional> int $len = 1024 ] } + - Return [ string|false ] } - Function [ <internal:zip> function zip_entry_filesize ] { + Function [ <internal, deprecated:zip> function zip_entry_name ] { - Parameters [1] { Parameter #0 [ <required> $zip_entry ] } + - Return [ string|false ] } - Function [ <internal:zip> function zip_entry_name ] { + Function [ <internal, deprecated:zip> function zip_entry_compressedsize ] { - Parameters [1] { Parameter #0 [ <required> $zip_entry ] } + - Return [ int|false ] } - Function [ <internal:zip> function zip_entry_compressedsize ] { + Function [ <internal, deprecated:zip> function zip_entry_filesize ] { - Parameters [1] { Parameter #0 [ <required> $zip_entry ] } + - Return [ int|false ] } - Function [ <internal:zip> function zip_entry_compressionmethod ] { + Function [ <internal, deprecated:zip> function zip_entry_compressionmethod ] { - Parameters [1] { Parameter #0 [ <required> $zip_entry ] } + - Return [ string|false ] } } - Classes [1] { Class [ <internal:zip> class ZipArchive implements Countable ] { - - Constants [101] { + - Constants [109] { Constant [ public int CREATE ] { 1 } Constant [ public int EXCL ] { 2 } Constant [ public int CHECKCONS ] { 4 } @@ -89,6 +97,7 @@ Extension [ <persistent> extension #66 zip version 1.20.0-dev ] { Constant [ public int FL_ENC_STRICT ] { 128 } Constant [ public int FL_ENC_UTF_8 ] { 2048 } Constant [ public int FL_ENC_CP437 ] { 4096 } + Constant [ public int FL_OPEN_FILE_NOW ] { 1073741824 } Constant [ public int CM_DEFAULT ] { -1 } Constant [ public int CM_STORE ] { 0 } Constant [ public int CM_SHRINK ] { 1 } @@ -142,6 +151,12 @@ Extension [ <persistent> extension #66 zip version 1.20.0-dev ] { Constant [ public int ER_TELL ] { 30 } Constant [ public int ER_COMPRESSED_DATA ] { 31 } Constant [ public int ER_CANCELLED ] { 32 } + Constant [ public int ER_DATA_LENGTH ] { 33 } + Constant [ public int ER_NOT_ALLOWED ] { 34 } + Constant [ public int AFL_RDONLY ] { 2 } + Constant [ public int AFL_IS_TORRENTZIP ] { 4 } + Constant [ public int AFL_WANT_TORRENTZIP ] { 8 } + Constant [ public int AFL_CREATE_OR_KEEP_FILE_FOR_EMPTY_ARCHIVE ] { 16 } Constant [ public int OPSYS_DOS ] { 0 } Constant [ public int OPSYS_AMIGA ] { 1 } Constant [ public int OPSYS_OPENVMS ] { 2 } @@ -151,7 +166,6 @@ Extension [ <persistent> extension #66 zip version 1.20.0-dev ] { Constant [ public int OPSYS_OS_2 ] { 6 } Constant [ public int OPSYS_MACINTOSH ] { 7 } Constant [ public int OPSYS_Z_SYSTEM ] { 8 } - Constant [ public int OPSYS_Z_CPM ] { 9 } Constant [ public int OPSYS_CPM ] { 9 } Constant [ public int OPSYS_WINDOWS_NTFS ] { 10 } Constant [ public int OPSYS_MVS ] { 11 } @@ -170,7 +184,9 @@ Extension [ <persistent> extension #66 zip version 1.20.0-dev ] { Constant [ public int EM_AES_192 ] { 258 } Constant [ public int EM_AES_256 ] { 259 } Constant [ public int EM_UNKNOWN ] { 65535 } - Constant [ public string LIBZIP_VERSION ] { 1.8.0 } + Constant [ public string LIBZIP_VERSION ] { 1.10.1 } + Constant [ public int LENGTH_TO_END ] { 0 } + Constant [ public int LENGTH_UNCHECKED ] { -2 } } - Static properties [0] { @@ -180,416 +196,481 @@ Extension [ <persistent> extension #66 zip version 1.20.0-dev ] { Method [ <internal:zip> static public method isCompressionMethodSupported ] { - Parameters [2] { - Parameter #0 [ <required> $method ] - Parameter #1 [ <optional> $encode ] + Parameter #0 [ <required> int $method ] + Parameter #1 [ <optional> bool $enc = true ] } + - Return [ bool ] } Method [ <internal:zip> static public method isEncryptionMethodSupported ] { - Parameters [2] { - Parameter #0 [ <required> $method ] - Parameter #1 [ <optional> $encode ] + Parameter #0 [ <required> int $method ] + Parameter #1 [ <optional> bool $enc = true ] } + - Return [ bool ] } } - Properties [6] { - Property [ <default> public $lastId ] - Property [ <default> public $status ] - Property [ <default> public $statusSys ] - Property [ <default> public $numFiles ] - Property [ <default> public $filename ] - Property [ <default> public $comment ] + Property [ public int $lastId ] + Property [ public int $status ] + Property [ public int $statusSys ] + Property [ public int $numFiles ] + Property [ public string $filename ] + Property [ public string $comment ] } - - Methods [48] { + - Methods [50] { Method [ <internal:zip> public method open ] { - Parameters [2] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $filename ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Tentative return [ int|bool ] } Method [ <internal:zip> public method setPassword ] { - Parameters [1] { - Parameter #0 [ <required> $password ] + Parameter #0 [ <required> string $password ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method close ] { - Parameters [0] { } + - Tentative return [ bool ] } Method [ <internal:zip, prototype Countable> public method count ] { - Parameters [0] { } + - Tentative return [ int ] } Method [ <internal:zip> public method getStatusString ] { - Parameters [0] { } + - Tentative return [ string ] } Method [ <internal:zip> public method clearError ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:zip> public method addEmptyDir ] { - Parameters [2] { - Parameter #0 [ <required> $dirname ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $dirname ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method addFromString ] { - Parameters [3] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $content ] - Parameter #2 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> string $content ] + Parameter #2 [ <optional> int $flags = ZipArchive::FL_OVERWRITE ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method addFile ] { - Parameters [5] { - Parameter #0 [ <required> $filepath ] - Parameter #1 [ <optional> $entryname ] - Parameter #2 [ <optional> $start ] - Parameter #3 [ <optional> $length ] - Parameter #4 [ <optional> $flags ] + Parameter #0 [ <required> string $filepath ] + Parameter #1 [ <optional> string $entryname = "" ] + Parameter #2 [ <optional> int $start = 0 ] + Parameter #3 [ <optional> int $length = ZipArchive::LENGTH_TO_END ] + Parameter #4 [ <optional> int $flags = ZipArchive::FL_OVERWRITE ] + } + - Tentative return [ bool ] + } + + Method [ <internal:zip> public method replaceFile ] { + + - Parameters [5] { + Parameter #0 [ <required> string $filepath ] + Parameter #1 [ <required> int $index ] + Parameter #2 [ <optional> int $start = 0 ] + Parameter #3 [ <optional> int $length = ZipArchive::LENGTH_TO_END ] + Parameter #4 [ <optional> int $flags = 0 ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method addGlob ] { - Parameters [3] { - Parameter #0 [ <required> $pattern ] - Parameter #1 [ <optional> $flags ] - Parameter #2 [ <optional> $options ] + Parameter #0 [ <required> string $pattern ] + Parameter #1 [ <optional> int $flags = 0 ] + Parameter #2 [ <optional> array $options = [] ] } + - Tentative return [ array|false ] } Method [ <internal:zip> public method addPattern ] { - Parameters [3] { - Parameter #0 [ <required> $pattern ] - Parameter #1 [ <optional> $path ] - Parameter #2 [ <optional> $options ] + Parameter #0 [ <required> string $pattern ] + Parameter #1 [ <optional> string $path = "." ] + Parameter #2 [ <optional> array $options = [] ] } + - Tentative return [ array|false ] } Method [ <internal:zip> public method renameIndex ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $new_name ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> string $new_name ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method renameName ] { - Parameters [2] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $new_name ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> string $new_name ] } + - Tentative return [ bool ] } - Method [ <internal:zip> public method replaceFile ] { + Method [ <internal:zip> public method setArchiveComment ] { - - Parameters [5] { - Parameter #0 [ <required> $filepath ] - Parameter #1 [ <required> $index ] - Parameter #2 [ <optional> $start ] - Parameter #3 [ <optional> $length ] - Parameter #4 [ <optional> $flags ] + - Parameters [1] { + Parameter #0 [ <required> string $comment ] } + - Tentative return [ bool ] } - Method [ <internal:zip> public method setArchiveComment ] { + Method [ <internal:zip> public method getArchiveComment ] { - Parameters [1] { - Parameter #0 [ <required> $comment ] + Parameter #0 [ <optional> int $flags = 0 ] } + - Tentative return [ string|false ] } - Method [ <internal:zip> public method getArchiveComment ] { + Method [ <internal:zip> public method setArchiveFlag ] { - - Parameters [1] { - Parameter #0 [ <optional> $flags ] + - Parameters [2] { + Parameter #0 [ <required> int $flag ] + Parameter #1 [ <required> int $value ] + } + - Return [ bool ] + } + + Method [ <internal:zip> public method getArchiveFlag ] { + + - Parameters [2] { + Parameter #0 [ <required> int $flag ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Return [ int ] } Method [ <internal:zip> public method setCommentIndex ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $comment ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> string $comment ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method setCommentName ] { - Parameters [2] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $comment ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> string $comment ] } + - Tentative return [ bool ] + } + + Method [ <internal:zip> public method setMtimeIndex ] { + + - Parameters [3] { + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> int $timestamp ] + Parameter #2 [ <optional> int $flags = 0 ] + } + - Tentative return [ bool ] + } + + Method [ <internal:zip> public method setMtimeName ] { + + - Parameters [3] { + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> int $timestamp ] + Parameter #2 [ <optional> int $flags = 0 ] + } + - Tentative return [ bool ] } Method [ <internal:zip> public method getCommentIndex ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Tentative return [ string|false ] } Method [ <internal:zip> public method getCommentName ] { - Parameters [2] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Tentative return [ string|false ] } Method [ <internal:zip> public method deleteIndex ] { - Parameters [1] { - Parameter #0 [ <required> $index ] + Parameter #0 [ <required> int $index ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method deleteName ] { - Parameters [1] { - Parameter #0 [ <required> $name ] + Parameter #0 [ <required> string $name ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method statName ] { - Parameters [2] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Tentative return [ array|false ] } Method [ <internal:zip> public method statIndex ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Tentative return [ array|false ] } Method [ <internal:zip> public method locateName ] { - Parameters [2] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Tentative return [ int|false ] } Method [ <internal:zip> public method getNameIndex ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Tentative return [ string|false ] } Method [ <internal:zip> public method unchangeArchive ] { - Parameters [0] { } + - Tentative return [ bool ] } Method [ <internal:zip> public method unchangeAll ] { - Parameters [0] { } + - Tentative return [ bool ] } Method [ <internal:zip> public method unchangeIndex ] { - Parameters [1] { - Parameter #0 [ <required> $index ] + Parameter #0 [ <required> int $index ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method unchangeName ] { - Parameters [1] { - Parameter #0 [ <required> $name ] + Parameter #0 [ <required> string $name ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method extractTo ] { - Parameters [2] { - Parameter #0 [ <required> $pathto ] - Parameter #1 [ <optional> $files ] + Parameter #0 [ <required> string $pathto ] + Parameter #1 [ <optional> array|string|null $files = null ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method getFromName ] { - Parameters [3] { - Parameter #0 [ <required> $entryname ] - Parameter #1 [ <optional> $len ] - Parameter #2 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <optional> int $len = 0 ] + Parameter #2 [ <optional> int $flags = 0 ] } + - Tentative return [ string|false ] } Method [ <internal:zip> public method getFromIndex ] { - Parameters [3] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <optional> $len ] - Parameter #2 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <optional> int $len = 0 ] + Parameter #2 [ <optional> int $flags = 0 ] } + - Tentative return [ string|false ] } - Method [ <internal:zip> public method getStreamName ] { + Method [ <internal:zip> public method getStreamIndex ] { - Parameters [2] { - Parameter #0 [ <required> $entryname ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <optional> int $flags = 0 ] } } - Method [ <internal:zip> public method getStreamIndex ] { + Method [ <internal:zip> public method getStreamName ] { - Parameters [2] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <optional> int $flags = 0 ] } } Method [ <internal:zip> public method getStream ] { - Parameters [1] { - Parameter #0 [ <required> $entryname ] + Parameter #0 [ <required> string $name ] } } Method [ <internal:zip> public method setExternalAttributesName ] { - Parameters [4] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $opsys ] - Parameter #2 [ <required> $attr ] - Parameter #3 [ <optional> $flags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> int $opsys ] + Parameter #2 [ <required> int $attr ] + Parameter #3 [ <optional> int $flags = 0 ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method setExternalAttributesIndex ] { - Parameters [4] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $opsys ] - Parameter #2 [ <required> $attr ] - Parameter #3 [ <optional> $flags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> int $opsys ] + Parameter #2 [ <required> int $attr ] + Parameter #3 [ <optional> int $flags = 0 ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method getExternalAttributesName ] { - Parameters [4] { - Parameter #0 [ <required> $name ] + Parameter #0 [ <required> string $name ] Parameter #1 [ <required> &$opsys ] Parameter #2 [ <required> &$attr ] - Parameter #3 [ <optional> $flags ] + Parameter #3 [ <optional> int $flags = 0 ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method getExternalAttributesIndex ] { - Parameters [4] { - Parameter #0 [ <required> $index ] + Parameter #0 [ <required> int $index ] Parameter #1 [ <required> &$opsys ] Parameter #2 [ <required> &$attr ] - Parameter #3 [ <optional> $flags ] - } - } - - Method [ <internal:zip> public method setMtimeName ] { - - - Parameters [3] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $timestamp ] - Parameter #2 [ <optional> $flags ] - } - } - - Method [ <internal:zip> public method setMtimeIndex ] { - - - Parameters [3] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $timestamp ] - Parameter #2 [ <optional> $flags ] + Parameter #3 [ <optional> int $flags = 0 ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method setCompressionName ] { - Parameters [3] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $method ] - Parameter #2 [ <optional> $compflags ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> int $method ] + Parameter #2 [ <optional> int $compflags = 0 ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method setCompressionIndex ] { - Parameters [3] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $method ] - Parameter #2 [ <optional> $compflags ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> int $method ] + Parameter #2 [ <optional> int $compflags = 0 ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method setEncryptionName ] { - Parameters [3] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $method ] - Parameter #2 [ <optional> $password ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> int $method ] + Parameter #2 [ <optional> ?string $password = null ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method setEncryptionIndex ] { - Parameters [3] { - Parameter #0 [ <required> $index ] - Parameter #1 [ <required> $method ] - Parameter #2 [ <optional> $password ] + Parameter #0 [ <required> int $index ] + Parameter #1 [ <required> int $method ] + Parameter #2 [ <optional> ?string $password = null ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method registerProgressCallback ] { - Parameters [2] { - Parameter #0 [ <required> $rate ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> float $rate ] + Parameter #1 [ <required> callable $callback ] } + - Tentative return [ bool ] } Method [ <internal:zip> public method registerCancelCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $callback ] } + - Tentative return [ bool ] } } } |