<?php
/*========================================================*\
||########################################################||
||# #||
||# WB News v1.0.0 #||
||# ---------------------------------------------------- #||
||# Copyright (c) 2004-2005 #||
||# Created: 14th September 2005 #||
||# Filename: archive.php #||
||# #||
||########################################################||
/*========================================================*/
/**
* @author $Author: pmcilwaine $
* @version $Id: archive.php,v 1.2.2.2 2008/03/08 04:58:55 pmcilwaine Exp $
*/
require_once( "base/Archive.php" );
class newsArchive
{
var $_obj;
/**
* @param Array $_ news config variable
* @deprecated deprecated since version 2.0
*/
function newsArchive( $a )
{
$this->_obj = new Archive();
}
/**
* Displays a list of months that have posts
* @param $limit The number of months to be listed
* @deprecated deprecated since version 2.0
*/
function archiveList($limit = NULL)
{
return $this->_obj->GetArchive( $limit );
}
function displayNewsArticles()
{
return $this->_obj->DisplayNewsArchive();
}
/**
* @since 1.2
* @deprecated deprecated since version 2.0
* @see News
*/
function pagination()
{
$type = func_num_args() == 1 ? func_get_arg(0) : NULL;
$this->_obj->pagination( $type );
}
}
return;
?>