@@ -84,7 +84,7 @@ public function addClient($client_id, $client_secret, $redirect_uri) {
8484 try {
8585 $ client_secret = $ this ->hash ($ client_secret , $ client_id );
8686
87- $ sql = 'INSERT INTO ' .TABLE_CLIENTS .' (client_id, client_secret, redirect_uri) VALUES (:client_id, :client_secret, :redirect_uri) ' ;
87+ $ sql = 'INSERT INTO ' .self :: TABLE_CLIENTS .' (client_id, client_secret, redirect_uri) VALUES (:client_id, :client_secret, :redirect_uri) ' ;
8888 $ stmt = $ this ->db ->prepare ($ sql );
8989 $ stmt ->bindParam (':client_id ' , $ client_id , PDO ::PARAM_STR );
9090 $ stmt ->bindParam (':client_secret ' , $ client_secret , PDO ::PARAM_STR );
@@ -101,7 +101,7 @@ public function addClient($client_id, $client_secret, $redirect_uri) {
101101 */
102102 public function checkClientCredentials ($ client_id , $ client_secret = NULL ) {
103103 try {
104- $ sql = 'SELECT client_secret FROM ' .TABLE_CLIENTS .' WHERE client_id = :client_id ' ;
104+ $ sql = 'SELECT client_secret FROM ' .self :: TABLE_CLIENTS .' WHERE client_id = :client_id ' ;
105105 $ stmt = $ this ->db ->prepare ($ sql );
106106 $ stmt ->bindParam (':client_id ' , $ client_id , PDO ::PARAM_STR );
107107 $ stmt ->execute ();
@@ -122,7 +122,7 @@ public function checkClientCredentials($client_id, $client_secret = NULL) {
122122 */
123123 public function getClientDetails ($ client_id ) {
124124 try {
125- $ sql = 'SELECT redirect_uri FROM ' .TABLE_CLIENTS .' WHERE client_id = :client_id ' ;
125+ $ sql = 'SELECT redirect_uri FROM ' .self :: TABLE_CLIENTS .' WHERE client_id = :client_id ' ;
126126 $ stmt = $ this ->db ->prepare ($ sql );
127127 $ stmt ->bindParam (':client_id ' , $ client_id , PDO ::PARAM_STR );
128128 $ stmt ->execute ();
0 commit comments