mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-14 17:26:10 +01:00
Adds a new notifications feature to the Admin plugin. It will now lookup notifications which are set up on getgrav.org and will inform users, and also alert for new updates and provide awareness on various topics. Also fixes issue with Array field in `value_only` mode, improperly displaying the key when novalue was set, and fixes issue with drag handlers in Array not showing/hiding properly (#950) Updated FontAwesome to 4.6.3
176 lines
2.8 KiB
PHP
176 lines
2.8 KiB
PHP
<?php
|
|
|
|
namespace PicoFeed\Serialization;
|
|
|
|
/**
|
|
* Class Subscription
|
|
*
|
|
* @package PicoFeed\Serialization
|
|
* @author Frederic Guillot
|
|
*/
|
|
class Subscription
|
|
{
|
|
protected $title = '';
|
|
protected $feedUrl = '';
|
|
protected $siteUrl = '';
|
|
protected $category = '';
|
|
protected $description = '';
|
|
protected $type = '';
|
|
|
|
/**
|
|
* Create object instance
|
|
*
|
|
* @static
|
|
* @access public
|
|
* @return Subscription
|
|
*/
|
|
public static function create()
|
|
{
|
|
return new static();
|
|
}
|
|
|
|
/**
|
|
* Set title
|
|
*
|
|
* @access public
|
|
* @param string $title
|
|
* @return Subscription
|
|
*/
|
|
public function setTitle($title)
|
|
{
|
|
$this->title = $title;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get title
|
|
*
|
|
* @access public
|
|
* @return string
|
|
*/
|
|
public function getTitle()
|
|
{
|
|
return $this->title;
|
|
}
|
|
|
|
/**
|
|
* Set feed URL
|
|
*
|
|
* @access public
|
|
* @param string $feedUrl
|
|
* @return Subscription
|
|
*/
|
|
public function setFeedUrl($feedUrl)
|
|
{
|
|
$this->feedUrl = $feedUrl;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get feed URL
|
|
*
|
|
* @access public
|
|
* @return string
|
|
*/
|
|
public function getFeedUrl()
|
|
{
|
|
return $this->feedUrl;
|
|
}
|
|
|
|
/**
|
|
* Set site URL
|
|
*
|
|
* @access public
|
|
* @param string $siteUrl
|
|
* @return Subscription
|
|
*/
|
|
public function setSiteUrl($siteUrl)
|
|
{
|
|
$this->siteUrl = $siteUrl;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get site URL
|
|
*
|
|
* @access public
|
|
* @return string
|
|
*/
|
|
public function getSiteUrl()
|
|
{
|
|
return $this->siteUrl;
|
|
}
|
|
|
|
/**
|
|
* Set category
|
|
*
|
|
* @access public
|
|
* @param string $category
|
|
* @return Subscription
|
|
*/
|
|
public function setCategory($category)
|
|
{
|
|
$this->category = $category;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get category
|
|
*
|
|
* @access public
|
|
* @return string
|
|
*/
|
|
public function getCategory()
|
|
{
|
|
return $this->category;
|
|
}
|
|
|
|
/**
|
|
* Set description
|
|
*
|
|
* @access public
|
|
* @param string $description
|
|
* @return Subscription
|
|
*/
|
|
public function setDescription($description)
|
|
{
|
|
$this->description = $description;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get description
|
|
*
|
|
* @access public
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* Set type
|
|
*
|
|
* @access public
|
|
* @param string $type
|
|
* @return Subscription
|
|
*/
|
|
public function setType($type)
|
|
{
|
|
$this->type = $type;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get type
|
|
*
|
|
* @access public
|
|
* @return string
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
}
|