Chirpy!

Latest Version: 0.3
Released: 2007-02-09

Chirpy! 0.3 API Documentation

<<
Chirpy::NewsItem

NAME

Chirpy::NewsItem - Represents a news item

SYNOPSIS

 $item = new Chirpy::NewsItem($id, $body, $poster, $date);

 $id = $item->get_id();
 $item->set_id($id);

 $body = $item->get_body();
 $item->set_body($body);

 $poster = $item->get_poster();
 $item->set_poster($poster);

 $date = $item->get_date();
 $item->set_date($date);

CONSTRAINTS

ID

The news item ID must be a positive non-zero integer.

Body

The news item body can be any text string.

Poster

The poster of the news item must be an instance of Chirpy::Account, if any.

Date

The date when the news item was posted must be a UNIX timestamp.

AUTHOR

Tim De Pauw <ceetee@users.sourceforge.net>

SEE ALSO

Chirpy, http://chirpy.sourceforge.net/

COPYRIGHT

Copyright 2005-2007 Tim De Pauw. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.