<?php
/*
　* @$Id
　* @
　* @Ver: 2.0
　* @Create: 2009-11-18 8:10
　* @Modify: 
　* @Author: CPWEB http://www.cpweb.net.cn
　* @Copyright (C) 2008 www.cpweb.net.cn. All Rights Reserved.
　* @License CPWEB is free software and use is subject to license terms
　*/
class ArticleViewModel extends ViewModel{
	protected $viewFields = array(
		'Article'=>array('id','member_id','category_id','subject','color','postdate','hits','ischecked','istop','isgood','comefrom','link','message','content','attachment','attachfolder','attachpath','attachthumb'),
		'Category'=>array('title','_on'=>'Article.category_id=Category.id'),
		'Channel'=>array('folder','model_id','_on'=>'Category.channel_id=Channel.id'),
		'Model'=>array('address','_on'=>'Channel.model_id=Model.id'),
		'Member'=>array('username','_on'=>'Article.member_id=Member.id'),
		);
}
?>