Update of /cvsroot/openbash-org/openbash-org/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16481
Added Files:
News.php
Log Message:
-Esqueleto preliminar de la clase News, para mostrar las noticias
en la portada.
--- NEW FILE: News.php ---
<?php /* vim: set sts=2 ts=8 sw=2 noexpandtab: */
class News {
var $id;
var $author;
var $datetime;
var $title;
var $body;
/*
* The constructor
*/
function News($n_id, $n_author, $n_datetime, $n_title, $n_body) {
$this->id = $n_id;
$this->author = $n_author;
$this->datetime = $n_datetime;
$this->title = $n_title;
$this->body = $n_body;
}
/*
* Displays the news in a fancy way
*/
function echoNews () {
?>
<div class="news">
<?php
}
?>
|