Availability
$WBGETATOM is available for use with all WBSP commands.
Syntax
$WBGETATOM{URL|ArrName|limit|show}
$WBGETATOM[URL|ArrName|limit|show]
Parameters
URL - The Internet address of the Atom
feed you want to include in your page. It can be either absolute
(containing entire address including protocol, server, path and resource) or
relative (to document root of virtual server if it starts with slash /
character, or to the directory where the WBSP file is located).
ArrName - name that will be used as prefix for all variables
where Atom feed content will be stored.
limit - optional parameter.
Contains the number of items to be included in arrays
show - optional
parameter - if set to true (T,ON,1) WhizBase will show the last index
(length-1) of resulting array
Returns
Set of five (5) arrays:
ArrName_title() - containing values of all
<title> nodes
ArrName_summary() - containing values of all <summary>
nodes
ArrName_updated() - containing
values of all
<updated> nodes
ArrName_content() - containing values of all
<content> nodes
ArrName_link - set of four (4) sub
arrays:
ArrName_link_replies() - containing values of all <link>
nodes with rel atribute set to "replies"
ArrName_link_edit() - containing
values of all <link> nodes with rel atribute set to
"edit"
ArrName_link_self() - containing values of all <link> nodes
with rel atribute set to "self" or empty ("")
ArrName_link_alternate() -
containing values of all <link> nodes with rel atribute set to
"alternate"
Example
After running this example (retrieving posts from blog.whizbase.com), the resulting page in browser may look like this: