1
0
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:
Greg Beaver
2003-12-04 02:00:39 +00:00
parent 90fe3fbf7f
commit 07a0281d00
+19
View File
@@ -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()
/**