From 89187d383d0ede48e7a6ec213243eb2d46a9f321 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 7 Jul 2010 00:19:43 +0200 Subject: [PATCH] Move method. --- kronolith/lib/Driver/Ical.php | 52 +++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/kronolith/lib/Driver/Ical.php b/kronolith/lib/Driver/Ical.php index c96663cfa..3bac00f9c 100644 --- a/kronolith/lib/Driver/Ical.php +++ b/kronolith/lib/Driver/Ical.php @@ -184,32 +184,6 @@ class Kronolith_Driver_Ical extends Kronolith_Driver } /** - * Returns a configured, cached HTTP client. - * - * @return Horde_Http_Client A HTTP client. - */ - protected function _getClient() - { - if ($this->_client) { - return $this->_client; - } - - $options = array('request.timeout' => isset($this->_params['timeout']) - ? $this->_params['timeout'] - : 5); - if (!empty($this->_params['user'])) { - $options['request.username'] = $this->_params['user']; - $options['request.password'] = $this->_params['password']; - } - - $this->_client = $GLOBALS['injector'] - ->getInstance('Horde_Http_Client') - ->getClient($options); - - return $this->_client; - } - - /** * Fetches a remote calendar into the session and return the data. * * @param boolean $cache Whether to return data from the session cache. @@ -279,4 +253,30 @@ class Kronolith_Driver_Ical extends Kronolith_Driver return $ical; } + /** + * Returns a configured, cached HTTP client. + * + * @return Horde_Http_Client A HTTP client. + */ + protected function _getClient() + { + if ($this->_client) { + return $this->_client; + } + + $options = array('request.timeout' => isset($this->_params['timeout']) + ? $this->_params['timeout'] + : 5); + if (!empty($this->_params['user'])) { + $options['request.username'] = $this->_params['user']; + $options['request.password'] = $this->_params['password']; + } + + $this->_client = $GLOBALS['injector'] + ->getInstance('Horde_Http_Client') + ->getClient($options); + + return $this->_client; + } + } -- 2.11.0