Lifestream
Class

Lyrixx\Lifestream\Service\Rss20

class Rss20 extends AbstractService

Fetch RSS 2.0 feed

Methods

__construct(string $feedUrl, string $profileUrl = null, Client $client = null)

Constructor

from AbstractService
StatusInterface[] getStatuses()

Returns a collection of StatusInterface

from AbstractService
setStatusClassname(string $statusClassname)

Sets the status classname.

from AbstractService
string getName()

Returns the service name

from AbstractService
setClient(Client $client)

Set a client

from AbstractService
string getFeedUrl()

Return the full url to the feed.

from AbstractService
string getProfileUrl()

Return the full url to the profile

from AbstractService
setResponse(Response $response)

Set the response

from AbstractService
Request prepareRequest()

Prepare the request

from AbstractService

Details

in AbstractService at line 27
public __construct(string $feedUrl, string $profileUrl = null, Client $client = null)

Constructor

Parameters

string $feedUrl A Feed url
string $profileUrl A profileUrl
Client $client A client

in AbstractService at line 52
public StatusInterface[] getStatuses()

Returns a collection of StatusInterface

Return Value

StatusInterface[] A colection StatusInterface

in AbstractService at line 74
public setStatusClassname(string $statusClassname)

Sets the status classname.

Must implement StatusInterface.

I will be used to create a new StatusInterface with fetched datas

Parameters

string $statusClassname The status classname

in AbstractService at line 82
public string getName()

Returns the service name

Return Value

string The service name

in AbstractService at line 92
public setClient(Client $client)

Set a client

Parameters

Client $client A client

in AbstractService at line 102
public string getFeedUrl()

Return the full url to the feed.

Return Value

string The feed Url

in AbstractService at line 110
public string getProfileUrl()

Return the full url to the profile

Return Value

string The profile url

in AbstractService at line 118
public setResponse(Response $response)

Set the response

Usefull for multicurl

Parameters

Response $response

in AbstractService at line 126
public Request prepareRequest()

Prepare the request

Return Value

Request