mirror of
https://github.com/php/php-src.git
synced 2026-04-27 18:23:26 +02:00
add helper methods needed - now it is 100% unit tested
This commit is contained in:
@@ -152,6 +152,25 @@ class PEAR_Downloader extends PEAR_Common
|
||||
parent::PEAR_Common($ui);
|
||||
}
|
||||
|
||||
// }}}
|
||||
// {{{ configSet()
|
||||
function configSet($key, $value, $layer = 'user')
|
||||
{
|
||||
$this->_config->set($key, $value, $layer);
|
||||
$this->_preferredState = $this->_config->get('preferred_state');
|
||||
if (!$this->_preferredState) {
|
||||
// don't inadvertantly use a non-set preferred_state
|
||||
$this->_preferredState = null;
|
||||
}
|
||||
}
|
||||
|
||||
// }}}
|
||||
// {{{ setOptions()
|
||||
function setOptions($options)
|
||||
{
|
||||
$this->_options = $options;
|
||||
}
|
||||
|
||||
// }}}
|
||||
// {{{ _downloadFile()
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user