Source for file Admin.php
Documentation is available at Admin.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* Music Player Daemon API
* 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.
* API for the administrative portion of Music Player Daemon commands
* Used for maintaining and controlling various administrative tasks
* @author Graham Christensen <graham.christensen@itrebal.com>
* @copyright 2006 Graham Christensen
* @license http://www.php.net/license/3_0.txt
* List available audio outputs
* @return array or int on failure
} catch (PEAR_Exception $e) {
throw new PEAR_Exception ($e->getMessage (), $e);
* Disables an audio output
* @param $id int output Id to disable
if ($this->runCommand('disableoutput', $id) == array ()) {
} catch (PEAR_Exception $e) {
throw new PEAR_Exception ($e->getMessage (), $e);
* Enables an audio output
* @param $id int Id to enable
if ($this->runCommand('enableoutput', $id) == array ()) {
} catch (PEAR_Exception $e) {
throw new PEAR_Exception ($e->getMessage (), $e);
* Kills the MPD server in a safe way, saving state if possible
} catch (PEAR_Exception $e) {
throw new PEAR_Exception ($e->getMessage (), $e);
* Updates the music database
* @param $path string path which to search for music, optional
} catch (PEAR_Exception $e) {
throw new PEAR_Exception ($e->getMessage (), $e);
Documentation generated on Mon, 11 Mar 2019 14:48:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|