userrss.php

Summary
userrss.php
UserRSSCode to handle serving up user RSS feeds.
UserrssActionFormatting of RSS handled by Rss10Action
doStreamPreparationPrepare RSS stream, process tag variable
getNoticesRetrieve the notices for the user timeline represented by this userrss object
getChannelReturns a description of the timeline we’re presently on, in this case user timeline
initResoverride parent to add X-SUP-ID URL
isReadOnly

UserRSS

Code to handle serving up user RSS feeds.

postActiv

the micro-blogging software

Copyright

Copyright © 2016-2017, Maiyannah Bishop

Derived from code copyright various sources

  • GNU Social © 2013-2016, Free Software Foundation, Inc
  • StatusNet © 2008-2012, StatusNet, Inc

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program.  If not, see http://www.gnu.org/licenses/.

https://www.gnu.org/licenses/agpl.html

About

Code to handle serving up user RSS feeds.

PHP version

Tested with PHP 7.0

File Authors

Web

UserrssAction

Formatting of RSS handled by Rss10Action

This class represents a notice stream from a given user and contains interfaces to retrieve and describe it.

Variables

  • tag - default none; contains a hashtag we’re using to filter the feed, if any
Summary
doStreamPreparationPrepare RSS stream, process tag variable
getNoticesRetrieve the notices for the user timeline represented by this userrss object
getChannelReturns a description of the timeline we’re presently on, in this case user timeline
initResoverride parent to add X-SUP-ID URL
isReadOnly

doStreamPreparation

protected function doStreamPreparation()

Prepare RSS stream, process tag variable

Parameters

  • none

Returns

  • void

getNotices

protected function getNotices()

Retrieve the notices for the user timeline represented by this userrss object

Parameters

  • none

Returns

  • array containing all the notices

getChannel

function getChannel()

Returns a description of the timeline we’re presently on, in this case user timeline

Parameters

  • none

Returns

$carray containing url, title, link, and description

initRes

override parent to add X-SUP-ID URL

Parameters

  • none

Returns

  • void

isReadOnly

function isReadOnly($args)

Parameters

  • array $args - ignored

Returns

  • boolean true
protected function doStreamPreparation()
Prepare RSS stream, process tag variable
protected function getNotices()
Retrieve the notices for the user timeline represented by this userrss object
function getChannel()
Returns a description of the timeline we’re presently on, in this case user timeline
function isReadOnly($args)