Web::DOM::AtomFeedElement
DOM AtomFeedElement
object
DESCRIPTION
The Web::DOM::AtomFeedElement
class implements the DOM AtomFeedElement
interface.
The class is used by the Atom feed
element.
METHODS
In addition to the methods for classes Web::DOM::Element and Web::DOM::AtomElement, following methods are available:
$entry = $el->add_new_entry ($id, $title, $lang)
-
Create a new entry element with specified
atom:id
,atom:title
, andxml:lang
values and return the element. [ATOMDOM] $string = $el->atom_id
$el->atom_id ($string)
-
Return or set the value of the
atom:id
child element. [ATOMDOM] -
Return a Web::DOM::HTMLCollection containing the
atom:author
element childs. [ATOMDOM] $col = $el->category_elements
-
Return a Web::DOM::HTMLCollection containing the
atom:category
element childs. [ATOMDOM] $col = $el->contributor_elements
-
Return a Web::DOM::HTMLCollection containing the
atom:contributor
element childs. [ATOMDOM] $col = $el->entry_elements
-
Return a Web::DOM::HTMLCollection containing the
atom:entry
element childs. [ATOMDOM] $el2 = $el->generator_element
-
Return the
atom:generator
element child, if any. [ATOMDOM]If the
manakai-create-child-element
configuration parameter is set to true and there is noatom:generator
element child, a new element is created and returned. Otherwise, no element is created andundef
is returned. $el2 = $el->get_entry_element_by_id ($id)
-
Return the
atom:entry
child element whoseatom:id
is equal to the argument. [ATOMDOM] $url = $el->icon
$el->icon ($url)
-
Return or set the value of the
atom:icon
child element. The method returns the resoloved absolute URL if the value is a relative URL. [ATOMDOM] $col = $el->link_elements
-
Return a Web::DOM::HTMLCollection containing the
atom:link
element childs. [ATOMDOM] $url = $el->logo
$el->logo ($url)
-
Return or set the value of the
atom:logo
child element. The method returns the resoloved absolute URL if the value is a relative URL. [ATOMDOM] $el2 = $el->rights_element
-
Return the
atom:rights
element child, if any. [ATOMDOM]If the
manakai-create-child-element
configuration parameter is set to true and there is noatom:rights
element child, a new element is created and returned. Otherwise, no element is created andundef
is returned. $el2 = $el->subtitle_element
-
Return the
atom:subtitle
element child, if any. [ATOMDOM]If the
manakai-create-child-element
configuration parameter is set to true and there is noatom:subtitle
element child, a new element is created and returned. Otherwise, no element is created andundef
is returned. $el2 = $el->title_element
-
Return the
atom:title
element child, if any. [ATOMDOM]If the
manakai-create-child-element
configuration parameter is set to true and there is noatom:title
element child, a new element is created and returned. Otherwise, no element is created andundef
is returned. $el2 = $el->updated_element
-
Return the
atom:updated
element child, if any. [ATOMDOM]If the
manakai-create-child-element
configuration parameter is set to true and there is noatom:updated
element child, a new element is created and returned. Otherwise, no element is created andundef
is returned.See also "DEPENDENCY" in Web::DOM.
DEPENDENCY
For the updated_element
method,
the perl-web-datetime package <https://github.com/manakai/perl-web-datetime>
is required.
SPECIFICATION
- ATOMDOM
-
Atom DOM
<http://suika.suikawiki.org/www/markup/xml/atomdom>
.
SEE ALSO
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013-2014 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.