cleanup & refactor

This commit is contained in:
Nicolas Le Goff
2012-08-29 14:48:35 +02:00
parent 7d857e59dd
commit ed946cc026
26 changed files with 90 additions and 521 deletions

View File

@@ -962,27 +962,11 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
$stmt->execute(array(':usr_id' => $this->get_id()));
$stmt->closeCursor();
/**
* @todo does usrlist not exists anymore ?
*/
// $sql = 'DELETE FROM usrlist WHERE usr_id = :usr_id';
// $stmt = $this->appbox->get_connection()->prepare($sql);
// $stmt->execute(array(':usr_id' => $this->get_id()));
// $stmt->closeCursor();
$sql = 'DELETE FROM usr_settings WHERE usr_id = :usr_id';
$stmt = $this->appbox->get_connection()->prepare($sql);
$stmt->execute(array(':usr_id' => $this->get_id()));
$stmt->closeCursor();
/**
* @todo table usrlistusers does not exists anymore ?
*/
// $sql = 'DELETE FROM usrlistusers WHERE usr_id = :usr_id';
// $stmt = $this->appbox->get_connection()->prepare($sql);
// $stmt->execute(array(':usr_id' => $this->get_id()));
// $stmt->closeCursor();
$sql = 'DELETE FROM ssel WHERE usr_id = :usr_id';
$stmt = $this->appbox->get_connection()->prepare($sql);
$stmt->execute(array(':usr_id' => $this->get_id()));