1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213
|
<?php
// Start of Phar v.2.0.2
class PharException extends Exception {
protected $message;
protected $code;
protected $file;
protected $line;
final private function __clone () {}
/**
* @param message[optional]
* @param code[optional]
* @param previous[optional]
*/
public function __construct ($message, $code, $previous) {}
final public function getMessage () {}
final public function getCode () {}
final public function getFile () {}
final public function getLine () {}
final public function getTrace () {}
final public function getPrevious () {}
final public function getTraceAsString () {}
public function __toString () {}
}
class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, SeekableIterator, Traversable, Iterator, Countable, ArrayAccess {
const CURRENT_MODE_MASK = 240;
const CURRENT_AS_PATHNAME = 32;
const CURRENT_AS_FILEINFO = 0;
const CURRENT_AS_SELF = 16;
const KEY_MODE_MASK = 3840;
const KEY_AS_PATHNAME = 0;
const FOLLOW_SYMLINKS = 512;
const KEY_AS_FILENAME = 256;
const NEW_CURRENT_AND_KEY = 256;
const OTHER_MODE_MASK = 12288;
const SKIP_DOTS = 4096;
const UNIX_PATHS = 8192;
const BZ2 = 8192;
const GZ = 4096;
const NONE = 0;
const PHAR = 1;
const TAR = 2;
const ZIP = 3;
const COMPRESSED = 61440;
const PHP = 0;
const PHPS = 1;
const MD5 = 1;
const OPENSSL = 16;
const SHA1 = 2;
const SHA256 = 3;
const SHA512 = 4;
/**
* Construct a Phar archive object
* @link http://www.php.net/manual/en/phar.construct.php
* @param filename
* @param flags[optional]
* @param alias[optional]
* @param fileformat[optional]
*/
public function __construct ($filename, $flags, $alias, $fileformat) {}
public function __destruct () {}
/**
* Add an empty directory to the phar archive
* @link http://www.php.net/manual/en/phar.addemptydir.php
* @param dirname string <p>
* The name of the empty directory to create in the phar archive
* </p>
* @return void no return value, exception is thrown on failure.
*/
public function addEmptyDir ($dirname) {}
/**
* Add a file from the filesystem to the phar archive
* @link http://www.php.net/manual/en/phar.addfile.php
* @param file string <p>
* Full or relative path to a file on disk to be added
* to the phar archive.
* </p>
* @param localname string[optional] <p>
* Path that the file will be stored in the archive.
* </p>
* @return void no return value, exception is thrown on failure.
*/
public function addFile ($file, $localname = null) {}
/**
* Add a file from a string to the phar archive
* @link http://www.php.net/manual/en/phar.addfromstring.php
* @param localname string <p>
* Path that the file will be stored in the archive.
* </p>
* @param contents string <p>
* The file contents to store
* </p>
* @return void no return value, exception is thrown on failure.
*/
public function addFromString ($localname, $contents) {}
/**
* Construct a phar archive from the files within a directory.
* @link http://www.php.net/manual/en/phar.buildfromdirectory.php
* @param base_dir string <p>
* The full or relative path to the directory that contains all files
* to add to the archive.
* </p>
* @param regex string[optional] <p>
* An optional pcre regular expression that is used to filter the
* list of files. Only file paths matching the regular expression
* will be included in the archive.
* </p>
* @return array Phar::buildFromDirectory returns an associative array
* mapping internal path of file to the full path of the file on the
* filesystem.
*/
public function buildFromDirectory ($base_dir, $regex = null) {}
/**
* Construct a phar archive from an iterator.
* @link http://www.php.net/manual/en/phar.buildfromiterator.php
* @param iter Iterator <p>
* Any iterator that either associatively maps phar file to location or
* returns SplFileInfo objects
* </p>
* @param base_directory string[optional] <p>
* For iterators that return SplFileInfo objects, the portion of each
* file's full path to remove when adding to the phar archive
* </p>
* @return array Phar::buildFromIterator returns an associative array
* mapping internal path of file to the full path of the file on the
* filesystem.
*/
public function buildFromIterator ($iter, $base_directory = null) {}
/**
* Compresses all files in the current Phar archive
* @link http://www.php.net/manual/en/phar.compressfiles.php
* @param compression int <p>
* Compression must be one of Phar::GZ,
* Phar::BZ2 to add compression, or Phar::NONE
* to remove compression.
* </p>
* @return void
*/
public function compressFiles ($compression) {}
/**
* Decompresses all files in the current Phar archive
* @link http://www.php.net/manual/en/phar.decompressfiles.php
* @return bool Returns true on success, false on failure.
*/
public function decompressFiles () {}
/**
* Compresses the entire Phar archive using Gzip or Bzip2 compression
* @link http://www.php.net/manual/en/phar.compress.php
* @param compression int <p>
* Compression must be one of Phar::GZ,
* Phar::BZ2 to add compression, or Phar::NONE
* to remove compression.
* </p>
* @param extension string[optional] <p>
* By default, the extension is .phar.gz
* or .phar.bz2 for compressing phar archives, and
* .phar.tar.gz or .phar.tar.bz2 for
* compressing tar archives. For decompressing, the default file extensions
* are .phar and .phar.tar.
* </p>
* @return object a Phar object.
*/
public function compress ($compression, $extension = null) {}
/**
* Decompresses the entire Phar archive
* @link http://www.php.net/manual/en/phar.decompress.php
* @param extension string[optional] <p>
* For decompressing, the default file extensions
* are .phar and .phar.tar.
* Use this parameter to specify another file extension. Be aware
* that all executable phar archives must contain .phar
* in their filename.
* </p>
* @return object A Phar object is returned.
*/
public function decompress ($extension = null) {}
/**
* Convert a phar archive to another executable phar archive file format
* @link http://www.php.net/manual/en/phar.converttoexecutable.php
* @param format int[optional] <p>
* This should be one of Phar::PHAR, Phar::TAR,
* or Phar::ZIP. If set to &null;, the existing file format
* will be preserved.
* </p>
* @param compression int[optional] <p>
* This should be one of Phar::NONE for no whole-archive
* compression, Phar::GZ for zlib-based compression, and
* Phar::BZ2 for bzip-based compression.
* </p>
* @param extension string[optional] <p>
* This parameter is used to override the default file extension for a
* converted archive. Note that all zip- and tar-based phar archives must contain
* .phar in their file extension in order to be processed as a
* phar archive.
* </p>
* <p>
* If converting to a phar-based archive, the default extensions are
* .phar, .phar.gz, or .phar.bz2
* depending on the specified compression. For tar-based phar archives, the
* default extensions are .phar.tar, .phar.tar.gz,
* and .phar.tar.bz2. For zip-based phar archives, the
* default extension is .phar.zip.
* </p>
* @return Phar The method returns a Phar object on success and throws an
* exception on failure.
*/
public function convertToExecutable ($format = null, $compression = null, $extension = null) {}
/**
* Convert a phar archive to a non-executable tar or zip file
* @link http://www.php.net/manual/en/phar.converttodata.php
* @param format int[optional] <p>
* This should be one of Phar::TAR
* or Phar::ZIP. If set to &null;, the existing file format
* will be preserved.
* </p>
* @param compression int[optional] <p>
* This should be one of Phar::NONE for no whole-archive
* compression, Phar::GZ for zlib-based compression, and
* Phar::BZ2 for bzip-based compression.
* </p>
* @param extension string[optional] <p>
* This parameter is used to override the default file extension for a
* converted archive. Note that .phar cannot be used
* anywhere in the filename for a non-executable tar or zip archive.
* </p>
* <p>
* If converting to a tar-based phar archive, the
* default extensions are .tar, .tar.gz,
* and .tar.bz2 depending on specified compression.
* For zip-based archives, the
* default extension is .zip.
* </p>
* @return PharData The method returns a PharData object on success and throws an
* exception on failure.
*/
public function convertToData ($format = null, $compression = null, $extension = null) {}
/**
* Copy a file internal to the phar archive to another new file within the phar
* @link http://www.php.net/manual/en/phar.copy.php
* @param oldfile string <p>
* </p>
* @param newfile string <p>
* </p>
* @return bool returns true on success, but it is safer to encase method call in a
* try/catch block and assume success if no exception is thrown.
*/
public function copy ($oldfile, $newfile) {}
/**
* Returns the number of entries (files) in the Phar archive
* @link http://www.php.net/manual/en/phar.count.php
* @return int The number of files contained within this phar, or 0 (the number zero)
* if none.
*/
public function count () {}
/**
* Delete a file within a phar archive
* @link http://www.php.net/manual/en/phar.delete.php
* @param entry string <p>
* Path within an archive to the file to delete.
* </p>
* @return bool returns true on success, but it is better to check for thrown exception,
* and assume success if none is thrown.
*/
public function delete ($entry) {}
/**
* Deletes the global metadata of the phar
* @link http://www.php.net/manual/en/phar.delmetadata.php
* @return bool returns true on success, but it is better to check for thrown exception,
* and assume success if none is thrown.
*/
public function delMetadata () {}
/**
* Extract the contents of a phar archive to a directory
* @link http://www.php.net/manual/en/phar.extractto.php
* @param pathto string <p>
* Path within an archive to the file to delete.
* </p>
* @param files string|array[optional] <p>
* The name of a file or directory to extract, or an array of files/directories to extract
* </p>
* @param overwrite bool[optional] <p>
* Set to true to enable overwriting existing files
* </p>
* @return bool returns true on success, but it is better to check for thrown exception,
* and assume success if none is thrown.
*/
public function extractTo ($pathto, $files = null, $overwrite = null) {}
public function getAlias () {}
public function getPath () {}
/**
* Returns phar archive meta-data
* @link http://www.php.net/manual/en/phar.getmetadata.php
* @return mixed any PHP variable that can be serialized and is stored as meta-data for the Phar archive,
* or &null; if no meta-data is stored.
*/
public function getMetadata () {}
/**
* Return whether phar was modified
* @link http://www.php.net/manual/en/phar.getmodified.php
* @return bool true if the phar has been modified since opened, false if not.
*/
public function getModified () {}
/**
* Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive
* @link http://www.php.net/manual/en/phar.getsignature.php
* @return array Array with the opened archive's signature in hash key and MD5,
* SHA-1,
* SHA-256, SHA-512, or OpenSSL
* in hash_type. This signature is a hash calculated on the
* entire phar's contents, and may be used to verify the integrity of the archive.
* A valid signature is absolutely required of all executable phar archives if the
* phar.require_hash INI variable
* is set to true.
*/
public function getSignature () {}
/**
* Return the PHP loader or bootstrap stub of a Phar archive
* @link http://www.php.net/manual/en/phar.getstub.php
* @return string a string containing the contents of the bootstrap loader (stub) of
* the current Phar archive.
*/
public function getStub () {}
/**
* Return version info of Phar archive
* @link http://www.php.net/manual/en/phar.getversion.php
* @return string The opened archive's API version. This is not to be confused with
* the API version that the loaded phar extension will use to create
* new phars. Each Phar archive has the API version hard-coded into
* its manifest. See Phar file format
* documentation for more information.
*/
public function getVersion () {}
/**
* Returns whether phar has global meta-data
* @link http://www.php.net/manual/en/phar.hasmetadata.php
* @return bool true if meta-data has been set, and false if not.
*/
public function hasMetadata () {}
/**
* Used to determine whether Phar write operations are being buffered, or are flushing directly to disk
* @link http://www.php.net/manual/en/phar.isbuffering.php
* @return bool true if the write operations are being buffer, false otherwise.
*/
public function isBuffering () {}
/**
* Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and so on)
* @link http://www.php.net/manual/en/phar.iscompressed.php
* @return mixed Phar::GZ, Phar::BZ2 or false
*/
public function isCompressed () {}
/**
* Returns true if the phar archive is based on the tar/phar/zip file format depending on the parameter
* @link http://www.php.net/manual/en/phar.isfileformat.php
* @param format int <p>
* Either Phar::PHAR, Phar::TAR, or
* Phar::ZIP to test for the format of the archive.
* </p>
* @return bool true if the phar archive matches the file format requested by the parameter
*/
public function isFileFormat ($format) {}
/**
* Returns true if the phar archive can be modified
* @link http://www.php.net/manual/en/phar.iswritable.php
* @return bool true if the phar archive can be modified
*/
public function isWritable () {}
/**
* determines whether a file exists in the phar
* @link http://www.php.net/manual/en/phar.offsetexists.php
* @param offset string <p>
* The filename (relative path) to look for in a Phar.
* </p>
* @return bool true if the file exists within the phar, or false if not.
*/
public function offsetExists ($offset) {}
/**
* Gets a <classname>PharFileInfo</classname> object for a specific file
* @link http://www.php.net/manual/en/phar.offsetget.php
* @param offset string <p>
* The filename (relative path) to look for in a Phar.
* </p>
* @return int A PharFileInfo object is returned that can be used to
* iterate over a file's contents or to retrieve information about the current file.
*/
public function offsetGet ($offset) {}
/**
* set the contents of an internal file to those of an external file
* @link http://www.php.net/manual/en/phar.offsetset.php
* @param offset string <p>
* The filename (relative path) to modify in a Phar.
* </p>
* @param value string <p>
* Content of the file.
* </p>
* @return void No return values.
*/
public function offsetSet ($offset, $value) {}
/**
* remove a file from a phar
* @link http://www.php.net/manual/en/phar.offsetunset.php
* @param offset string <p>
* The filename (relative path) to modify in a Phar.
* </p>
* @return bool Returns true on success, false on failure.
*/
public function offsetUnset ($offset) {}
/**
* Set the alias for the Phar archive
* @link http://www.php.net/manual/en/phar.setalias.php
* @param alias string <p>
* A shorthand string that this archive can be referred to in phar
* stream wrapper access.
* </p>
* @return bool
*/
public function setAlias ($alias) {}
/**
* Used to set the PHP loader or bootstrap stub of a Phar archive to the default loader
* @link http://www.php.net/manual/en/phar.setdefaultstub.php
* @param index string[optional] <p>
* Relative path within the phar archive to run if accessed on the command-line
* </p>
* @param webindex string[optional] <p>
* Relative path within the phar archive to run if accessed through a web browser
* </p>
* @return bool Returns true on success, false on failure.
*/
public function setDefaultStub ($index = null, $webindex = null) {}
/**
* Sets phar archive meta-data
* @link http://www.php.net/manual/en/phardata.setmetadata.php
* @param metadata mixed <p>
* Any PHP variable containing information to store that describes the phar archive
* </p>
* @param metadata mixed
* @return void
*/
public function setMetadata ($metadata, $metadata) {}
/**
* set the signature algorithm for a phar and apply it. The
* @link http://www.php.net/manual/en/phardata.setsignaturealgorithm.php
* @param sigtype int <p>
* One of Phar::MD5,
* Phar::SHA1, Phar::SHA256,
* Phar::SHA512, or Phar::PGP
* </p>
* @param privatekey string[optional] <p>
* The contents of an OpenSSL private key, as extracted from a certificate or
* OpenSSL key file:
*
* setSignatureAlgorithm(Phar::OPENSSL, $pkey);
* ?>
* ]]>
*
* See phar introduction for instructions on
* naming and placement of the public key file.
* </p>
* @param sigtype int
* @return void
*/
public function setSignatureAlgorithm ($sigtype, $privatekey = null, $sigtype) {}
/**
* Used to set the PHP loader or bootstrap stub of a Phar archive
* @link http://www.php.net/manual/en/phar.setstub.php
* @param stub string <p>
* A string or an open stream handle to use as the executable stub for this
* phar archive.
* </p>
* @param len int[optional] <p>
*
* </p>
* @return bool Returns true on success, false on failure.
*/
public function setStub ($stub, $len = null) {}
/**
* Start buffering Phar write operations, do not modify the Phar object on disk
* @link http://www.php.net/manual/en/phar.startbuffering.php
* @return void
*/
public function startBuffering () {}
/**
* Stop buffering write requests to the Phar archive, and save changes to disk
* @link http://www.php.net/manual/en/phar.stopbuffering.php
* @return void
*/
public function stopBuffering () {}
/**
* Returns the api version
* @link http://www.php.net/manual/en/phar.apiversion.php
* @return string The API version string as in "1.0.0".
*/
final public static function apiVersion () {}
/**
* Returns whether phar extension supports compression using either zlib or bzip2
* @link http://www.php.net/manual/en/phar.cancompress.php
* @param type int[optional] <p>
* Either Phar::GZ or Phar::BZ2 can be
* used to test whether compression is possible with a specific compression
* algorithm (zlib or bzip2).
* </p>
* @return bool true if compression/decompression is available, false if not.
*/
final public static function canCompress ($type = null) {}
/**
* Returns whether phar extension supports writing and creating phars
* @link http://www.php.net/manual/en/phar.canwrite.php
* @return bool true if write access is enabled, false if it is disabled.
*/
final public static function canWrite () {}
/**
* Create a phar-file format specific stub
* @link http://www.php.net/manual/en/phar.createdefaultstub.php
* @param indexfile string[optional]
* @param webindexfile string[optional]
* @return string a string containing the contents of a customized bootstrap loader (stub)
* that allows the created Phar archive to work with or without the Phar extension
* enabled.
*/
final public static function createDefaultStub ($indexfile = null, $webindexfile = null) {}
/**
* Return array of supported compression algorithms
* @link http://www.php.net/manual/en/phar.getsupportedcompression.php
* @return array an array containing any of Phar::GZ or
* Phar::BZ2, depending on the availability of
* the zlib extension or the
* bz2 extension.
*/
final public static function getSupportedCompression () {}
/**
* Return array of supported signature types
* @link http://www.php.net/manual/en/phar.getsupportedsignatures.php
* @return array an array containing any of MD5, SHA-1,
* SHA-256, SHA-512, or OpenSSL.
*/
final public static function getSupportedSignatures () {}
/**
* instructs phar to intercept fopen, file_get_contents, opendir, and all of the stat-related functions
* @link http://www.php.net/manual/en/phar.interceptfilefuncs.php
* @return void
*/
final public static function interceptFileFuncs () {}
/**
* Returns whether the given filename is a valid phar filename
* @link http://www.php.net/manual/en/phar.isvalidpharfilename.php
* @param filename string <p>
* The name or full path to a phar archive not yet created
* </p>
* @param executable bool[optional] <p>
* This parameter determines whether the filename should be treated as
* a phar executable archive, or a data non-executable archive
* </p>
* @return bool true if the filename is valid, false if not.
*/
final public static function isValidPharFilename ($filename, $executable = null) {}
/**
* Loads any phar archive with an alias
* @link http://www.php.net/manual/en/phar.loadphar.php
* @param filename string <p>
* the full or relative path to the phar archive to open
* </p>
* @param alias string[optional] <p>
* The alias that may be used to refer to the phar archive. Note
* that many phar archives specify an explicit alias inside the
* phar archive, and a PharException will be thrown if
* a new alias is specified in this case.
* </p>
* @return bool Returns true on success, false on failure.
*/
final public static function loadPhar ($filename, $alias = null) {}
/**
* Reads the currently executed file (a phar) and registers its manifest
* @link http://www.php.net/manual/en/phar.mapphar.php
* @param alias string[optional] <p>
* The alias that can be used in phar:// URLs to
* refer to this archive, rather than its full path.
* </p>
* @param dataoffset int[optional] <p>
* Unused variable, here for compatibility with PEAR's PHP_Archive.
* </p>
* @return bool Returns true on success, false on failure.
*/
final public static function mapPhar ($alias = null, $dataoffset = null) {}
/**
* Returns the full path on disk or full phar URL to the currently executing Phar archive
* @link http://www.php.net/manual/en/phar.running.php
* @param retphar bool[optional] <p>
* If false, the full path on disk to the phar
* archive is returned. If true, a full phar URL is returned.
* </p>
* @return string the filename if valid, empty string otherwise.
*/
final public static function running ($retphar = null) {}
/**
* Mount an external path or file to a virtual location within the phar archive
* @link http://www.php.net/manual/en/phar.mount.php
* @param pharpath string <p>
* The internal path within the phar archive to use as the mounted path location.
* This must be a relative path within the phar archive, and must not already exist.
* </p>
* @param externalpath string <p>
* A path or URL to an external file or directory to mount within the phar archive
* </p>
* @return void No return. PharException is thrown on failure.
*/
final public static function mount ($pharpath, $externalpath) {}
/**
* Defines a list of up to 4 $_SERVER variables that should be modified for execution
* @link http://www.php.net/manual/en/phar.mungserver.php
* @param munglist array <p>
* an array containing as string indices any of
* REQUEST_URI, PHP_SELF,
* SCRIPT_NAME and SCRIPT_FILENAME.
* Other values trigger an exception, and Phar::mungServer
* is case-sensitive.
* </p>
* @return void No return.
*/
final public static function mungServer (array $munglist) {}
/**
* Completely remove a phar archive from disk and from memory
* @link http://www.php.net/manual/en/phar.unlinkarchive.php
* @param archive string <p>
* The path on disk to the phar archive.
* </p>
* @return bool Returns true on success, false on failure.
*/
final public static function unlinkArchive ($archive) {}
/**
* mapPhar for web-based phars. front controller for web applications
* @link http://www.php.net/manual/en/phar.webphar.php
* @param alias string[optional] <p>
* The alias that can be used in phar:// URLs to
* refer to this archive, rather than its full path.
* </p>
* @param index string[optional] <p>
* The location within the phar of the directory index.
* </p>
* @param f404 string[optional] <p>
* The location of the script to run when a file is not found. This
* script should output the proper HTTP 404 headers.
* </p>
* @param mimetypes array[optional] <p>
* An array mapping additional file extensions to MIME type.
* If the default mapping is sufficient, pass an empty array.
* By default, these extensions are mapped to these MIME types:
*
* Phar::PHPS, // pass to highlight_file()
* 'c' => 'text/plain',
* 'cc' => 'text/plain',
* 'cpp' => 'text/plain',
* 'c++' => 'text/plain',
* 'dtd' => 'text/plain',
* 'h' => 'text/plain',
* 'log' => 'text/plain',
* 'rng' => 'text/plain',
* 'txt' => 'text/plain',
* 'xsd' => 'text/plain',
* 'php' => Phar::PHP, // parse as PHP
* 'inc' => Phar::PHP, // parse as PHP
* 'avi' => 'video/avi',
* 'bmp' => 'image/bmp',
* 'css' => 'text/css',
* 'gif' => 'image/gif',
* 'htm' => 'text/html',
* 'html' => 'text/html',
* 'htmls' => 'text/html',
* 'ico' => 'image/x-ico',
* 'jpe' => 'image/jpeg',
* 'jpg' => 'image/jpeg',
* 'jpeg' => 'image/jpeg',
* 'js' => 'application/x-javascript',
* 'midi' => 'audio/midi',
* 'mid' => 'audio/midi',
* 'mod' => 'audio/mod',
* 'mov' => 'movie/quicktime',
* 'mp3' => 'audio/mp3',
* 'mpg' => 'video/mpeg',
* 'mpeg' => 'video/mpeg',
* 'pdf' => 'application/pdf',
* 'png' => 'image/png',
* 'swf' => 'application/shockwave-flash',
* 'tif' => 'image/tiff',
* 'tiff' => 'image/tiff',
* 'wav' => 'audio/wav',
* 'xbm' => 'image/xbm',
* 'xml' => 'text/xml',
* );
* ?>
* ]]>
*
* </p>
* @param rewrites callable[optional] <p>
* The rewrites function is passed a string as its only parameter and must return a string or false.
* </p>
* <p>
* If you are using fast-cgi or cgi then the parameter passed to the function is the value of the
* $_SERVER['PATH_INFO'] variable. Otherwise, the parameter passed to the function is the value
* of the $_SERVER['REQUEST_URI'] variable.
* </p>
* <p>
* If a string is returned it is used as the internal file path. If false is returned then webPhar() will
* send a HTTP 403 Denied Code.
* </p>
* @return void
*/
final public static function webPhar ($alias = null, $index = null, $f404 = null, array $mimetypes = null, $rewrites = null) {}
/**
* Returns whether current entry is a directory and not '.' or '..'
* @link http://www.php.net/manual/en/recursivedirectoryiterator.haschildren.php
* @param allow_links bool[optional] <p>
*
* </p>
* @return bool whether the current entry is a directory, but not '.' or '..'
*/
public function hasChildren ($allow_links = null) {}
/**
* Returns an iterator for the current entry if it is a directory
* @link http://www.php.net/manual/en/recursivedirectoryiterator.getchildren.php
* @return mixed The filename, file information, or $this depending on the set flags.
* See the FilesystemIterator
* constants.
*/
public function getChildren () {}
/**
* Get sub path
* @link http://www.php.net/manual/en/recursivedirectoryiterator.getsubpath.php
* @return string The sub path (sub directory).
*/
public function getSubPath () {}
/**
* Get sub path and name
* @link http://www.php.net/manual/en/recursivedirectoryiterator.getsubpathname.php
* @return string The sub path (sub directory) and filename.
*/
public function getSubPathname () {}
/**
* Rewinds back to the beginning
* @link http://www.php.net/manual/en/filesystemiterator.rewind.php
* @return void
*/
public function rewind () {}
/**
* Move to the next file
* @link http://www.php.net/manual/en/filesystemiterator.next.php
* @return void
*/
public function next () {}
/**
* Retrieve the key for the current file
* @link http://www.php.net/manual/en/filesystemiterator.key.php
* @return string the pathname or filename depending on the set flags.
* See the FilesystemIterator constants.
*/
public function key () {}
/**
* The current file
* @link http://www.php.net/manual/en/filesystemiterator.current.php
* @return mixed The filename, file information, or $this depending on the set flags.
* See the FilesystemIterator constants.
*/
public function current () {}
/**
* Get the handling flags
* @link http://www.php.net/manual/en/filesystemiterator.getflags.php
* @return int The integer value of the set flags.
*/
public function getFlags () {}
/**
* Sets handling flags
* @link http://www.php.net/manual/en/filesystemiterator.setflags.php
* @param flags int[optional] <p>
* The handling flags to set.
* See the FilesystemIterator constants.
* </p>
* @return void
*/
public function setFlags ($flags = null) {}
/**
* Return file name of current DirectoryIterator item.
* @link http://www.php.net/manual/en/directoryiterator.getfilename.php
* @return string the file name of the current DirectoryIterator item.
*/
public function getFilename () {}
/**
* Gets the file extension
* @link http://www.php.net/manual/en/directoryiterator.getextension.php
* @return string a string containing the file extension, or an
* empty string if the file has no extension.
*/
public function getExtension () {}
/**
* Get base name of current DirectoryIterator item.
* @link http://www.php.net/manual/en/directoryiterator.getbasename.php
* @param suffix string[optional] <p>
* If the base name ends in suffix,
* this will be cut.
* </p>
* @return string The base name of the current DirectoryIterator item.
*/
public function getBasename ($suffix = null) {}
/**
* Determine if current DirectoryIterator item is '.' or '..'
* @link http://www.php.net/manual/en/directoryiterator.isdot.php
* @return bool true if the entry is . or ..,
* otherwise false
*/
public function isDot () {}
/**
* Check whether current DirectoryIterator position is a valid file
* @link http://www.php.net/manual/en/directoryiterator.valid.php
* @return bool true if the position is valid, otherwise false
*/
public function valid () {}
/**
* Seek to a DirectoryIterator item
* @link http://www.php.net/manual/en/directoryiterator.seek.php
* @param position int <p>
* The zero-based numeric position to seek to.
* </p>
* @return void
*/
public function seek ($position) {}
/**
* Get file name as a string
* @link http://www.php.net/manual/en/directoryiterator.tostring.php
* @return string the file name of the current DirectoryIterator item.
*/
public function __toString () {}
/**
* Gets the path to the file
* @link http://www.php.net/manual/en/splfileinfo.getpathname.php
* @return string The path to the file.
*/
public function getPathname () {}
/**
* Gets file permissions
* @link http://www.php.net/manual/en/splfileinfo.getperms.php
* @return int the file permissions.
*/
public function getPerms () {}
/**
* Gets the inode for the file
* @link http://www.php.net/manual/en/splfileinfo.getinode.php
* @return int the inode number for the filesystem object.
*/
public function getInode () {}
/**
* Gets file size
* @link http://www.php.net/manual/en/splfileinfo.getsize.php
* @return int The filesize in bytes.
*/
public function getSize () {}
/**
* Gets the owner of the file
* @link http://www.php.net/manual/en/splfileinfo.getowner.php
* @return int The owner id in numerical format.
*/
public function getOwner () {}
/**
* Gets the file group
* @link http://www.php.net/manual/en/splfileinfo.getgroup.php
* @return int The group id in numerical format.
*/
public function getGroup () {}
/**
* Gets last access time of the file
* @link http://www.php.net/manual/en/splfileinfo.getatime.php
* @return int the time the file was last accessed.
*/
public function getATime () {}
/**
* Gets the last modified time
* @link http://www.php.net/manual/en/splfileinfo.getmtime.php
* @return int the last modified time for the file, in a Unix timestamp.
*/
public function getMTime () {}
/**
* Gets the inode change time
* @link http://www.php.net/manual/en/splfileinfo.getctime.php
* @return int The last change time, in a Unix timestamp.
*/
public function getCTime () {}
/**
* Gets file type
* @link http://www.php.net/manual/en/splfileinfo.gettype.php
* @return string A string representing the type of the entry.
* May be one of file, link,
* or dir
*/
public function getType () {}
/**
* Tells if file is readable
* @link http://www.php.net/manual/en/splfileinfo.isreadable.php
* @return bool true if readable, false otherwise.
*/
public function isReadable () {}
/**
* Tells if the file is executable
* @link http://www.php.net/manual/en/splfileinfo.isexecutable.php
* @return bool true if executable, false otherwise.
*/
public function isExecutable () {}
/**
* Tells if the object references a regular file
* @link http://www.php.net/manual/en/splfileinfo.isfile.php
* @return bool true if the file exists and is a regular file (not a link), false otherwise.
*/
public function isFile () {}
/**
* Tells if the file is a directory
* @link http://www.php.net/manual/en/splfileinfo.isdir.php
* @return bool true if a directory, false otherwise.
*/
public function isDir () {}
/**
* Tells if the file is a link
* @link http://www.php.net/manual/en/splfileinfo.islink.php
* @return bool true if the file is a link, false otherwise.
*/
public function isLink () {}
/**
* Gets the target of a link
* @link http://www.php.net/manual/en/splfileinfo.getlinktarget.php
* @return string the target of the filesystem link.
*/
public function getLinkTarget () {}
/**
* Gets absolute path to file
* @link http://www.php.net/manual/en/splfileinfo.getrealpath.php
* @return string the path to the file.
*/
public function getRealPath () {}
/**
* Gets an SplFileInfo object for the file
* @link http://www.php.net/manual/en/splfileinfo.getfileinfo.php
* @param class_name string[optional] <p>
* Name of an SplFileInfo derived class to use.
* </p>
* @return SplFileInfo An SplFileInfo object created for the file.
*/
public function getFileInfo ($class_name = null) {}
/**
* Gets an SplFileInfo object for the path
* @link http://www.php.net/manual/en/splfileinfo.getpathinfo.php
* @param class_name string[optional] <p>
* Name of an SplFileInfo derived class to use.
* </p>
* @return SplFileInfo an SplFileInfo object for the parent path of the file.
*/
public function getPathInfo ($class_name = null) {}
/**
* Gets an SplFileObject object for the file
* @link http://www.php.net/manual/en/splfileinfo.openfile.php
* @param open_mode string[optional] <p>
* The mode for opening the file. See the fopen
* documentation for descriptions of possible modes. The default
* is read only.
* </p>
* @param use_include_path bool[optional] <p>
* ¶meter.use_include_path;
* </p>
* @param context resource[optional] <p>
* ¶meter.context;
* </p>
* @return SplFileObject The opened file as an SplFileObject object.
*/
public function openFile ($open_mode = null, $use_include_path = null, $context = null) {}
/**
* Sets the class name used with <methodname>SplFileInfo::openFile</methodname>
* @link http://www.php.net/manual/en/splfileinfo.setfileclass.php
* @param class_name string[optional] <p>
* The class name to use when openFile() is called.
* </p>
* @return void
*/
public function setFileClass ($class_name = null) {}
/**
* Sets the class used with getFileInfo and getPathInfo
* @link http://www.php.net/manual/en/splfileinfo.setinfoclass.php
* @param class_name string[optional] <p>
* The class name to use.
* </p>
* @return void
*/
public function setInfoClass ($class_name = null) {}
final public function _bad_state_ex () {}
}
class PharData extends RecursiveDirectoryIterator implements RecursiveIterator, SeekableIterator, Traversable, Iterator, Countable, ArrayAccess {
const CURRENT_MODE_MASK = 240;
const CURRENT_AS_PATHNAME = 32;
const CURRENT_AS_FILEINFO = 0;
const CURRENT_AS_SELF = 16;
const KEY_MODE_MASK = 3840;
const KEY_AS_PATHNAME = 0;
const FOLLOW_SYMLINKS = 512;
const KEY_AS_FILENAME = 256;
const NEW_CURRENT_AND_KEY = 256;
const OTHER_MODE_MASK = 12288;
const SKIP_DOTS = 4096;
const UNIX_PATHS = 8192;
/**
* Construct a non-executable tar or zip archive object
* @link http://www.php.net/manual/en/phardata.construct.php
* @param filename
* @param flags[optional]
* @param alias[optional]
* @param fileformat[optional]
*/
public function __construct ($filename, $flags, $alias, $fileformat) {}
public function __destruct () {}
/**
* Add an empty directory to the tar/zip archive
* @link http://www.php.net/manual/en/phardata.addemptydir.php
* @param dirname string <p>
* The name of the empty directory to create in the phar archive
* </p>
* @return bool no return value, exception is thrown on failure.
*/
public function addEmptyDir ($dirname) {}
/**
* Add a file from the filesystem to the tar/zip archive
* @link http://www.php.net/manual/en/phardata.addfile.php
* @param file string <p>
* Full or relative path to a file on disk to be added
* to the phar archive.
* </p>
* @param localname string[optional] <p>
* Path that the file will be stored in the archive.
* </p>
* @return void no return value, exception is thrown on failure.
*/
public function addFile ($file, $localname = null) {}
/**
* Add a file from the filesystem to the tar/zip archive
* @link http://www.php.net/manual/en/phardata.addfromstring.php
* @param localname string <p>
* Path that the file will be stored in the archive.
* </p>
* @param contents string <p>
* The file contents to store
* </p>
* @return bool no return value, exception is thrown on failure.
*/
public function addFromString ($localname, $contents) {}
/**
* Construct a tar/zip archive from the files within a directory.
* @link http://www.php.net/manual/en/phardata.buildfromdirectory.php
* @param base_dir string <p>
* The full or relative path to the directory that contains all files
* to add to the archive.
* </p>
* @param regex string[optional] <p>
* An optional pcre regular expression that is used to filter the
* list of files. Only file paths matching the regular expression
* will be included in the archive.
* </p>
* @return array Phar::buildFromDirectory returns an associative array
* mapping internal path of file to the full path of the file on the
* filesystem.
*/
public function buildFromDirectory ($base_dir, $regex = null) {}
/**
* Construct a tar or zip archive from an iterator.
* @link http://www.php.net/manual/en/phardata.buildfromiterator.php
* @param iter Iterator <p>
* Any iterator that either associatively maps tar/zip file to location or
* returns SplFileInfo objects
* </p>
* @param base_directory string[optional] <p>
* For iterators that return SplFileInfo objects, the portion of each
* file's full path to remove when adding to the tar/zip archive
* </p>
* @return array PharData::buildFromIterator returns an associative array
* mapping internal path of file to the full path of the file on the
* filesystem.
*/
public function buildFromIterator ($iter, $base_directory = null) {}
/**
* Compresses all files in the current tar/zip archive
* @link http://www.php.net/manual/en/phardata.compressfiles.php
* @param compression int <p>
* Compression must be one of Phar::GZ,
* Phar::BZ2 to add compression, or Phar::NONE
* to remove compression.
* </p>
* @return bool Returns true on success, false on failure.
*/
public function compressFiles ($compression) {}
/**
* Decompresses all files in the current zip archive
* @link http://www.php.net/manual/en/phardata.decompressfiles.php
* @return bool Returns true on success, false on failure.
*/
public function decompressFiles () {}
/**
* Compresses the entire tar/zip archive using Gzip or Bzip2 compression
* @link http://www.php.net/manual/en/phardata.compress.php
* @param compression int <p>
* Compression must be one of Phar::GZ,
* Phar::BZ2 to add compression, or Phar::NONE
* to remove compression.
* </p>
* @param extension string[optional] <p>
* By default, the extension is .tar.gz or .tar.bz2
* for compressing a tar, and .tar for decompressing.
* </p>
* @return object A PharData object is returned.
*/
public function compress ($compression, $extension = null) {}
/**
* Decompresses the entire Phar archive
* @link http://www.php.net/manual/en/phardata.decompress.php
* @param extension string[optional] <p>
* For decompressing, the default file extension
* is .phar.tar.
* Use this parameter to specify another file extension. Be aware
* that no non-executable archives cannot contain .phar
* in their filename.
* </p>
* @return object A PharData object is returned.
*/
public function decompress ($extension = null) {}
/**
* Convert a non-executable tar/zip archive to an executable phar archive
* @link http://www.php.net/manual/en/phardata.converttoexecutable.php
* @param format int[optional] <p>
* This should be one of Phar::PHAR, Phar::TAR,
* or Phar::ZIP. If set to &null;, the existing file format
* will be preserved.
* </p>
* @param compression int[optional] <p>
* This should be one of Phar::NONE for no whole-archive
* compression, Phar::GZ for zlib-based compression, and
* Phar::BZ2 for bzip-based compression.
* </p>
* @param extension string[optional] <p>
* This parameter is used to override the default file extension for a
* converted archive. Note that all zip- and tar-based phar archives must contain
* .phar in their file extension in order to be processed as a
* phar archive.
* </p>
* <p>
* If converting to a phar-based archive, the default extensions are
* .phar, .phar.gz, or .phar.bz2
* depending on the specified compression. For tar-based phar archives, the
* default extensions are .phar.tar, .phar.tar.gz,
* and .phar.tar.bz2. For zip-based phar archives, the
* default extension is .phar.zip.
* </p>
* @return Phar The method returns a Phar object on success and throws an
* exception on failure.
*/
public function convertToExecutable ($format = null, $compression = null, $extension = null) {}
/**
* Convert a phar archive to a non-executable tar or zip file
* @link http://www.php.net/manual/en/phardata.converttodata.php
* @param format int[optional] <p>
* This should be one of Phar::TAR
* or Phar::ZIP. If set to &null;, the existing file format
* will be preserved.
* </p>
* @param compression int[optional] <p>
* This should be one of Phar::NONE for no whole-archive
* compression, Phar::GZ for zlib-based compression, and
* Phar::BZ2 for bzip-based compression.
* </p>
* @param extension string[optional] <p>
* This parameter is used to override the default file extension for a
* converted archive. Note that .phar cannot be used
* anywhere in the filename for a non-executable tar or zip archive.
* </p>
* <p>
* If converting to a tar-based phar archive, the
* default extensions are .tar, .tar.gz,
* and .tar.bz2 depending on specified compression.
* For zip-based archives, the
* default extension is .zip.
* </p>
* @return PharData The method returns a PharData object on success and throws an
* exception on failure.
*/
public function convertToData ($format = null, $compression = null, $extension = null) {}
/**
* Copy a file internal to the phar archive to another new file within the phar
* @link http://www.php.net/manual/en/phardata.copy.php
* @param oldfile string <p>
* </p>
* @param newfile string <p>
* </p>
* @return bool returns true on success, but it is safer to encase method call in a
* try/catch block and assume success if no exception is thrown.
*/
public function copy ($oldfile, $newfile) {}
public function count () {}
/**
* Delete a file within a tar/zip archive
* @link http://www.php.net/manual/en/phardata.delete.php
* @param entry string <p>
* Path within an archive to the file to delete.
* </p>
* @return bool returns true on success, but it is better to check for thrown exception,
* and assume success if none is thrown.
*/
public function delete ($entry) {}
/**
* Deletes the global metadata of a zip archive
* @link http://www.php.net/manual/en/phardata.delmetadata.php
* @return bool returns true on success, but it is better to check for thrown exception,
* and assume success if none is thrown.
*/
public function delMetadata () {}
/**
* Extract the contents of a tar/zip archive to a directory
* @link http://www.php.net/manual/en/phardata.extractto.php
* @param pathto string <p>
* Path to extract the given files to
* </p>
* @param files string|array[optional] <p>
* The name of a file or directory to extract, or an array of files/directories to extract
* </p>
* @param overwrite bool[optional] <p>
* Set to true to enable overwriting existing files
* </p>
* @return bool returns true on success, but it is better to check for thrown exception,
* and assume success if none is thrown.
*/
public function extractTo ($pathto, $files = null, $overwrite = null) {}
public function getAlias () {}
public function getPath () {}
public function getMetadata () {}
public function getModified () {}
public function getSignature () {}
public function getStub () {}
public function getVersion () {}
public function hasMetadata () {}
public function isBuffering () {}
public function isCompressed () {}
/**
* @param fileformat
*/
public function isFileFormat ($fileformat) {}
/**
* Returns true if the tar/zip archive can be modified
* @link http://www.php.net/manual/en/phardata.iswritable.php
* @return bool true if the tar/zip archive can be modified
*/
public function isWritable () {}
/**
* @param entry
*/
public function offsetExists ($entry) {}
/**
* @param entry
*/
public function offsetGet ($entry) {}
/**
* set the contents of a file within the tar/zip to those of an external file or string
* @link http://www.php.net/manual/en/phardata.offsetset.php
* @param offset string <p>
* The filename (relative path) to modify in a tar or zip archive.
* </p>
* @param value string <p>
* Content of the file.
* </p>
* @return void No return values.
*/
public function offsetSet ($offset, $value) {}
/**
* remove a file from a tar/zip archive
* @link http://www.php.net/manual/en/phardata.offsetunset.php
* @param offset string <p>
* The filename (relative path) to modify in the tar/zip archive.
* </p>
* @return bool Returns true on success, false on failure.
*/
public function offsetUnset ($offset) {}
/**
* dummy function (Phar::setAlias is not valid for PharData)
* @link http://www.php.net/manual/en/phardata.setalias.php
* @param alias string <p>
* A shorthand string that this archive can be referred to in phar
* stream wrapper access. This parameter is ignored.
* </p>
* @return bool
*/
public function setAlias ($alias) {}
/**
* dummy function (Phar::setDefaultStub is not valid for PharData)
* @link http://www.php.net/manual/en/phardata.setdefaultstub.php
* @param index string[optional] <p>
* Relative path within the phar archive to run if accessed on the command-line
* </p>
* @param webindex string[optional] <p>
* Relative path within the phar archive to run if accessed through a web browser
* </p>
* @return bool Returns true on success, false on failure.
*/
public function setDefaultStub ($index = null, $webindex = null) {}
/**
* @param metadata
*/
public function setMetadata ($metadata) {}
/**
* @param algorithm
* @param privatekey[optional]
*/
public function setSignatureAlgorithm ($algorithm, $privatekey) {}
/**
* dummy function (Phar::setStub is not valid for PharData)
* @link http://www.php.net/manual/en/phardata.setstub.php
* @param stub string <p>
* A string or an open stream handle to use as the executable stub for this
* phar archive. This parameter is ignored.
* </p>
* @param len int[optional] <p>
*
* </p>
* @return bool Returns true on success, false on failure.
*/
public function setStub ($stub, $len = null) {}
public function startBuffering () {}
public function stopBuffering () {}
final public static function apiVersion () {}
/**
* @param method[optional]
*/
final public static function canCompress ($method) {}
final public static function canWrite () {}
/**
* @param index[optional]
* @param webindex[optional]
*/
final public static function createDefaultStub ($index, $webindex) {}
final public static function getSupportedCompression () {}
final public static function getSupportedSignatures () {}
final public static function interceptFileFuncs () {}
/**
* @param filename
* @param executable[optional]
*/
final public static function isValidPharFilename ($filename, $executable) {}
/**
* @param filename
* @param alias[optional]
*/
final public static function loadPhar ($filename, $alias) {}
/**
* @param alias[optional]
* @param offset[optional]
*/
final public static function mapPhar ($alias, $offset) {}
/**
* @param retphar
*/
final public static function running ($retphar) {}
/**
* @param inphar
* @param externalfile
*/
final public static function mount ($inphar, $externalfile) {}
/**
* @param munglist
*/
final public static function mungServer ($munglist) {}
/**
* @param archive
*/
final public static function unlinkArchive ($archive) {}
/**
* @param alias[optional]
* @param index[optional]
* @param f404[optional]
* @param mimetypes[optional]
* @param rewrites[optional]
*/
final public static function webPhar ($alias, $index, $f404, $mimetypes, $rewrites) {}
/**
* Returns whether current entry is a directory and not '.' or '..'
* @link http://www.php.net/manual/en/recursivedirectoryiterator.haschildren.php
* @param allow_links bool[optional] <p>
*
* </p>
* @return bool whether the current entry is a directory, but not '.' or '..'
*/
public function hasChildren ($allow_links = null) {}
/**
* Returns an iterator for the current entry if it is a directory
* @link http://www.php.net/manual/en/recursivedirectoryiterator.getchildren.php
* @return mixed The filename, file information, or $this depending on the set flags.
* See the FilesystemIterator
* constants.
*/
public function getChildren () {}
/**
* Get sub path
* @link http://www.php.net/manual/en/recursivedirectoryiterator.getsubpath.php
* @return string The sub path (sub directory).
*/
public function getSubPath () {}
/**
* Get sub path and name
* @link http://www.php.net/manual/en/recursivedirectoryiterator.getsubpathname.php
* @return string The sub path (sub directory) and filename.
*/
public function getSubPathname () {}
/**
* Rewinds back to the beginning
* @link http://www.php.net/manual/en/filesystemiterator.rewind.php
* @return void
*/
public function rewind () {}
/**
* Move to the next file
* @link http://www.php.net/manual/en/filesystemiterator.next.php
* @return void
*/
public function next () {}
/**
* Retrieve the key for the current file
* @link http://www.php.net/manual/en/filesystemiterator.key.php
* @return string the pathname or filename depending on the set flags.
* See the FilesystemIterator constants.
*/
public function key () {}
/**
* The current file
* @link http://www.php.net/manual/en/filesystemiterator.current.php
* @return mixed The filename, file information, or $this depending on the set flags.
* See the FilesystemIterator constants.
*/
public function current () {}
/**
* Get the handling flags
* @link http://www.php.net/manual/en/filesystemiterator.getflags.php
* @return int The integer value of the set flags.
*/
public function getFlags () {}
/**
* Sets handling flags
* @link http://www.php.net/manual/en/filesystemiterator.setflags.php
* @param flags int[optional] <p>
* The handling flags to set.
* See the FilesystemIterator constants.
* </p>
* @return void
*/
public function setFlags ($flags = null) {}
/**
* Return file name of current DirectoryIterator item.
* @link http://www.php.net/manual/en/directoryiterator.getfilename.php
* @return string the file name of the current DirectoryIterator item.
*/
public function getFilename () {}
/**
* Gets the file extension
* @link http://www.php.net/manual/en/directoryiterator.getextension.php
* @return string a string containing the file extension, or an
* empty string if the file has no extension.
*/
public function getExtension () {}
/**
* Get base name of current DirectoryIterator item.
* @link http://www.php.net/manual/en/directoryiterator.getbasename.php
* @param suffix string[optional] <p>
* If the base name ends in suffix,
* this will be cut.
* </p>
* @return string The base name of the current DirectoryIterator item.
*/
public function getBasename ($suffix = null) {}
/**
* Determine if current DirectoryIterator item is '.' or '..'
* @link http://www.php.net/manual/en/directoryiterator.isdot.php
* @return bool true if the entry is . or ..,
* otherwise false
*/
public function isDot () {}
/**
* Check whether current DirectoryIterator position is a valid file
* @link http://www.php.net/manual/en/directoryiterator.valid.php
* @return bool true if the position is valid, otherwise false
*/
public function valid () {}
/**
* Seek to a DirectoryIterator item
* @link http://www.php.net/manual/en/directoryiterator.seek.php
* @param position int <p>
* The zero-based numeric position to seek to.
* </p>
* @return void
*/
public function seek ($position) {}
/**
* Get file name as a string
* @link http://www.php.net/manual/en/directoryiterator.tostring.php
* @return string the file name of the current DirectoryIterator item.
*/
public function __toString () {}
/**
* Gets the path to the file
* @link http://www.php.net/manual/en/splfileinfo.getpathname.php
* @return string The path to the file.
*/
public function getPathname () {}
/**
* Gets file permissions
* @link http://www.php.net/manual/en/splfileinfo.getperms.php
* @return int the file permissions.
*/
public function getPerms () {}
/**
* Gets the inode for the file
* @link http://www.php.net/manual/en/splfileinfo.getinode.php
* @return int the inode number for the filesystem object.
*/
public function getInode () {}
/**
* Gets file size
* @link http://www.php.net/manual/en/splfileinfo.getsize.php
* @return int The filesize in bytes.
*/
public function getSize () {}
/**
* Gets the owner of the file
* @link http://www.php.net/manual/en/splfileinfo.getowner.php
* @return int The owner id in numerical format.
*/
public function getOwner () {}
/**
* Gets the file group
* @link http://www.php.net/manual/en/splfileinfo.getgroup.php
* @return int The group id in numerical format.
*/
public function getGroup () {}
/**
* Gets last access time of the file
* @link http://www.php.net/manual/en/splfileinfo.getatime.php
* @return int the time the file was last accessed.
*/
public function getATime () {}
/**
* Gets the last modified time
* @link http://www.php.net/manual/en/splfileinfo.getmtime.php
* @return int the last modified time for the file, in a Unix timestamp.
*/
public function getMTime () {}
/**
* Gets the inode change time
* @link http://www.php.net/manual/en/splfileinfo.getctime.php
* @return int The last change time, in a Unix timestamp.
*/
public function getCTime () {}
/**
* Gets file type
* @link http://www.php.net/manual/en/splfileinfo.gettype.php
* @return string A string representing the type of the entry.
* May be one of file, link,
* or dir
*/
public function getType () {}
/**
* Tells if file is readable
* @link http://www.php.net/manual/en/splfileinfo.isreadable.php
* @return bool true if readable, false otherwise.
*/
public function isReadable () {}
/**
* Tells if the file is executable
* @link http://www.php.net/manual/en/splfileinfo.isexecutable.php
* @return bool true if executable, false otherwise.
*/
public function isExecutable () {}
/**
* Tells if the object references a regular file
* @link http://www.php.net/manual/en/splfileinfo.isfile.php
* @return bool true if the file exists and is a regular file (not a link), false otherwise.
*/
public function isFile () {}
/**
* Tells if the file is a directory
* @link http://www.php.net/manual/en/splfileinfo.isdir.php
* @return bool true if a directory, false otherwise.
*/
public function isDir () {}
/**
* Tells if the file is a link
* @link http://www.php.net/manual/en/splfileinfo.islink.php
* @return bool true if the file is a link, false otherwise.
*/
public function isLink () {}
/**
* Gets the target of a link
* @link http://www.php.net/manual/en/splfileinfo.getlinktarget.php
* @return string the target of the filesystem link.
*/
public function getLinkTarget () {}
/**
* Gets absolute path to file
* @link http://www.php.net/manual/en/splfileinfo.getrealpath.php
* @return string the path to the file.
*/
public function getRealPath () {}
/**
* Gets an SplFileInfo object for the file
* @link http://www.php.net/manual/en/splfileinfo.getfileinfo.php
* @param class_name string[optional] <p>
* Name of an SplFileInfo derived class to use.
* </p>
* @return SplFileInfo An SplFileInfo object created for the file.
*/
public function getFileInfo ($class_name = null) {}
/**
* Gets an SplFileInfo object for the path
* @link http://www.php.net/manual/en/splfileinfo.getpathinfo.php
* @param class_name string[optional] <p>
* Name of an SplFileInfo derived class to use.
* </p>
* @return SplFileInfo an SplFileInfo object for the parent path of the file.
*/
public function getPathInfo ($class_name = null) {}
/**
* Gets an SplFileObject object for the file
* @link http://www.php.net/manual/en/splfileinfo.openfile.php
* @param open_mode string[optional] <p>
* The mode for opening the file. See the fopen
* documentation for descriptions of possible modes. The default
* is read only.
* </p>
* @param use_include_path bool[optional] <p>
* ¶meter.use_include_path;
* </p>
* @param context resource[optional] <p>
* ¶meter.context;
* </p>
* @return SplFileObject The opened file as an SplFileObject object.
*/
public function openFile ($open_mode = null, $use_include_path = null, $context = null) {}
/**
* Sets the class name used with <methodname>SplFileInfo::openFile</methodname>
* @link http://www.php.net/manual/en/splfileinfo.setfileclass.php
* @param class_name string[optional] <p>
* The class name to use when openFile() is called.
* </p>
* @return void
*/
public function setFileClass ($class_name = null) {}
/**
* Sets the class used with getFileInfo and getPathInfo
* @link http://www.php.net/manual/en/splfileinfo.setinfoclass.php
* @param class_name string[optional] <p>
* The class name to use.
* </p>
* @return void
*/
public function setInfoClass ($class_name = null) {}
final public function _bad_state_ex () {}
}
class PharFileInfo extends SplFileInfo {
/**
* Construct a Phar entry object
* @link http://www.php.net/manual/en/pharfileinfo.construct.php
* @param filename
*/
public function __construct ($filename) {}
public function __destruct () {}
/**
* Sets file-specific permission bits
* @link http://www.php.net/manual/en/pharfileinfo.chmod.php
* @param permissions int <p>
* permissions (see chmod)
* </p>
* @return void
*/
public function chmod ($permissions) {}
/**
* Compresses the current Phar entry with either zlib or bzip2 compression
* @link http://www.php.net/manual/en/pharfileinfo.compress.php
* @param compression int
* @return bool Returns true on success, false on failure.
*/
public function compress ($compression) {}
/**
* Decompresses the current Phar entry within the phar
* @link http://www.php.net/manual/en/pharfileinfo.decompress.php
* @return bool Returns true on success, false on failure.
*/
public function decompress () {}
/**
* Deletes the metadata of the entry
* @link http://www.php.net/manual/en/pharfileinfo.delmetadata.php
* @return bool true if successful, false if the entry had no metadata.
* As with all functionality that modifies the contents of
* a phar, the phar.readonly INI variable
* must be off in order to succeed if the file is within a Phar
* archive. Files within PharData archives do not have
* this restriction.
*/
public function delMetadata () {}
/**
* Returns the actual size of the file (with compression) inside the Phar archive
* @link http://www.php.net/manual/en/pharfileinfo.getcompressedsize.php
* @return int The size in bytes of the file within the Phar archive on disk.
*/
public function getCompressedSize () {}
/**
* Returns CRC32 code or throws an exception if CRC has not been verified
* @link http://www.php.net/manual/en/pharfileinfo.getcrc32.php
* @return int The crc32 checksum of the file within the Phar archive.
*/
public function getCRC32 () {}
public function getContent () {}
/**
* Returns file-specific meta-data saved with a file
* @link http://www.php.net/manual/en/pharfileinfo.getmetadata.php
* @return mixed any PHP variable that can be serialized and is stored as meta-data for the file,
* or &null; if no meta-data is stored.
*/
public function getMetadata () {}
/**
* Returns the Phar file entry flags
* @link http://www.php.net/manual/en/pharfileinfo.getpharflags.php
* @return int The Phar flags (always 0 in the current implementation)
*/
public function getPharFlags () {}
/**
* Returns the metadata of the entry
* @link http://www.php.net/manual/en/pharfileinfo.hasmetadata.php
* @return bool false if no metadata is set or is &null;, true if metadata is not &null;
*/
public function hasMetadata () {}
/**
* Returns whether the entry is compressed
* @link http://www.php.net/manual/en/pharfileinfo.iscompressed.php
* @param compression_type int[optional] <p>
* One of Phar::GZ or Phar::BZ2,
* defaults to any compression.
* </p>
* @return bool true if the file is compressed within the Phar archive, false if not.
*/
public function isCompressed ($compression_type = null) {}
/**
* Returns whether file entry has had its CRC verified
* @link http://www.php.net/manual/en/pharfileinfo.iscrcchecked.php
* @return bool true if the file has had its CRC verified, false if not.
*/
public function isCRCChecked () {}
/**
* Sets file-specific meta-data saved with a file
* @link http://www.php.net/manual/en/pharfileinfo.setmetadata.php
* @param metadata mixed <p>
* Any PHP variable containing information to store alongside a file
* </p>
* @return void
*/
public function setMetadata ($metadata) {}
/**
* Gets the path without filename
* @link http://www.php.net/manual/en/splfileinfo.getpath.php
* @return string the path to the file.
*/
public function getPath () {}
/**
* Gets the filename
* @link http://www.php.net/manual/en/splfileinfo.getfilename.php
* @return string The filename.
*/
public function getFilename () {}
/**
* Gets the file extension
* @link http://www.php.net/manual/en/splfileinfo.getextension.php
* @return string a string containing the file extension, or an
* empty string if the file has no extension.
*/
public function getExtension () {}
/**
* Gets the base name of the file
* @link http://www.php.net/manual/en/splfileinfo.getbasename.php
* @param suffix string[optional] <p>
* Optional suffix to omit from the base name returned.
* </p>
* @return string the base name without path information.
*/
public function getBasename ($suffix = null) {}
/**
* Gets the path to the file
* @link http://www.php.net/manual/en/splfileinfo.getpathname.php
* @return string The path to the file.
*/
public function getPathname () {}
/**
* Gets file permissions
* @link http://www.php.net/manual/en/splfileinfo.getperms.php
* @return int the file permissions.
*/
public function getPerms () {}
/**
* Gets the inode for the file
* @link http://www.php.net/manual/en/splfileinfo.getinode.php
* @return int the inode number for the filesystem object.
*/
public function getInode () {}
/**
* Gets file size
* @link http://www.php.net/manual/en/splfileinfo.getsize.php
* @return int The filesize in bytes.
*/
public function getSize () {}
/**
* Gets the owner of the file
* @link http://www.php.net/manual/en/splfileinfo.getowner.php
* @return int The owner id in numerical format.
*/
public function getOwner () {}
/**
* Gets the file group
* @link http://www.php.net/manual/en/splfileinfo.getgroup.php
* @return int The group id in numerical format.
*/
public function getGroup () {}
/**
* Gets last access time of the file
* @link http://www.php.net/manual/en/splfileinfo.getatime.php
* @return int the time the file was last accessed.
*/
public function getATime () {}
/**
* Gets the last modified time
* @link http://www.php.net/manual/en/splfileinfo.getmtime.php
* @return int the last modified time for the file, in a Unix timestamp.
*/
public function getMTime () {}
/**
* Gets the inode change time
* @link http://www.php.net/manual/en/splfileinfo.getctime.php
* @return int The last change time, in a Unix timestamp.
*/
public function getCTime () {}
/**
* Gets file type
* @link http://www.php.net/manual/en/splfileinfo.gettype.php
* @return string A string representing the type of the entry.
* May be one of file, link,
* or dir
*/
public function getType () {}
/**
* Tells if the entry is writable
* @link http://www.php.net/manual/en/splfileinfo.iswritable.php
* @return bool true if writable, false otherwise;
*/
public function isWritable () {}
/**
* Tells if file is readable
* @link http://www.php.net/manual/en/splfileinfo.isreadable.php
* @return bool true if readable, false otherwise.
*/
public function isReadable () {}
/**
* Tells if the file is executable
* @link http://www.php.net/manual/en/splfileinfo.isexecutable.php
* @return bool true if executable, false otherwise.
*/
public function isExecutable () {}
/**
* Tells if the object references a regular file
* @link http://www.php.net/manual/en/splfileinfo.isfile.php
* @return bool true if the file exists and is a regular file (not a link), false otherwise.
*/
public function isFile () {}
/**
* Tells if the file is a directory
* @link http://www.php.net/manual/en/splfileinfo.isdir.php
* @return bool true if a directory, false otherwise.
*/
public function isDir () {}
/**
* Tells if the file is a link
* @link http://www.php.net/manual/en/splfileinfo.islink.php
* @return bool true if the file is a link, false otherwise.
*/
public function isLink () {}
/**
* Gets the target of a link
* @link http://www.php.net/manual/en/splfileinfo.getlinktarget.php
* @return string the target of the filesystem link.
*/
public function getLinkTarget () {}
/**
* Gets absolute path to file
* @link http://www.php.net/manual/en/splfileinfo.getrealpath.php
* @return string the path to the file.
*/
public function getRealPath () {}
/**
* Gets an SplFileInfo object for the file
* @link http://www.php.net/manual/en/splfileinfo.getfileinfo.php
* @param class_name string[optional] <p>
* Name of an SplFileInfo derived class to use.
* </p>
* @return SplFileInfo An SplFileInfo object created for the file.
*/
public function getFileInfo ($class_name = null) {}
/**
* Gets an SplFileInfo object for the path
* @link http://www.php.net/manual/en/splfileinfo.getpathinfo.php
* @param class_name string[optional] <p>
* Name of an SplFileInfo derived class to use.
* </p>
* @return SplFileInfo an SplFileInfo object for the parent path of the file.
*/
public function getPathInfo ($class_name = null) {}
/**
* Gets an SplFileObject object for the file
* @link http://www.php.net/manual/en/splfileinfo.openfile.php
* @param open_mode string[optional] <p>
* The mode for opening the file. See the fopen
* documentation for descriptions of possible modes. The default
* is read only.
* </p>
* @param use_include_path bool[optional] <p>
* ¶meter.use_include_path;
* </p>
* @param context resource[optional] <p>
* ¶meter.context;
* </p>
* @return SplFileObject The opened file as an SplFileObject object.
*/
public function openFile ($open_mode = null, $use_include_path = null, $context = null) {}
/**
* Sets the class name used with <methodname>SplFileInfo::openFile</methodname>
* @link http://www.php.net/manual/en/splfileinfo.setfileclass.php
* @param class_name string[optional] <p>
* The class name to use when openFile() is called.
* </p>
* @return void
*/
public function setFileClass ($class_name = null) {}
/**
* Sets the class used with getFileInfo and getPathInfo
* @link http://www.php.net/manual/en/splfileinfo.setinfoclass.php
* @param class_name string[optional] <p>
* The class name to use.
* </p>
* @return void
*/
public function setInfoClass ($class_name = null) {}
final public function _bad_state_ex () {}
/**
* Returns the path to the file as a string
* @link http://www.php.net/manual/en/splfileinfo.tostring.php
* @return void the path to the file.
*/
public function __toString () {}
}
// End of Phar v.2.0.2
?>
|