diff options
| author | 2012-10-25 17:08:17 +0200 | |
|---|---|---|
| committer | 2012-10-25 17:08:17 +0200 | |
| commit | 48a1aa7d52e712d5f64a33a003b31f23a00b99f5 (patch) | |
| tree | ab6e6de44c007836edda8f0b2ded29c8d28ca1a1 /app/models/Feed.php | |
| parent | 32ee8feccfb28aa3141469581cd04d4813fd6835 (diff) | |
ajout de la fonctionnalité pour paramétrer les raccourcis
Diffstat (limited to 'app/models/Feed.php')
| -rw-r--r-- | app/models/Feed.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php index 399c34d18..e28657612 100644 --- a/app/models/Feed.php +++ b/app/models/Feed.php @@ -146,6 +146,19 @@ class FeedDAO extends Model_pdo { } } + public function deleteFeed ($id) { + $sql = 'DELETE FROM feed WHERE id=?'; + $stm = $this->bd->prepare ($sql); + + $values = array ($id); + + if ($stm && $stm->execute ($values)) { + return true; + } else { + return false; + } + } + public function searchById ($id) { $sql = 'SELECT * FROM feed WHERE id=?'; $stm = $this->bd->prepare ($sql); |
