StatisticsForm.php 436 B

1234567891011121314151617181920
  1. <?php
  2. class StatisticsForm extends CFormModel{
  3. public $beginDate;
  4. public $endDate;
  5. public function rules(){
  6. return array(
  7. array(' beginDate, endDate', 'required'),
  8. array('beginDate, endDate', 'type', 'dateFormat'=>'yyyyMMdd', 'type'=>'date', 'message'=>'{attribute}格式错误!'),
  9. );
  10. }
  11. public function attributeLabels(){
  12. return array(
  13. 'beginDate' => '起始时间 ',
  14. 'endDate' => '截止时间',
  15. );
  16. }
  17. }