SIOC::Item -- SIOC Item class
The initial template usually just has:
This documentation refers to SIOC::Item version 0.0.1.
use <Module::Name>; # Brief but working code example(s) here showing the most common usage(s) # This section will be as far as many users bother reading, so make it as # educational and exemplary as possible.
SIOC::Item is a high-level concept for content items. It has subclasses that further specify different types of Items. One of these subclasses (which plays an important role in SIOC) is SIOC::Post, used to describe articles or messages created within online community Sites. The SIOC Types Ontology Module describes additional, more specific subclasses of sioc:Item.
Items can be contained within Containers.
Details the date and time when a resource was created.
This attribute is required and must be set in the creation of a class instance with new().
This is the User who made this Item.
Details the date and time when a resource was modified.
A User who modified this Item.
The number of times this Item, Thread, User profile, etc. has been viewed.
Specifies that this Item is about a particular resource, e.g., a Post describing a book, hotel, etc.
The Container to which this Item belongs.
Links to Items or Posts which this Item or Post is a reply to.
Points to Items or Posts that are a reply or response to this Item or Post.
The IP address used when creating this Item. This can be associated with a creator. Some wiki articles list the IP addresses for the creator or modifiers when the usernames are absent.
Previous Item or Post in a given Container sorted by date.
Next Item or Post in a given Container sorted by date.
Links to a previous revision of this Item or Post.
Links to the next revision of this Item or Post.
Accessor for the attribute of the same name. Call without argument to read the current value of the attribute; sets attribute when called with new value as argument.
Adds a new value to the corresponding array attribute.
For diagnostics information, see the SIOC base class.
This module doesn't need configuration.
This module depends on the following modules:
Moose -- OOP framework (CPAN)
SIOC -- SIOC abstract base class (part of this module's distribution)
There are no known incompatibilities.
There are no known bugs in this module.
Please report problems via the bug tracking system on the perl-SIOC project website: http://developer.berlios.de/projects/perl-sioc/.
Patches are welcome.
Jochen Lillich <geewiz@cpan.org>
Copyright (c) 2008, Jochen Lillich <geewiz@cpan.org> All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
To install SIOC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SIOC
CPAN shell
perl -MCPAN -e shell install SIOC
For more information on module installation, please visit the detailed CPAN module installation guide.