/** * Remove app from appconfig * * @param string $app app * @return boolean|null * * Removes all keys in appconfig belonging to the app. */ public function deleteApp($app) { $where = array('appid' => $app); $this->conn->delete('*PREFIX*appconfig', $where); unset($this->cache[$app]); unset($this->apps[$app]); }
/** * Remove app from all users * @param string $app app * * Removes all keys in preferences belonging to the app. */ public function deleteAppFromAllUsers($app) { $where = array('appid' => $app); $this->conn->delete('*PREFIX*preferences', $where); foreach ($this->cache as &$userCache) { unset($userCache[$app]); } }