<?php
//
// +----------------------------------------------------------------------+
// | 文章类 |
// +----------------------------------------------------------------------+
// | copyright (c) 2001 netfish software |
// | |
// | author: whxbb(whxbb@21cn.com) |
// +----------------------------------------------------------------------+
//
// $id: whxbb_article.class.php,v 0.1 2001/8/11 22:18:13 yf exp $
//
// 禁止直接访问该页面
if (basename($http_server_vars['php_self']) == "whxbb_article.class.php") {
header("http/1.0 404 not found");
}
/**
* 文章类
* purpose
* 封装对文章的各类操作
*
*
* @author : whxbb(whxbb@21cn.com)
* @version : 0.1
* @date : 2001/8/1
*/
class whxbb_article extends whxbb
{
/** 分页对象 */
var $pager;
function article()
{
$this->whxbb();
}
/**
* 文章写入数据库
* @param $title 文章标题
* @param $author 文章作者
* @param $content 文章内容
* @return 操作出错:一个whxbb_error对象 成功:true
* @access public
*/
function insert($title, $author, $content)
{
new whxbb_debug("insert() start");
// 处理传入的参数
whxbb::operatestring(&$title, 'in');
whxbb::operatestring(&$author, 'in');
wh
| 对此文章发表了评论 |
