Go to the documentation of this file.
16 parent::__construct();
17 $this->_oConfig = $oConfig;
22 return $this->
getAll(
"SELECT * FROM `ch_oauth_clients` ORDER BY `title`");
27 return $this->
getOne(
"SELECT `title` FROM `ch_oauth_clients` WHERE `client_id` = ? LIMIT 1", [$sClientId]);
32 return $this->
getOne(
"SELECT `user_id` FROM `ch_oauth_refresh_tokens` WHERE `user_id` = ? LIMIT 1", [
$iProfileId]);
37 return $this->
getOne(
"SELECT `ID` FROM `sys_options_cats` WHERE `name` = 'OAuth2 Server' LIMIT 1");
42 foreach ($aClients
as $sClientId)
43 $this->
query(
"DELETE FROM `ch_oauth_clients` WHERE `client_id` = '" .
process_db_input($sClientId) .
"'");
process_db_input($sText, $iStripTags=0)
ch_import($sClassName, $aModule=array())
getSavedProfile($iProfileId)
getClientTitle($sClientId)
getAll($sQuery, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC)
query($sQuery, $aBindings=[])
getOne($sQuery, $aBindings=[], $iIndex=0)
if( $sMembersList) $iProfileId