GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ZCONF::RSS (3)

.ds Aq ’

NAME

ZConf::RSS - ZConf backed RSS fetching.

CONTENTS

VERSION

Version 2.2.0

SYNOPSIS



    use ZConf::RSS;

    my $zcrss = ZConf::RSS->new();
    ...



METHODS

    new

This initializes it.

One arguement is taken and that is a hash value.

hash values

zconf

This is the a ZConf object. If not passed, another one will be created.



    my $zcrss=ZConf::RSS->new();
    if($zcrss->{error}){
        print "Error!\n";
    }



    feedExists

This makes sure a specified template exists.



    my $returned=$zcrss->feedExists(someFeed);
    if($zcw->{error}){
        print "Error!\n";
    }else{
        if($returned){
            print "It exists.\n";
        }
    }



    delFeed

This removes a feed.

One arguement is required and that is the name of the feed.



    $zcrss->delFeed(someFeed);
    if($self->{error}){
        print "Error!\n";
    }



    delTemplate

This removes a template.

One arguement is taken and it is the template name.



    $zcrss->delTemplate(someTemplate);
    if($zcrss->{error}){
        print "Error!\n";
    }



    getFeed

This creates a ’XML::FeedPP’ object based on a feed.

One arguement is taken and it is the name of the feed.



    my $feedobj=$zcrss->getFeed;
    if($zcrss->{error}){
        print "Error!\n";
    }



    getFeedArgs

This fetches the arguements for the feed.



    my %args=$zcrss->getFeedArgs(someFeed);
    if($zcrss->{error}){
        print "Error!\n";
    }



    getFeedAsTemplatedString

This fetches a feed, processes it using the specified templates and returns a string.



    my $string=$zcrss->getFeedAsTemplatedString(someFeed);
    if($zcrss->{error}){
        print "Error!\n";
    }



    getSet

This gets what the current set is.



    my $set=$zcrss->getSet;
    if($zcrss->{error}){
        print "Error!\n";
    }



    getTemplate

This returns a template as a string.



    my $template=$zcrss->getTemplate(some/template);
    if ($zcrss->{error}) {
        print "Error!\n";
    }



    init

This initializes it or a new set.

If the specified set already exists, it will be reset.

One arguement is required and it is the name of the set. If it is not defined, ZConf will use the default one.



    #creates a new set named foo
    $zcw->init(foo);
    if($zcrss->{error}){
        print "Error!\n";
    }

    #creates a new set with ZConf choosing its name
    $zcrss->init();
    if($zcrss->{error}){
        print "Error!\n";
    }



    listFeeds

This lists the available feeds.



   my @feeds=$zcrss->listFeeds();
   if($zcrss->{error}){
       print "Error!\n";
   }



    listSets

This lists the available sets.



    my @sets=$zcrss->listSets;
    if($zcrss->{error}){
        print "Error!";
    }



    listTemplates

This gets a list of available templates.



    my @templates=$zcrss->listTemplates;
    if($zcrss->{error}){
        print "Error!\n";
    }



    readSet

This reads a specific set. If the set specified is undef, the default set is read.



    #read the default set
    $zcrss->readSet();
    if($zcrss->{error}){
        print "Error!\n";
    }

    #read the set someSet
    $zcrss->readSet(someSet);
    if($zcrss->{error}){
        print "Error!\n";
    }



    setFeed

This adds a new feed or modifies a existing one.

One arguement is taken and it is a hash.

hash args

feed

This the feed to be added.

name

This is the name to use for it.

topTemplate

This is the name of the top template to use.

itemTemplate

This is the name of the template that will be used for each item.

bottomTemplate

This is the name of the bottom template to use.



    $zcrss->setFeed({
                    feed=>http://foo.bar/rss.xml,
                    name=>Foo Bar,
                    topTemplate=>defaultTop,
                    itemTemplate=>defaultItem,
                    bottomTemplate=>defaultBottom,
                    });
    if($zrss->{error}){
        print "Error!\n";
    }



    setTemplate

This sets a specified template to the given value.



    $zcrss->setTemplate($templateName, $template);
    if ($zcw->{error}) {
        print "Error!\n";
    }



    templateExists

This makes sure a specified template exists.



    my $returned=$zcrss->templateExists(someTemplate);
    if($zcw->{error}){
        print "Error!\n";
    }else{
        if($returned){
            print "It exists.\n";
        }
    }



    errorblank

This blanks the error storage and is only meant for internal usage.

It does the following.



    $self->{error}=undef;
    $self->{errorString}="";



TEMPLATE VARIABLES

The templating system used is ’Text::NeatTemplate’. The varialbes are as below.

    CHANNEL

ctitle

This is the title for the channel.

cdesc

This is the description for the channel.

cpubdate

This is the publication date for the channel.

ccopyright

This is the copyright info for the channel.

clink

This is the link for the channel.

clang

This is the language for the channel.

cimage

This is the image for the channel.

    ITEM

ititle

This is the title for a item.

idesc

This is the description for a item.

idescFTWL

This is the description for a item that has been has been formated with ’HTML::FormatText::WithLinks’

ipubdate

This is the date published for a item.

icat

This is the category for a item.

iauthor

This is the author for a item.

iguid

This is the item’s guid element.

ilink

This is the link for a item.

DEFAULT TEMPLATES

    defaultTop



    Channel: {$ctitle}
    Date: {$cpubdate}
    Language: {$clang}
    Copywright: {$ccopyright}
    Link: {$clink}
   
    {$cdesc}



    defaultItem



    --------------------------------------------------------------------------------
    Title: {$ititle}
    Date: {$ipubdate}
    Author: {$iauthor}
    Category: {$icat}
    Link: {$ilink}
   
    {$idescFTWL}



    defaultBottom

This one is blank by default.

ERROR CODES

    1

Could not initialize ZConf.

    2

ZConf error.

    3

Missing required arguement.

    4

Feed name can’t match /\//.

    5

Feed does not exist.

    6

Feed not defined.

    7

Failed to load feed.

AUTHOR

Zane C. Bowers, <vvelox at vvelox.net>

BUGS

Please report any bugs or feature requests to bug-zconf-rss at rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ZConf-RSS>. I will be notified, and then you’ll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.



    perldoc ZConf::RSS



You can also look for information at:
o RT: CPAN’s request tracker

<http://rt.cpan.org/NoAuth/Bugs.html?Dist=ZConf-RSS>

o AnnoCPAN: Annotated CPAN documentation

<http://annocpan.org/dist/ZConf-RSS>

o CPAN Ratings

<http://cpanratings.perl.org/d/ZConf-RSS>

o Search CPAN

<http://search.cpan.org/dist/ZConf-RSS>

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2009 Zane C. Bowers, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ZCONF::RSS (3) 2009-11-08

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.