Ejemplo n.º 1
0
 /**
  * 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]);
 }
Ejemplo n.º 2
0
 /**
  * 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]);
     }
 }