<?php
class mx_article extends spModel{
    var $pk="ar_id";
    var $table="mxszpt_article";
    
     var $verifier_aradd=array(
         "rules"=>array(
            'ar_title'=>array(
               'notnull'=>TRUE,
               'minlength'=>2,
               'maxlength'=>50,
            ),
            'ar_contents'=>array(
                'notnull'=>TRUE,
                'minlength'=>2,
                'maxlength'=>100000,
            ),
         ),
         
         "messages"=>array(
            'ar_title'=>array(
               'notnull'=>"标题不能为空！",
               'minlength'=>"标题最小不能少于1个汉字",
               'maxlength'=>"标题最大不能超过25个汉字"
            ),
             'ar_contents'=>array(
               'notnull'=>"内容不能为空！",
               'minlength'=>"内容最小不能少于1个汉字",
               'maxlength'=>"内容最大不能超过5万个汉字",
             ),
         ),
    );
    
}
?>