Esempio n. 1
0
 static function remove($uid)
 {
     global $dbh;
     include_once 'pear-database-note.php';
     note::removeAll($uid);
     include_once 'pear-rest.php';
     $pear_rest = new pearweb_Channel_REST_Generator(PEAR_REST_PATH, $dbh);
     $pear_rest->deleteMaintainerREST($uid);
     $pear_rest->saveAllMaintainersREST();
     $dbh->query('DELETE FROM users WHERE handle = ?', array($uid));
     return $dbh->affectedRows() > 0;
 }