cvs: pear /Net_MPD MPD.php package.xml
| From: | Graham Christensen | Date: | Fri, 27 Oct 2006 19:48:50 +0000 |
| Subject: | cvs: pear /Net_MPD MPD.php package.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42834@lists.php.net to get a copy of this message | ||
itrebal Fri Oct 27 19:48:50 2006 UTC
Added files:
/pear/Net_MPD MPD.php package.xml
Log:
Added MPD.php and package.xml - get
excluded in previous submission. Same as
0.1.0dev1 release.
http://cvs.php.net/viewvc.cgi/pear/Net_MPD/MPD.php?view=markup&rev=1.1 Index: pear/Net_MPD/MPD.php +++ pear/Net_MPD/MPD.php <?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Music Player Daemon API * * PHP Version 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available thorugh the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category Networking * @package Net_MPD * @author Graham Christensen <graham.christensen@itrebal.com> * @copyright 2006 Graham Christensen * @license http://www.php.net/license/3_0.txt * @version CVS: $ID:$ */ require_once 'PEAR/Exception.php'; require_once 'MPD/Common.php'; /** * API for the factory portion of Music Player Daemon commands * * Used to utilize the functionality of the provided classes * * @category Networking * @package Net_MPD * @author Graham Christensen <graham.christensen@itrebal.com> * @copyright 2006 Graham Christensen * @license http://www.php.net/license/3_0.txt * @version CVS: $ID:$ */ class Net_MPD { /** * Creates new instances of objects * @param $class Class to initiate, with out Net_MPD_$class * @param $host Host to connect to, optional (default: localhost) * @param $port Port to connect to, optional (default: 6600) * @param $pass Pass to connect to, optional (default: null) * @return object or false on failure */ public static function factory($class, $host = 'localhost', $port = 6600, $pass = null) { if (!self::_loadClass($class)) { return false; } $class = 'Net_MPD_'.$class; $obj = new $class(); try { $obj->connect($host, $port, $pass); } catch (PEAR_Exception $e) { throw new PEAR_Exception($e->getMessage(), $e); } return $obj; } /** * Loads the class * @param $class Class to include, with out Net_MPD_ * @return bool */ private static function _loadClass($class) { if (class_exists('Net_MPD_'.$class)) { return true; } require_once 'MPD/'.$class.'.php'; return true; } } http://cvs.php.net/viewvc.cgi/pear/Net_MPD/package.xml?view=markup&rev=1.1 Index: pear/Net_MPD/package.xml +++ pear/Net_MPD/package.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0"> <package version="1.0" packagerversion="1.4.9"> <name>Net_MPD</name> <summary>Music Player Daemon interaction API</summary> <description>This package provides wrappers to easily use the MPD socket commands. </description> <maintainers> <maintainer> <user>itrebal</user> <name>Graham Christensen</name> <email>graham.christensen@itrebal.com</email> <role>lead</role> </maintainer> </maintainers> <release> <version>0.1.0dev1</version> <date>2006-10-25</date> <license>PHP License 3.0</license> <state>devel</state> <notes>Initial release. </notes> <deps> <dep type="php" rel="ge" version="5.1.4"/> </deps> <provides type="class" name="Net_MPD" /> <provides type="function" name="Net_MPD::factory" /> <provides type="class" name="Net_MPD_Admin" extends="Net_MPD_Common" /> <provides type="function" name="Net_MPD_Admin::getOutputs" /> <provides type="function" name="Net_MPD_Admin::disableOutput" /> <provides type="function" name="Net_MPD_Admin::enableOutput" /> <provides type="function" name="Net_MPD_Admin::kill" /> <provides type="function" name="Net_MPD_Admin::updateDatabase" /> <provides type="class" name="Net_MPD_Common" /> <provides type="function" name="Net_MPD_Common::connect" /> <provides type="function" name="Net_MPD_Common::isConnected" /> <provides type="function" name="Net_MPD_Common::disconnect" /> <provides type="function" name="Net_MPD_Common::write" /> <provides type="function" name="Net_MPD_Common::read" /> <provides type="function" name="Net_MPD_Common::runCommand" /> <provides type="function" name="Net_MPD_Common::parseOutput" /> <provides type="function" name="Net_MPD_Common::getErrors" /> <provides type="function" name="Net_MPD_Common::getNotCommands" /> <provides type="function" name="Net_MPD_Common::getCommands" /> <provides type="function" name="Net_MPD_Common::ping" /> <provides type="function" name="Net_MPD_Common::getStats" /> <provides type="function" name="Net_MPD_Common::getStatus" /> <provides type="class" name="Net_MPD_Database" extends="Net_MPD_Common" /> <provides type="function" name="Net_MPD_Database::find" /> <provides type="function" name="Net_MPD_Database::getMetadata" /> <provides type="function" name="Net_MPD_Database::getAll" /> <provides type="function" name="Net_MPD_Database::getAllInfo" /> <provides type="function" name="Net_MPD_Database::getInfo" /> <provides type="class" name="Net_MPD_Playback" extends="Net_MPD_Common" /> <provides type="function" name="Net_MPD_Playback::setCrossfade" /> <provides type="function" name="Net_MPD_Playback::nextSong" /> <provides type="function" name="Net_MPD_Playback::previousSong" /> <provides type="function" name="Net_MPD_Playback::pause" /> <provides type="function" name="Net_MPD_Playback::play" /> <provides type="function" name="Net_MPD_Playback::playId" /> <provides type="function" name="Net_MPD_Playback::random" /> <provides type="function" name="Net_MPD_Playback::repeat" /> <provides type="function" name="Net_MPD_Playback::seek" /> <provides type="function" name="Net_MPD_Playback::seekId" /> <provides type="function" name="Net_MPD_Playback::setVolume" /> <provides type="function" name="Net_MPD_Playback::stop" /> <provides type="class" name="Net_MPD_Playlist" extends="Net_MPD_Common" /> <provides type="function" name="Net_MPD_Playlist::getPlaylists" /> <provides type="function" name="Net_MPD_Playlist::addSong" /> <provides type="function" name="Net_MPD_Playlist::clear" /> <provides type="function" name="Net_MPD_Playlist::getCurrentSong" /> <provides type="function" name="Net_MPD_Playlist::deleteSong" /> <provides type="function" name="Net_MPD_Playlist::deleteSongId" /> <provides type="function" name="Net_MPD_Playlist::loadPlaylist" /> <provides type="function" name="Net_MPD_Playlist::moveSong" /> <provides type="function" name="Net_MPD_Playlist::moveSongId" /> <provides type="function" name="Net_MPD_Playlist::getPlaylistInfo" /> <provides type="function" name="Net_MPD_Playlist::getPlaylistInfoId" /> <provides type="function" name="Net_MPD_Playlist::getChanges" /> <provides type="function" name="Net_MPD_Playlist::deletePlaylist" /> <provides type="function" name="Net_MPD_Playlist::savePlaylist" /> <provides type="function" name="Net_MPD_Playlist::shuffle" /> <provides type="function" name="Net_MPD_Playlist::swapSong" /> <provides type="function" name="Net_MPD_Playlist::swapSongId" /> <filelist> <file role="php" baseinstalldir="/" md5sum="3f2550bdc17cd37d5bb3adba6ff5a1ce" name="MPD.php"/> <file role="php" baseinstalldir="/" md5sum="5d35be4d1fd3516274ef09f87899f970" name="MPD/Admin.php"/> <file role="php" baseinstalldir="/" md5sum="5ce6aae9f66e1ad069a51202a8faba89" name="MPD/Common.php"/> <file role="php" baseinstalldir="/" md5sum="58f91fdd29bde2f3634ce9fd1ff0cd32" name="MPD/Database.php"/> <file role="php" baseinstalldir="/" md5sum="c595d78a4c10c561e0ccec8f2a114057" name="MPD/Playback.php"/> <file role="php" baseinstalldir="/" md5sum="4cceb397904a0d1f183fa646fbbbe0a5" name="MPD/Playlist.php"/> <file role="doc" baseinstalldir="/" md5sum="f724430327b122f00c6315be5acb7c17" name="MPD/docs/listArtists.php"/> <file role="doc" baseinstalldir="/" md5sum="9283142098f0eb43bf022e47620b731a" name="MPD/docs/listCurrentPlaylist.php"/> <file role="doc" baseinstalldir="/" md5sum="1ac42bfaa5b51ceec173274e3fe6cebd" name="MPD/docs/listSongs.php"/> </filelist> </release> </package>
http://cvs.php.net/viewvc.cgi/pear/Net_MPD/MPD.php?view=markup&rev=1.1 Index: pear/Net_MPD/MPD.php +++ pear/Net_MPD/MPD.php <?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Music Player Daemon API * * PHP Version 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available thorugh the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category Networking * @package Net_MPD * @author Graham Christensen <graham.christensen@itrebal.com> * @copyright 2006 Graham Christensen * @license http://www.php.net/license/3_0.txt * @version CVS: $ID:$ */ require_once 'PEAR/Exception.php'; require_once 'MPD/Common.php'; /** * API for the factory portion of Music Player Daemon commands * * Used to utilize the functionality of the provided classes * * @category Networking * @package Net_MPD * @author Graham Christensen <graham.christensen@itrebal.com> * @copyright 2006 Graham Christensen * @license http://www.php.net/license/3_0.txt * @version CVS: $ID:$ */ class Net_MPD { /** * Creates new instances of objects * @param $class Class to initiate, with out Net_MPD_$class * @param $host Host to connect to, optional (default: localhost) * @param $port Port to connect to, optional (default: 6600) * @param $pass Pass to connect to, optional (default: null) * @return object or false on failure */ public static function factory($class, $host = 'localhost', $port = 6600, $pass = null) { if (!self::_loadClass($class)) { return false; } $class = 'Net_MPD_'.$class; $obj = new $class(); try { $obj->connect($host, $port, $pass); } catch (PEAR_Exception $e) { throw new PEAR_Exception($e->getMessage(), $e); } return $obj; } /** * Loads the class * @param $class Class to include, with out Net_MPD_ * @return bool */ private static function _loadClass($class) { if (class_exists('Net_MPD_'.$class)) { return true; } require_once 'MPD/'.$class.'.php'; return true; } } http://cvs.php.net/viewvc.cgi/pear/Net_MPD/package.xml?view=markup&rev=1.1 Index: pear/Net_MPD/package.xml +++ pear/Net_MPD/package.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0"> <package version="1.0" packagerversion="1.4.9"> <name>Net_MPD</name> <summary>Music Player Daemon interaction API</summary> <description>This package provides wrappers to easily use the MPD socket commands. </description> <maintainers> <maintainer> <user>itrebal</user> <name>Graham Christensen</name> <email>graham.christensen@itrebal.com</email> <role>lead</role> </maintainer> </maintainers> <release> <version>0.1.0dev1</version> <date>2006-10-25</date> <license>PHP License 3.0</license> <state>devel</state> <notes>Initial release. </notes> <deps> <dep type="php" rel="ge" version="5.1.4"/> </deps> <provides type="class" name="Net_MPD" /> <provides type="function" name="Net_MPD::factory" /> <provides type="class" name="Net_MPD_Admin" extends="Net_MPD_Common" /> <provides type="function" name="Net_MPD_Admin::getOutputs" /> <provides type="function" name="Net_MPD_Admin::disableOutput" /> <provides type="function" name="Net_MPD_Admin::enableOutput" /> <provides type="function" name="Net_MPD_Admin::kill" /> <provides type="function" name="Net_MPD_Admin::updateDatabase" /> <provides type="class" name="Net_MPD_Common" /> <provides type="function" name="Net_MPD_Common::connect" /> <provides type="function" name="Net_MPD_Common::isConnected" /> <provides type="function" name="Net_MPD_Common::disconnect" /> <provides type="function" name="Net_MPD_Common::write" /> <provides type="function" name="Net_MPD_Common::read" /> <provides type="function" name="Net_MPD_Common::runCommand" /> <provides type="function" name="Net_MPD_Common::parseOutput" /> <provides type="function" name="Net_MPD_Common::getErrors" /> <provides type="function" name="Net_MPD_Common::getNotCommands" /> <provides type="function" name="Net_MPD_Common::getCommands" /> <provides type="function" name="Net_MPD_Common::ping" /> <provides type="function" name="Net_MPD_Common::getStats" /> <provides type="function" name="Net_MPD_Common::getStatus" /> <provides type="class" name="Net_MPD_Database" extends="Net_MPD_Common" /> <provides type="function" name="Net_MPD_Database::find" /> <provides type="function" name="Net_MPD_Database::getMetadata" /> <provides type="function" name="Net_MPD_Database::getAll" /> <provides type="function" name="Net_MPD_Database::getAllInfo" /> <provides type="function" name="Net_MPD_Database::getInfo" /> <provides type="class" name="Net_MPD_Playback" extends="Net_MPD_Common" /> <provides type="function" name="Net_MPD_Playback::setCrossfade" /> <provides type="function" name="Net_MPD_Playback::nextSong" /> <provides type="function" name="Net_MPD_Playback::previousSong" /> <provides type="function" name="Net_MPD_Playback::pause" /> <provides type="function" name="Net_MPD_Playback::play" /> <provides type="function" name="Net_MPD_Playback::playId" /> <provides type="function" name="Net_MPD_Playback::random" /> <provides type="function" name="Net_MPD_Playback::repeat" /> <provides type="function" name="Net_MPD_Playback::seek" /> <provides type="function" name="Net_MPD_Playback::seekId" /> <provides type="function" name="Net_MPD_Playback::setVolume" /> <provides type="function" name="Net_MPD_Playback::stop" /> <provides type="class" name="Net_MPD_Playlist" extends="Net_MPD_Common" /> <provides type="function" name="Net_MPD_Playlist::getPlaylists" /> <provides type="function" name="Net_MPD_Playlist::addSong" /> <provides type="function" name="Net_MPD_Playlist::clear" /> <provides type="function" name="Net_MPD_Playlist::getCurrentSong" /> <provides type="function" name="Net_MPD_Playlist::deleteSong" /> <provides type="function" name="Net_MPD_Playlist::deleteSongId" /> <provides type="function" name="Net_MPD_Playlist::loadPlaylist" /> <provides type="function" name="Net_MPD_Playlist::moveSong" /> <provides type="function" name="Net_MPD_Playlist::moveSongId" /> <provides type="function" name="Net_MPD_Playlist::getPlaylistInfo" /> <provides type="function" name="Net_MPD_Playlist::getPlaylistInfoId" /> <provides type="function" name="Net_MPD_Playlist::getChanges" /> <provides type="function" name="Net_MPD_Playlist::deletePlaylist" /> <provides type="function" name="Net_MPD_Playlist::savePlaylist" /> <provides type="function" name="Net_MPD_Playlist::shuffle" /> <provides type="function" name="Net_MPD_Playlist::swapSong" /> <provides type="function" name="Net_MPD_Playlist::swapSongId" /> <filelist> <file role="php" baseinstalldir="/" md5sum="3f2550bdc17cd37d5bb3adba6ff5a1ce" name="MPD.php"/> <file role="php" baseinstalldir="/" md5sum="5d35be4d1fd3516274ef09f87899f970" name="MPD/Admin.php"/> <file role="php" baseinstalldir="/" md5sum="5ce6aae9f66e1ad069a51202a8faba89" name="MPD/Common.php"/> <file role="php" baseinstalldir="/" md5sum="58f91fdd29bde2f3634ce9fd1ff0cd32" name="MPD/Database.php"/> <file role="php" baseinstalldir="/" md5sum="c595d78a4c10c561e0ccec8f2a114057" name="MPD/Playback.php"/> <file role="php" baseinstalldir="/" md5sum="4cceb397904a0d1f183fa646fbbbe0a5" name="MPD/Playlist.php"/> <file role="doc" baseinstalldir="/" md5sum="f724430327b122f00c6315be5acb7c17" name="MPD/docs/listArtists.php"/> <file role="doc" baseinstalldir="/" md5sum="9283142098f0eb43bf022e47620b731a" name="MPD/docs/listCurrentPlaylist.php"/> <file role="doc" baseinstalldir="/" md5sum="1ac42bfaa5b51ceec173274e3fe6cebd" name="MPD/docs/listSongs.php"/> </filelist> </release> </package>