svn: /pear2/Pyrus/trunk/src/Pyrus/ ChannelFile.php

From: Date: Wed, 23 Dec 2009 17:15:34 +0000
Subject: svn: /pear2/Pyrus/trunk/src/Pyrus/ ChannelFile.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-58352@lists.php.net to get a copy of this message
saltybeagle Wed, 23 Dec 2009 17:15:34 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=292554 Log: Namespace usage cleanup for readability. Changed paths: U pear2/Pyrus/trunk/src/Pyrus/ChannelFile.php Modified: pear2/Pyrus/trunk/src/Pyrus/ChannelFile.php =================================================================== --- pear2/Pyrus/trunk/src/Pyrus/ChannelFile.php 2009-12-23 17:12:32 UTC (rev 292553) +++ pear2/Pyrus/trunk/src/Pyrus/ChannelFile.php 2009-12-23 17:15:34 UTC (rev 292554) @@ -36,7 +36,7 @@ function __construct($file, $isxml = false, $isremote = false) { $this->path = $file; - $parser = new \pear2\Pyrus\ChannelFile\Parser\v1; + $parser = new ChannelFile\Parser\v1; if ($isxml) { $data = $file; } elseif ($isremote) { @@ -62,7 +62,7 @@ $data = @file_get_contents($file); } if ($data === false || empty($data)) { - throw new \pear2\Pyrus\ChannelFile\Exception('Unable to open channel xml file ' + throw new ChannelFile\Exception('Unable to open channel xml file ' . $file . ' or file was empty.'); } $this->info = $parser->parse($data); @@ -85,7 +85,7 @@ { // delegate to the internal object if (!is_callable(array($this->info, $func))) { - throw new \pear2\Pyrus\ChannelFile\Exception('unknown method: ' . @get_class($this->info) . '::' . + throw new ChannelFile\Exception('unknown method: ' . @get_class($this->info) . '::' . $func); } return call_user_func_array(array($this->info, $func), $args); @@ -105,7 +105,7 @@ */ protected function _fromURL($xml_url) { - $response = \pear2\Pyrus\Main::download($xml_url); + $response = Main::download($xml_url); return $response->body; } }

« previous php.pear.cvs (#58352) next »