Show
Ignore:
Timestamp:
08/31/08 08:57:33 (4 months ago)
Author:
vollmerk
Message:

remove lib/album.lib.php and move its two functions into album class, corrected some old php4 ish code in localplay controllers, removed redundent link from sidebar (modules)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/localplay/mpd.controller.php

    r1728 r1730  
    314314         * This deletes the entire MPD playlist... nuff said 
    315315         */ 
    316         function clear_playlist() {  
     316        public function clear_playlist() {  
    317317 
    318318                if (is_null($this->_mpd->PLClear())) { return false; } 
     
    327327         * take any arguments 
    328328         */ 
    329         function play() {  
     329        public function play() {  
    330330 
    331331                if (is_null($this->_mpd->Play())) { return false; }  
     
    339339         * any arguments 
    340340         */ 
    341         function stop() {  
     341        public function stop() {  
    342342 
    343343                if (is_null($this->_mpd->Stop())) { return false; }  
     
    350350         * This tells MPD to skip to the specified song 
    351351         */ 
    352         function skip($song) {  
     352        public function skip($song) {  
    353353 
    354354                if (is_null($this->_mpd->SkipTo($song))) { return false; } 
     
    360360         * This tells MPD to increase the volume by 5 
    361361         */ 
    362         function volume_up() {  
     362        public function volume_up() {  
    363363 
    364364                if (is_null($this->_mpd->AdjustVolume('5'))) { return false; }  
     
    370370         * This tells MPD to decrese the volume by 5 
    371371         */ 
    372         function volume_down() {  
     372        public function volume_down() {  
    373373 
    374374                if (is_null($this->_mpd->AdjustVolume('-5'))) { return false; } 
     
    381381         * This just tells MPD to skip to the next song  
    382382         */ 
    383         function next() {  
     383        public function next() {  
    384384 
    385385                if (is_null($this->_mpd->Next())) { return false; }  
     
    392392         * This just tells MPD to skip to the prev song 
    393393         */ 
    394         function prev() {  
     394        public function prev() {  
    395395 
    396396                if (is_null($this->_mpd->Previous())) { return false; }  
     
    403403         * This tells MPD to pause the current song  
    404404         */ 
    405         function pause() {  
     405        public function pause() {  
    406406                 
    407407                if (is_null($this->_mpd->Pause())) { return false; }  
     
    415415        * This tells MPD to set the volume to the parameter 
    416416        */ 
    417       function volume($volume) { 
     417        public function volume($volume) { 
    418418 
    419419               if (is_null($this->_mpd->SetVolume($volume))) { return false; } 
     
    426426        * This tells MPD to set the repeating the playlist (i.e. loop) to either on or off 
    427427        */ 
    428       function repeat($state) { 
     428        public function repeat($state) { 
    429429         
    430430                if (is_null($this->_mpd->SetRepeat($state))) { return false; } 
     
    432432 
    433433       } // repeat 
    434  
    435434 
    436435       /** 
     
    438437        * This tells MPD to turn on or off the playing of songs from the playlist in random order 
    439438        */ 
    440        function random($onoff) { 
     439       public function random($onoff) { 
    441440 
    442441               if (is_null($this->_mpd->SetRandom($onoff))) { return false; } 
     
    449448        * This tells MPD to move song from SrcPos to DestPos 
    450449        */ 
    451        function move($SrcPos, $DestPos) { 
     450       public function move($SrcPos, $DestPos) { 
    452451 
    453452                if (is_null($this->_mpd->PLMoveTrack($SrcPos, $DestPos))) { return false; }