<?php
/**
 * 表模型 nav 
 * @copyright reginx.com
 * @Created By Reginx tab tool
 */
class nav_tab extends tab {
	
    /**
     * 验证规则
     *
     * @var unknown_type
     */
    public $validate = array(
        array(
            'key'       => 'name',
            'type'      => 0,
            'rule'      => 'require',
            'msg'       => '请输入名称!'
        ),
        array(
            'key'       => 'url',
            'type'      => 0,
            'rule'      => 'require',
            'msg'       => '请输入地址!'
        )
    );
    
    /**
     * 字段过滤规则
     *
     * @var unknown_type
     */
    public $filter = array(
        'name'      =>    array('filter' , 'text'),
        'url'       =>    array('filter' , 'text'),
        'ctype'     =>    'intval',
        'sort'      =>    'intval',
        'parent'    =>    'intval',
        'target'    =>    'intval'
    );
    
    /**
     * 默认值
     *
     * @var unknown_type
     */
    public $default = array(
        'ctype'     => 0,
        'sort'      => 0,
        'parent'	=> 0,
        'target'	=> 0
    );
	
}
?>