<?php
class GuestbookModel extends BcModel{	 
	    protected $_validate  = array(
			    array('email','require','ÇëÌîÐ´ÄúµÄÓÊÏä!'),
                array('email','email','ÓÊÏä¸ñÊ½´íÎó£¡'), 
				
               );
         
		protected $_auto=array(
		             array('status','1'),  
		             array('inputtime','time',1,'function'),
		             array('content','content',1,'callback'),
					 array('url','geturl',1,'callback'),				
		             array ('inputtime','time',1,'function'),
			         array('path','path',3,'callback'),	
					 array('username','getusername',3,'callback'),				       
	               );
				
		/* ÁôÑÔ×ÜÊý*/
	function Gknum() {
		return $this->field('id')->count();
	}
	
}
?>