Debian Codegraph @

codelitephp/resources/cc/fileinfo.php

raw
1 <?php
2
3 // Start of fileinfo v.1.0.5
4
5 class finfo {
6
7 /**
8 * @param options[optional]
9 * @param arg[optional]
10 */
11 public function finfo ($options, $arg) {}
12
13 /**
14 * @param options
15 */
16 public function set_flags ($options) {}
17
18 /**
19 * @param filename
20 * @param options[optional]
21 * @param context[optional]
22 */
23 public function file ($filename, $options, $context) {}
24
25 /**
26 * @param string
27 * @param options[optional]
28 * @param context[optional]
29 */
30 public function buffer ($string, $options, $context) {}
31
32 }
33
34 /**
35 * Create a new fileinfo resource
36 * @link http://www.php.net/manual/en/function.finfo-open.php
37 * @param options[optional]
38 * @param arg[optional]
39 */
40 function finfo_open ($options, $arg) {}
41
42 /**
43 * Close fileinfo resource
44 * @link http://www.php.net/manual/en/function.finfo-close.php
45 * @param finfo
46 */
47 function finfo_close ($finfo) {}
48
49 /**
50 * Set libmagic configuration options
51 * @link http://www.php.net/manual/en/function.finfo-set-flags.php
52 * @param finfo
53 * @param options
54 */
55 function finfo_set_flags ($finfo, $options) {}
56
57 /**
58 * Return information about a file
59 * @link http://www.php.net/manual/en/function.finfo-file.php
60 * @param finfo
61 * @param filename
62 * @param options[optional]
63 * @param context[optional]
64 */
65 function finfo_file ($finfo, $filename, $options, $context) {}
66
67 /**
68 * Return information about a string buffer
69 * @link http://www.php.net/manual/en/function.finfo-buffer.php
70 * @param finfo
71 * @param string
72 * @param options[optional]
73 * @param context[optional]
74 */
75 function finfo_buffer ($finfo, $string, $options, $context) {}
76
77 /**
78 * Detect MIME Content-type for a file (deprecated)
79 * @link http://www.php.net/manual/en/function.mime-content-type.php
80 * @param filename string <p>
81 * Path to the tested file.
82 * </p>
83 * @return string the content type in MIME format, like
84 * text/plain or application/octet-stream.
85 */
86 function mime_content_type ($filename) {}
87
88
89 /**
90 * No special handling.
91 * @link http://www.php.net/manual/en/fileinfo.constants.php
92 */
93 define ('FILEINFO_NONE', 0);
94
95 /**
96 * Follow symlinks.
97 * @link http://www.php.net/manual/en/fileinfo.constants.php
98 */
99 define ('FILEINFO_SYMLINK', 2);
100
101 /**
102 * Return the mime type and mime encoding as defined by RFC 2045.
103 * @link http://www.php.net/manual/en/fileinfo.constants.php
104 */
105 define ('FILEINFO_MIME', 1040);
106
107 /**
108 * Return the mime type.
109 *
110 *
111 * Available since PHP 5.3.0.
112 * @link http://www.php.net/manual/en/fileinfo.constants.php
113 */
114 define ('FILEINFO_MIME_TYPE', 16);
115
116 /**
117 * Return the mime encoding of the file.
118 *
119 *
120 * Available since PHP 5.3.0.
121 * @link http://www.php.net/manual/en/fileinfo.constants.php
122 */
123 define ('FILEINFO_MIME_ENCODING', 1024);
124
125 /**
126 * Look at the contents of blocks or character special devices.
127 * @link http://www.php.net/manual/en/fileinfo.constants.php
128 */
129 define ('FILEINFO_DEVICES', 8);
130
131 /**
132 * Return all matches, not just the first.
133 * @link http://www.php.net/manual/en/fileinfo.constants.php
134 */
135 define ('FILEINFO_CONTINUE', 32);
136
137 /**
138 * If possible preserve the original access time.
139 * @link http://www.php.net/manual/en/fileinfo.constants.php
140 */
141 define ('FILEINFO_PRESERVE_ATIME', 128);
142
143 /**
144 * Don't translate unprintable characters to a \ooo octal
145 * representation.
146 * @link http://www.php.net/manual/en/fileinfo.constants.php
147 */
148 define ('FILEINFO_RAW', 256);
149
150 // End of fileinfo v.1.0.5
151 ?>