public function removeJwtSignature($signature, $userid) { $databaseAuthtokens = new DatabaseManager(); $json = json_decode(DatabaseManager::$table11); $databaseAuthtokens->openTable("jwt", $json); $arrayToken['user'] = array('operator' => '=', 'value' => $userid, 'type' => 'i'); $arrayToken['signature'] = array('operator' => '=', 'value' => $signature, 'type' => 's'); $resultToken1 = $databaseAuthtokens->remove($arrayToken); return true; }
function unsetSimpleStorage($name, $device = TRUE, $timestamp = FALSE) { global $loginManager; $databaseManager = new DatabaseManager(); $databaseManager->openTable("plugin_settings", DatabaseManager::$table8); $pluginId = $this->getPluginName(); $authtoken = $loginManager->getAuthtoken(); $where = array("name" => array("value" => $name), "plugin" => array("value" => $pluginId)); if ($device) { $where["authtoken"] = array("value" => $authtoken); } $result = $databaseManager->remove($where); }