constructor __construct [line 45]
AmpacheShoutCast __construct(
)
|
|
Constructor
This returns the array map for the localplay object REQUIRED for Localplay
Tags:
method add [line 281]
add
This takes a single object and adds it in, it uses the built in functions to generate the URL it needs
Tags:
Overrides
localplay_controller::add() (parent method not documented)
Parameters:
method add_instance [line 130]
void add_instance(
$data)
|
|
add_instance
This takes key'd data and inserts a new MPD instance
Tags:
Overrides
localplay_controller::add_instance() (parent method not documented)
Parameters:
method clear_playlist [line 326]
clear_playlist
This deletes the entire MPD playlist... nuff said
method connect [line 500]
connect
This functions creates the connection to MPD and returns a boolean value for the status, to save time this handle is stored in this class
Tags:
Overrides
localplay_controller::connect() (parent method not documented)
method delete_instance [line 160]
void delete_instance(
$uid)
|
|
delete_instance
This takes a UID and deletes the instance in question
Tags:
Overrides
localplay_controller::delete_instance() (parent method not documented)
Parameters:
method delete_track [line 316]
void delete_track(
$object_id)
|
|
delete_track
This must take a single ID (as passed by get function) from Ampache and delete it from the current playlist
Tags:
Overrides
localplay_controller::delete_track() (parent method not documented)
Parameters:
method get [line 468]
get_songs
This functions returns an array containing information about The songs that MPD currently has in it's playlist. This must be done in a standardized fashion
Tags:
Overrides
localplay_controller::get() (parent method not documented)
method get_active_instance [line 271]
method get_description [line 57]
method get_instance [line 197]
void get_instance(
[
$instance = ''])
|
|
get_instance
This returns the specified instance and all it's pretty variables If no instance is passed current is used
Tags:
Parameters:
method get_instances [line 177]
method get_pid [line 519]
get_pid
This returns the pid for the current instance
Tags:
method get_playlist [line 558]
get_playlist
This reads in the playlist and returns an array of filenames
Tags:
method get_version [line 67]
method install [line 90]
method instance_fields [line 235]
instance_fields
This returns a key'd array of [NAME]=>array([DESCRIPTION]=>VALUE,[TYPE]=>VALUE) for the fields so that we can on-the-fly generate a form
Tags:
Overrides
localplay_controller::instance_fields() (parent method not documented)
method is_installed [line 77]
method move [line 457]
void move(
$SrcPos,
$DestPos)
|
|
move
This tells MPD to move song from SrcPos to DestPos
Tags:
Parameters:
method next [line 395]
next
This just tells MPD to skip to the next song
Tags:
method pause [line 415]
method play [line 337]
play
This just tells MPD to start playing, it does not take any arguments
Tags:
Overrides
localplay_controller::play() (parent method not documented)
method prev [line 406]
prev
This just tells MPD to skip to the prev song
Tags:
method random [line 446]
random
This tells MPD to turn on or off the playing of songs from the playlist in random order
Tags:
Parameters:
method repeat [line 435]
repeat
This tells MPD to set the repeating the playlist (i.e. loop) to either on or off
Tags:
Parameters:
method send_command [line 578]
void send_command(
$command, [
$options = array()])
|
|
send_command
This is the single funciton that's used to send commands to the shoutcast server, one function makes it easier to ensure we've escaped our input
Tags:
Parameters:
method set_active_instance [line 250]
void set_active_instance(
$uid, [
$user_id = ''])
|
|
set_active_instance
This sets the specified instance as the 'active' one
Tags:
Overrides
localplay_controller::set_active_instance() (parent method not documented)
Parameters:
method skip [line 367]
skip
This tells MPD to skip to the specified song
Parameters:
method status [line 488]
get_status
This returns bool/int values for features, loop, repeat and any other features That this localplay method support
Tags:
Overrides
localplay_controller::status() (parent method not documented)
method stop [line 356]
method uninstall [line 115]
method update_instance [line 215]
void update_instance(
$uid,
$data)
|
|
update_instance
This takes an ID and an array of data and updates the instance specified
Tags:
Overrides
localplay_controller::update_instance() (parent method not documented)
Parameters:
method volume [line 425]
volume
This tells MPD to set the volume to the parameter
Tags:
Parameters:
method volume_down [line 385]
This tells MPD to decrese the volume by 5
Tags:
method volume_up [line 376]
This tells MPD to increase the volume by 5
Tags:
method write_playlist [line 536]
write_playlist
This takes the files that we've got in our array and writes them out
Tags: