| 1234567891011121314151617181920 |
- <?php
- class StatisticsForm extends CFormModel{
- public $beginDate;
- public $endDate;
- public function rules(){
- return array(
- array(' beginDate, endDate', 'required'),
- array('beginDate, endDate', 'type', 'dateFormat'=>'yyyyMMdd', 'type'=>'date', 'message'=>'{attribute}格式错误!'),
- );
- }
-
- public function attributeLabels(){
- return array(
- 'beginDate' => '起始时间 ',
- 'endDate' => '截止时间',
- );
- }
- }
|