PageRenderTime 757ms CodeModel.GetById 47ms RepoModel.GetById 1ms app.codeStats 0ms

/plugins/rss/feedfix.php

https://bitbucket.org/skuda/rsslounge
PHP | 30 lines | 7 code | 5 blank | 18 comment | 0 complexity | 018092058960ca9ab1ec46b3dab656dc MD5 | raw file
  1. <?PHP
  2. /**
  3. * Plugin for fetching an rss feed
  4. *
  5. * @package plugins
  6. * @subpackage rss
  7. * @copyright Copyright (c) Tobias Zeising (http://www.aditu.de)
  8. * @license GPLv3 (http://www.gnu.org/licenses/gpl-3.0.html)
  9. */
  10. class plugins_rss_feedfix extends plugins_rss_feed {
  11. /**
  12. * description of this source type
  13. *
  14. * @var string
  15. */
  16. public $description = 'An default RSS Feed which works without date in feeds. Use this if items appear twice.';
  17. /**
  18. * returns an unique id for this item
  19. *
  20. * @return string id as hash
  21. */
  22. public function getId() {
  23. return md5($this->getTitle() . $this->getContent());
  24. }
  25. }