| 1 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/*
|
|
|
4 |
* This file is part of the symfony package.
|
|
|
5 |
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
|
6 |
*
|
|
|
7 |
* For the full copyright and license information, please view the LICENSE
|
|
|
8 |
* file that was distributed with this source code.
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
require_once 'PEAR/Downloader.php';
|
|
|
12 |
|
|
|
13 |
/**
|
|
|
14 |
* sfPearDownloader downloads files from the Internet.
|
|
|
15 |
*
|
|
|
16 |
* @package symfony
|
|
|
17 |
* @subpackage plugin
|
|
|
18 |
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
|
19 |
* @version SVN: $Id: sfPearDownloader.class.php 5250 2007-09-24 08:11:50Z fabien $
|
|
|
20 |
*/
|
|
|
21 |
class sfPearDownloader extends PEAR_Downloader
|
|
|
22 |
{
|
|
|
23 |
/**
|
|
|
24 |
* @see PEAR_REST::downloadHttp()
|
|
|
25 |
*/
|
|
|
26 |
public function downloadHttp($url, &$ui, $save_dir = '.', $callback = null, $lastmodified = null, $accept = false, $channel = false)
|
|
|
27 |
{
|
|
|
28 |
return parent::downloadHttp($url, $ui, $save_dir, $callback, $lastmodified, $accept, $channel);
|
|
|
29 |
}
|
|
|
30 |
}
|