Skip to content

Commit

Permalink
0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zelenin committed Nov 2, 2014
1 parent 85df0a4 commit a79e8ed
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
19 changes: 12 additions & 7 deletions RssView.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,24 @@

class RssView extends BaseListView
{
/** @var Feed $feed */
/** @var Feed */
public $feed;
/** @var array $channel */
/** @var array */
public $channel;
/** @var array $items */
/** @var array */
public $items;
/** @var array $requiredChannelElements */
/** @var array */
public $requiredChannelElements = ['title', 'link', 'description'];
/** @var array $requiredItemElements */
/** @var array */
public $requiredItemElements = ['title', 'description', 'link', 'pubDate'];

/** @var array $channelAttributes */
/** @var array */
private $channelAttributes = [];
/** @var array $itemAttributes */
/** @var array */
private $itemAttributes = [];

/**
* @inheritdoc
* @throws InvalidConfigException
*/
public function init()
Expand All @@ -50,6 +51,7 @@ public function init()
}

/**
* @inheritdoc
* @return string|Feed
*/
public function run()
Expand Down Expand Up @@ -84,6 +86,9 @@ public function renderChannel()
}
}

/**
* @inheritdoc
*/
public function renderItems()
{
$models = $this->dataProvider->getModels();
Expand Down
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "zelenin/yii2-rss",
"description": "Yii2 RSS extension adds RSS-feed to your site",
"version": "0.0.1",
"version": "0.0.2",
"type": "yii2-extension",
"keywords": ["yii2", "rss", "feed"],
"keywords": [
"yii2",
"rss",
"feed"
],
"homepage": "https://github.com/zelenin/yii2-rss",
"time": "2014-07-05",
"time": "2014-11-02",
"license": "MIT",
"authors": [
{
Expand All @@ -16,18 +20,14 @@
}
],
"support": {
"issues": "https://github.com/zelenin/yii2-rss/issues",
"source": "https://github.com/zelenin/yii2-rss"
"issues": "https://github.com/zelenin/yii2-rss/issues", "source": "https://github.com/zelenin/yii2-rss"
},
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
"zelenin/rss-generator": "2.0.0"
"yiisoft/yii2": "~2", "zelenin/rss-generator": "2.0.*@stable"
},
"autoload": {
"psr-4": {
"Zelenin\\yii\\extensions\\Rss\\": ""
}
},
"minimum-stability": "stable"
}
}

0 comments on commit a79e8ed

Please sign in to comment.