PHP Class yupe\components\actions\YFeedAction

Inheritance: extends CActio\CAction
Show file Open project: yupe/yupe

Public Properties

Property Type Description
$data public function actions() { return array( 'atomfeed' => array( 'class' => 'yupe\components\actions\YFeedAction', 'data' => News::model()->published()->findAll(), Параметр title по умолчанию берётся из настроек приложения 'title' => Yii::t('YupeModule.yupe', 'Site title'), Параметр description по умолчанию берётся из настроек приложения 'description' => Yii::t('YupeModule.yupe', 'News list'), Параметр link по умолчанию берётся как Yii::app()->getRequest()->getBaseUrl(true) 'link' => Yii::app()->getRequest()->getBaseUrl(true), 'itemFields' => array( author_object, если не задан - у item-елемента запросится author_nickname 'author_object' => 'user', 'author_nickname' => 'nick_name', 'author_nickname' => 'nick_name', 'content' => 'full_text', 'datetime' => 'creation_date', 'link' => '/news/news/view', 'linkParams' => array('title' => 'alias'), 'title' => 'title', 'updated' => 'change_date', ), ), ); }
$description
$itemFields array
$link
$title

Public Methods

Method Description
run ( ) : void Запуск экшена

Method Details

run() public method

здесь мы производим рендеринг нашей ленты:
public run ( ) : void
return void

Property Details

$data public property

public function actions() { return array( 'atomfeed' => array( 'class' => 'yupe\components\actions\YFeedAction', 'data' => News::model()->published()->findAll(), Параметр title по умолчанию берётся из настроек приложения 'title' => Yii::t('YupeModule.yupe', 'Site title'), Параметр description по умолчанию берётся из настроек приложения 'description' => Yii::t('YupeModule.yupe', 'News list'), Параметр link по умолчанию берётся как Yii::app()->getRequest()->getBaseUrl(true) 'link' => Yii::app()->getRequest()->getBaseUrl(true), 'itemFields' => array( author_object, если не задан - у item-елемента запросится author_nickname 'author_object' => 'user', 'author_nickname' => 'nick_name', 'author_nickname' => 'nick_name', 'content' => 'full_text', 'datetime' => 'creation_date', 'link' => '/news/news/view', 'linkParams' => array('title' => 'alias'), 'title' => 'title', 'updated' => 'change_date', ), ), ); }
public $data

$description public property

public $description

$itemFields public property

public array $itemFields
return array

$title public property

public $title