Location: PHPKode > projects > blog > blog/blog_class.php
<?php
/**
 *
 * @filesource
 * @copyright		Copyright 2008-2009, lesorb, Inc.
 * @link			http://www.lesorb.cn Blog Project
 * @package			app
 * @subpackage		app.models
 * @version			$Revision: 7296 $
 * @author			WangLiJun
 * @lastmodified	$2009-5-5$
 */
/**
 * BlogClass 模型类
 *
 * 商户博客(日志)模型类,主要用于 blog_classes table 操作
 */
class BlogClass extends AppModel {

	/**
	 * 模型名:BlogClass
	 *
	 * @var string
	 * @access public
	 */
	var $name = 'BlogClass';

	/**
	 * 使用的数据表:blog_classes
	 *
	 * @var string
	 * @access public
	 */
	var $useTable = 'blog_classes';

	/**
	 * BlogClass 模型验证规则
	 *
	 * @var array
	 * @access public
	 */
	var $validate = array(
		'name'=>array(
			'notEmpty' => array(
				'rule' => VALID_NOT_EMPTY,
				'message' => '请您输入正确的日志类别'
				),
			'notBlank' => array(
				'rule' => '/[^\\s]/',
				'message' => '请您输入正确的日志类别'
				)
			)
	);
}
?>
Return current item: blog