rss_plugin.class.php 824 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @copyright (c) 2012 University of Geneva
  5. * @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
  6. * @author Laurent Opprecht <laurent@opprecht.info>
  7. */
  8. class RssPlugin extends Plugin
  9. {
  10. /**
  11. * RssPlugin constructor.
  12. */
  13. public function __construct()
  14. {
  15. parent::__construct('1.1', 'Laurent Opprecht, Julio Montoya', ['block_title' => 'text', 'rss' => 'text']);
  16. }
  17. /**
  18. * @return RssPlugin
  19. */
  20. public static function create()
  21. {
  22. static $result = null;
  23. return $result ? $result : $result = new self();
  24. }
  25. public function get_block_title()
  26. {
  27. return $this->get('block_title');
  28. }
  29. public function get_rss()
  30. {
  31. return $this->get('rss');
  32. }
  33. }