Subversion Repositories Applications.framework

Rev

Rev 470 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 470 Rev 499
Line 13... Line 13...
13
*/
13
*/
Line 14... Line 14...
14
class RestClient {
14
class RestClient {
Line 15... Line 15...
15
        const HTTP_URL_REQUETE_SEPARATEUR = '&';
15
        const HTTP_URL_REQUETE_SEPARATEUR = '&';
Line 16... Line 16...
16
        const HTTP_URL_REQUETE_CLE_VALEUR_SEPARATEUR = '=';
16
        const HTTP_URL_REQUETE_CLE_VALEUR_SEPARATEUR = '=';
Line 17... Line 17...
17
        private $http_methodes = array('GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'OPTIONS', 'CONNECT', 'TRACE');
17
        private $http_methodes = array('GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'OPTIONS', 'CONNECT', 'TRACE');
Line 18... Line -...
18
        protected $parametres = null;
-
 
Line -... Line 18...
-
 
18
        protected $parametres = array();
Line 19... Line 19...
19
        private $url = null;
19
        private $url = null;
Line 20... Line 20...
20
        private $reponse_entetes = null;
20
        private $reponse_entetes = null;
Line 21... Line 21...
21
21
Line 22... Line 22...
22
        //+----------------------------------------------------------------------------------------------------------------+
22
        //+----------------------------------------------------------------------------------------------------------------+
Line 23... Line 23...
23
        // ACCESSEURS
23
        // ACCESSEURS
Line 38... Line 38...
38
        public function supprimerParametre($cle) {
38
        public function supprimerParametre($cle) {
Line 39... Line 39...
39
                unset($this->parametres[$cle]);
39
                unset($this->parametres[$cle]);
Line 40... Line 40...
40
        }
40
        }
Line 41... Line 41...
41
41
Line 42... Line 42...
42
        public function nettoyerParametres() {
42
        public function nettoyerParametres() {
Line 43... Line -...
43
                $this->parametres = null;
-
 
Line -... Line 43...
-
 
43
                $this->parametres = array();
Line 44... Line 44...
44
        }
44
        }
Line 45... Line 45...
45
45
Line 46... Line 46...
46
        //+----------------------------------------------------------------------------------------------------------------+
46
        //+----------------------------------------------------------------------------------------------------------------+
Line 47... Line 47...
47
        // M√ČTHODES
47
        // M√ČTHODES
Line 48... Line 48...
48
48
Line 155... Line 155...
155
        }
155
        }
Line 156... Line 156...
156
156
Line 157... Line 157...
157
        private function reinitialiser() {
157
        private function reinitialiser() {
Line 158... Line 158...
158
                $this->nettoyerParametres();
158
                $this->nettoyerParametres();
Line 159... Line 159...
159
        }
159
        }
Line 160... Line 160...
160
}
160
}