Date.php 412 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Dcat\Admin\Grid\Filter;
  3. class Date extends AbstractFilter
  4. {
  5. /**
  6. * {@inheritdoc}
  7. */
  8. protected $query = 'whereDate';
  9. /**
  10. * @var string
  11. */
  12. protected $fieldName = 'date';
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public function __construct($column, $label = '')
  17. {
  18. parent::__construct($column, $label);
  19. $this->{$this->fieldName}();
  20. }
  21. }