<?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 CasesViewModel extends ViewModel{
	protected $viewFields = array(
		'Cases'=>array('id','category_id','subject','postdate','istop','ischecked','isgood','hits','address','material','designers_id','units','area','amount','completion_time','content','attachment','attachfolder','attachpath','attachthumb'),
		'Category'=>array('title','_on'=>'Cases.category_id=Category.id'),
		'Channel'=>array('folder','_on'=>'Category.channel_id=Channel.id'),
		'Model'=>array('address','_on'=>'Channel.model_id=Model.id'),
		'Designers'=>array('name','_on'=>'Cases.designers_id=Designers.id'),
		);
}
?>