diff options
| author | 2013-03-17 16:22:41 +0100 | |
|---|---|---|
| committer | 2013-03-17 16:22:41 +0100 | |
| commit | 76b071a5609dc77d0744d8e2f1f639b7cb0b2810 (patch) | |
| tree | 16c5a8e734f19bc0327d9b312e5032d994041b1b /app/controllers/feedController.php | |
| parent | c401e14492ed0c79c12090bc83b9d77fe034d741 (diff) | |
Ajout de 2 champs pour entry (is_public et lastUpdate) + gestion des nouveaux champs dans la classe Entry
Diffstat (limited to 'app/controllers/feedController.php')
| -rwxr-xr-x | app/controllers/feedController.php | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/app/controllers/feedController.php b/app/controllers/feedController.php index bb1cb318a..622adb96f 100755 --- a/app/controllers/feedController.php +++ b/app/controllers/feedController.php @@ -35,18 +35,7 @@ class feedController extends ActionController { $entryDAO = new EntryDAO (); $entries = $feed->entries (); foreach ($entries as $entry) { - $values = array ( - 'id' => $entry->id (), - 'guid' => $entry->guid (), - 'title' => $entry->title (), - 'author' => $entry->author (), - 'content' => $entry->content (), - 'link' => $entry->link (), - 'date' => $entry->date (true), - 'is_read' => $entry->isRead (), - 'is_favorite' => $entry->isFavorite (), - 'id_feed' => $feed->id () - ); + $values = $entry->toArray (); $entryDAO->addEntry ($values); } @@ -104,18 +93,7 @@ class feedController extends ActionController { foreach ($entries as $entry) { if ($entry->date (true) >= $date_min) { - $values = array ( - 'id' => $entry->id (), - 'guid' => $entry->guid (), - 'title' => $entry->title (), - 'author' => $entry->author (), - 'content' => $entry->content (), - 'link' => $entry->link (), - 'date' => $entry->date (true), - 'is_read' => $entry->isRead (), - 'is_favorite' => $entry->isFavorite (), - 'id_feed' => $feed->id () - ); + $values = $entry->toArray (); $entryDAO->addEntry ($values); } } |
