Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: services/rss_codec.php

Class rss_Codec extends Codec - Rss 2.0 encoder and decoder

We are not providing the <author> field anymore because of the risk to expose e-mail addresses to spammers.

If the geographical position of the server has been set through the configuration panel for skins, it is included into the feed as well.

This script is a reference file of this system.

Voir aussi:

Licence: GNU Lesser General Public License

Auteurs:

Reste à faire:

decode() - Parse some news

function decode($data)

parse_cdata()

function parse_cdata($parser, $text)

parse_end_element()

function parse_end_element($parser, $element)

parse_start_element()

function parse_start_element($parser, $element, $attributes)

clean() - Suppress tags and codes from a string

function clean($label, $allowed='')

This function will remove any yacs code, and also any html tag, from the input string.

encode() - Encode some PHP value into XML

function encode(&$values)

Accept following values:

export_request() - Build a request according to the RSS 2.0 specification

function export_request($service, $parameters = NULL)

Voir aussi:

export_response() - Build a response according to the RSS 2.0 specification

function export_response($values=NULL, $service=NULL)

Voir aussi:

import_request() - Parse a XML submitted packet according to the RSS 2.0 specification

function import_request($data)

import_response() - Decode a XML response

function import_response($data, $headers=NULL, $parameters=NULL)

Tools
Browse the source of this script
Server software