NAME
Babble::Document::Collection - Babble document collector class
DESCRIPTION
Babble::Document::Collection is a meta-class. One, that's sole purpose is to collect Babble::Document objects, and group them together with a little meta-info about them.
PROPERTIES
-
The author of this collection
- subject
-
The subject of the collection.
- title
-
The title of the collection.
- id
-
A unique ID for the collection, usually a hyperlink to the source homepage.
- link
-
A link to the source of this collection (for example, to an RSS feed).
- date
-
The creation date of this version of the collection.
- content
-
A brief description of the collection
METHODS
new()
Creates a new, empty Babble::Document::Collection object. All the properties mentioned above are recognised as paramaters.
To add documents to the collection, simply push them to @{$collection->{documents}}
.
search()
Given a list of filters (see Babble::Document::search for a specification of filters), returns all the documents that match the specified criteria. If no matches are found, returns an empty array.
all()
Return all entries (the lowest level entries) as an array.
sort()
Sort all the elements in an aggregation by date, and return the sorted array of items.
AUTHOR
Gergely Nagy, algernon@bonehunter.rulez.org
Bugs should be reported at http://bugs.bonehunter.rulez.org/babble.
SEE ALSO
Babble, Babble::Document
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 74:
You can't have =items (as at line 80) unless the first thing after the =over is an =item