Changeset 12d7e6f for src/webapp


Ignore:
Timestamp:
Aug 10, 2017, 8:00:39 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
85f32d8
Parents:
6fec060
git-author:
Joachim Langenbach <joachim.langenbach@…> (08/10/17 19:37:40)
git-committer:
Joachim Langenbach <joachim.langenbach@…> (08/10/17 20:00:39)
Message:
  • Fixed gnuboat daemon logging errors
  • Fixed minor issues in Webservice classes
Location:
src/webapp/webservice/inc/GnuBoat
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/webservice/inc/GnuBoat/Service.php

    r6fec060 r12d7e6f  
    3939        }
    4040       
     41        public function processRequest($debug)
     42        {
     43                $this->setDebug($debug);
     44                $this->process();
     45        }
     46
    4147        /**
    4248          * @brief Function used to process and generate the needed output
    4349          */
    44         abstract public function process();
     50        abstract protected function process();
    4551
    4652        private $_debug;
  • src/webapp/webservice/inc/GnuBoat/ServiceData.php

    r6fec060 r12d7e6f  
    3737                );
    3838        }
    39        
    40         public function process()
     39
     40        protected function process()
    4141        {
    4242                $debug = $this->debug();
    … …  
    139139                                                $allValid = false;
    140140                                                if($debug > 1){
    141                                                         echo "Invalid value ". $key ." (". $tmp[$key] .") at time ". $time ."<br/>";
     141                                                        echo "Invalid value ". $key ." (". $tmp[$key] .") at time ". $timeframe ."<br/>";
    142142                                                }
    143143                                        }
  • src/webapp/webservice/inc/GnuBoat/ServiceLogFiles.php

    r6fec060 r12d7e6f  
    2828        }
    2929
    30         public function process()
     30        protected function process()
    3131        {
    3232                $debug = $this->debug();
  • src/webapp/webservice/inc/GnuBoat/ServiceMap.php

    r6fec060 r12d7e6f  
    2828        }
    2929
    30         public function process()
     30        protected function process()
    3131        {
    3232                header('Content-type: application/json');
  • src/webapp/webservice/inc/GnuBoat/ServiceShutdown.php

    r6fec060 r12d7e6f  
    2727                parent::__construct();
    2828        }
    29        
    30         public function process()
     29
     30        protected function process()
    3131        {
    3232                $debug = $this->debug();
  • src/webapp/webservice/inc/GnuBoat/Webservice.php

    r6fec060 r12d7e6f  
    5252                }
    5353
    54                 call_user_func(array(new $this->_requests[$request], "process"));
     54                call_user_func(array(new $this->_requests[$request], "processRequest"), $debug);
    5555        }
    5656
Note: See TracChangeset for help on using the changeset viewer.