upgrade
This commit is contained in:
38
plugin/rss/lib/rss_plugin.class.php
Normal file
38
plugin/rss/lib/rss_plugin.class.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/* For licensing terms, see /license.txt */
|
||||
|
||||
/**
|
||||
* @copyright (c) 2012 University of Geneva
|
||||
* @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
|
||||
* @author Laurent Opprecht <laurent@opprecht.info>
|
||||
*/
|
||||
class RssPlugin extends Plugin
|
||||
{
|
||||
/**
|
||||
* RssPlugin constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('1.1', 'Laurent Opprecht, Julio Montoya', ['block_title' => 'text', 'rss' => 'text']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RssPlugin
|
||||
*/
|
||||
public static function create()
|
||||
{
|
||||
static $result = null;
|
||||
|
||||
return $result ? $result : $result = new self();
|
||||
}
|
||||
|
||||
public function get_block_title()
|
||||
{
|
||||
return $this->get('block_title');
|
||||
}
|
||||
|
||||
public function get_rss()
|
||||
{
|
||||
return $this->get('rss');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user