classWeb.html
28.7 KB
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
<!-- HTML header for doxygen 1.8.5-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Fat-Free Framework: Web Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Fat-Free Framework
 <span id="projectnumber">3.2.2</span>
 <span class="menu"><a href="index.html">Overview</a> <a href="annotated.html">Class List</a> <a href="hierarchy.html">Hierarchy</a></span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="#pro-attribs">Protected Attributes</a> |
<a href="classWeb-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Web Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Wrapper for various HTTP utilities.
<a href="classWeb.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Web:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center">
<img src="classWeb.png" usemap="#Web_map" alt=""/>
<map id="Web_map" name="Web_map">
<area href="classPrefab.html" title="Factory class for single-instance objects. " alt="Prefab" shape="rect" coords="0,0,50,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0610ee1308d95bcd9165b5c1df75296e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a0610ee1308d95bcd9165b5c1df75296e">mime</a> ($file)</td></tr>
<tr class="separator:a0610ee1308d95bcd9165b5c1df75296e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a49406ad63450dc1cb5bb23ff3547c39f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a49406ad63450dc1cb5bb23ff3547c39f">acceptable</a> ($list=NULL)</td></tr>
<tr class="separator:a49406ad63450dc1cb5bb23ff3547c39f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a28467f499464a93d57cf4c705970207d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a28467f499464a93d57cf4c705970207d">send</a> ($file, $<a class="el" href="classWeb.html#a0610ee1308d95bcd9165b5c1df75296e">mime</a>=NULL, $kbps=0, $force=TRUE)</td></tr>
<tr class="separator:a28467f499464a93d57cf4c705970207d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9fdcdb733e57c6b6d20c2d5f8ad72a72"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a9fdcdb733e57c6b6d20c2d5f8ad72a72">receive</a> ($func=NULL, $overwrite=FALSE, $<a class="el" href="classWeb.html#a6788a2563f8006d32155a2ea88ec9b90">slug</a>=TRUE)</td></tr>
<tr class="separator:a9fdcdb733e57c6b6d20c2d5f8ad72a72"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afa5033c2f699f84a6b1ded4f4df1211f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#afa5033c2f699f84a6b1ded4f4df1211f">progress</a> ($id)</td></tr>
<tr class="separator:afa5033c2f699f84a6b1ded4f4df1211f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9e754533bb075389035931b1884056f2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a9e754533bb075389035931b1884056f2">engine</a> ($arg='curl')</td></tr>
<tr class="separator:a9e754533bb075389035931b1884056f2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a978dfd50876dba2a018d78ce1f38298d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a978dfd50876dba2a018d78ce1f38298d">subst</a> (array &$old, $new)</td></tr>
<tr class="separator:a978dfd50876dba2a018d78ce1f38298d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a649d6ba8b81e967a4e107845bd554f95"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a649d6ba8b81e967a4e107845bd554f95">request</a> ($url, array $options=NULL)</td></tr>
<tr class="separator:a649d6ba8b81e967a4e107845bd554f95"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afbc982c09e6927207739bad8750cc43b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#afbc982c09e6927207739bad8750cc43b">minify</a> ($files, $<a class="el" href="classWeb.html#a0610ee1308d95bcd9165b5c1df75296e">mime</a>=NULL, $header=TRUE, $path='')</td></tr>
<tr class="separator:afbc982c09e6927207739bad8750cc43b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2399a7eaf4a41bf5306f309006330b2a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a2399a7eaf4a41bf5306f309006330b2a">rss</a> ($url, $max=10, $tags=NULL)</td></tr>
<tr class="separator:a2399a7eaf4a41bf5306f309006330b2a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af6749238c0cab4d9fb542ed8ed8637c8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#af6749238c0cab4d9fb542ed8ed8637c8">whois</a> ($addr, $server='whois.internic.net')</td></tr>
<tr class="separator:af6749238c0cab4d9fb542ed8ed8637c8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6788a2563f8006d32155a2ea88ec9b90"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a6788a2563f8006d32155a2ea88ec9b90">slug</a> ($text)</td></tr>
<tr class="separator:a6788a2563f8006d32155a2ea88ec9b90"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abd03e6016e9193e66a6a2e8bd37afad5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#abd03e6016e9193e66a6a2e8bd37afad5">filler</a> ($count=1, $max=20, $std=TRUE)</td></tr>
<tr class="separator:abd03e6016e9193e66a6a2e8bd37afad5"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:adce745c2eb82871a4ab5bac2e75a973c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adce745c2eb82871a4ab5bac2e75a973c"></a>
const </td><td class="memItemRight" valign="bottom"><b>E_Request</b> ='No suitable HTTP <a class="el" href="classWeb.html#a649d6ba8b81e967a4e107845bd554f95">request</a> <a class="el" href="classWeb.html#a9e754533bb075389035931b1884056f2">engine</a> found'</td></tr>
<tr class="separator:adce745c2eb82871a4ab5bac2e75a973c"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a7ebf592a2cbf7ab1528b1d07d182b570"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a7ebf592a2cbf7ab1528b1d07d182b570">_curl</a> ($url, $options)</td></tr>
<tr class="separator:a7ebf592a2cbf7ab1528b1d07d182b570"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a474d59b64a9d409cff9fbdfdb100dd78"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a474d59b64a9d409cff9fbdfdb100dd78">_stream</a> ($url, $options)</td></tr>
<tr class="separator:a474d59b64a9d409cff9fbdfdb100dd78"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae28becd59bec2fbbd7d84c9271f37d40"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#ae28becd59bec2fbbd7d84c9271f37d40">_socket</a> ($url, $options)</td></tr>
<tr class="separator:ae28becd59bec2fbbd7d84c9271f37d40"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a091327a8b9f629380b52f2bebf33a706"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a091327a8b9f629380b52f2bebf33a706"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classWeb.html#a091327a8b9f629380b52f2bebf33a706">$wrapper</a></td></tr>
<tr class="memdesc:a091327a8b9f629380b52f2bebf33a706"><td class="mdescLeft"> </td><td class="mdescRight">HTTP request engine. <br/></td></tr>
<tr class="separator:a091327a8b9f629380b52f2bebf33a706"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_classPrefab"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classPrefab')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classPrefab.html">Prefab</a></td></tr>
<tr class="memitem:a459ac539bc012dbdb77abe0d0ebeba76 inherit pub_static_methods_classPrefab"><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefab.html#a459ac539bc012dbdb77abe0d0ebeba76">instance</a> ()</td></tr>
<tr class="separator:a459ac539bc012dbdb77abe0d0ebeba76 inherit pub_static_methods_classPrefab"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Wrapper for various HTTP utilities. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a7ebf592a2cbf7ab1528b1d07d182b570"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Web::_curl </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$options</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>HTTP request via cURL </p>
<dl class="section return"><dt>Returns</dt><dd>array </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$url</td><td>string </td></tr>
<tr><td class="paramname">$options</td><td>array </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae28becd59bec2fbbd7d84c9271f37d40"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Web::_socket </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$options</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>HTTP request via low-level TCP/IP socket </p>
<dl class="section return"><dt>Returns</dt><dd>array </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$url</td><td>string </td></tr>
<tr><td class="paramname">$options</td><td>array </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a474d59b64a9d409cff9fbdfdb100dd78"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Web::_stream </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$options</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>HTTP request via PHP stream wrapper </p>
<dl class="section return"><dt>Returns</dt><dd>array </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$url</td><td>string </td></tr>
<tr><td class="paramname">$options</td><td>array </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a49406ad63450dc1cb5bb23ff3547c39f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::acceptable </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$list</em> = <code>NULL</code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the MIME types stated in the HTTP Accept header as an array; If a list of MIME types is specified, return the best match; or FALSE if none found </p>
<dl class="section return"><dt>Returns</dt><dd>array|string|FALSE </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$list</td><td>string|array </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9e754533bb075389035931b1884056f2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::engine </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$arg</em> = <code>'curl'</code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Specify the HTTP request engine to use; If not available, fall back to an applicable substitute </p>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$arg</td><td>string </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="abd03e6016e9193e66a6a2e8bd37afad5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::filler </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$count</em> = <code>1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$max</em> = <code>20</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$std</em> = <code>TRUE</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return chunk of text from standard Lorem Ipsum passage </p>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$count</td><td>int </td></tr>
<tr><td class="paramname">$max</td><td>int </td></tr>
<tr><td class="paramname">$std</td><td>bool </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a0610ee1308d95bcd9165b5c1df75296e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::mime </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$file</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Detect MIME type using file extension </p>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$file</td><td>string </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="afbc982c09e6927207739bad8750cc43b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::minify </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$files</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$mime</em> = <code>NULL</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$header</em> = <code>TRUE</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$path</em> = <code>''</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Strip Javascript/CSS files of extraneous whitespaces and comments; Return combined output as a minified string </p>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$files</td><td>string|array </td></tr>
<tr><td class="paramname">$mime</td><td>string </td></tr>
<tr><td class="paramname">$header</td><td>bool </td></tr>
<tr><td class="paramname">$path</td><td>string </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="afa5033c2f699f84a6b1ded4f4df1211f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::progress </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$id</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return upload progress in bytes, FALSE on failure </p>
<dl class="section return"><dt>Returns</dt><dd>int|FALSE </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$id</td><td>string </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9fdcdb733e57c6b6d20c2d5f8ad72a72"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::receive </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$func</em> = <code>NULL</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$overwrite</em> = <code>FALSE</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$slug</em> = <code>TRUE</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Receive file(s) from HTTP client </p>
<dl class="section return"><dt>Returns</dt><dd>array|bool </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$func</td><td>callback </td></tr>
<tr><td class="paramname">$overwrite</td><td>bool </td></tr>
<tr><td class="paramname">$slug</td><td>callback|bool </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a649d6ba8b81e967a4e107845bd554f95"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::request </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">array </td>
<td class="paramname"><em>$options</em> = <code>NULL</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Submit HTTP request; Use HTTP context options (described in <a href="http://www.php.net/manual/en/context.http.php">http://www.php.net/manual/en/context.http.php</a>) if specified; Cache the page as instructed by remote server </p>
<dl class="section return"><dt>Returns</dt><dd>array|FALSE </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$url</td><td>string </td></tr>
<tr><td class="paramname">$options</td><td>array </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a2399a7eaf4a41bf5306f309006330b2a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::rss </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$max</em> = <code>10</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$tags</em> = <code>NULL</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve RSS feed and return as an array </p>
<dl class="section return"><dt>Returns</dt><dd>array|FALSE </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$url</td><td>string </td></tr>
<tr><td class="paramname">$max</td><td>int </td></tr>
<tr><td class="paramname">$tags</td><td>string </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a28467f499464a93d57cf4c705970207d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::send </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$mime</em> = <code>NULL</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$kbps</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$force</em> = <code>TRUE</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Transmit file to HTTP client; Return file size if successful, FALSE otherwise </p>
<dl class="section return"><dt>Returns</dt><dd>int|FALSE </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$file</td><td>string </td></tr>
<tr><td class="paramname">$mime</td><td>string </td></tr>
<tr><td class="paramname">$kbps</td><td>int </td></tr>
<tr><td class="paramname">$force</td><td>bool </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a6788a2563f8006d32155a2ea88ec9b90"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::slug </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$text</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return a URL/filesystem-friendly version of string </p>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$text</td><td>string </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a978dfd50876dba2a018d78ce1f38298d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::subst </td>
<td>(</td>
<td class="paramtype">array & </td>
<td class="paramname"><em>$old</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$new</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Replace old headers with new elements </p>
<dl class="section return"><dt>Returns</dt><dd>NULL </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$old</td><td>array </td></tr>
<tr><td class="paramname">$new</td><td>string|array </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="af6749238c0cab4d9fb542ed8ed8637c8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Web::whois </td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname"><em>$addr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname"><em>$server</em> = <code>'whois.internic.net'</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve information from whois server </p>
<dl class="section return"><dt>Returns</dt><dd>string|FALSE </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">$addr</td><td>string </td></tr>
<tr><td class="paramname">$server</td><td>string </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>web.php</li>
</ul>
</div><!-- contents -->