|
@@ 786-797 (lines=12) @@
|
| 783 |
|
* @param string $column |
| 784 |
|
* @throws DataGridException |
| 785 |
|
*/ |
| 786 |
|
public function addFilterSelect($key, $name, $options, $column = NULL) |
| 787 |
|
{ |
| 788 |
|
$column = $column ?: $key; |
| 789 |
|
|
| 790 |
|
if (!is_string($column)) { |
| 791 |
|
throw new DataGridException("Filter Select can only filter through one column."); |
| 792 |
|
} |
| 793 |
|
|
| 794 |
|
$this->addFilterCheck($key); |
| 795 |
|
|
| 796 |
|
return $this->filters[$key] = new Filter\FilterSelect($key, $name, $options, $column); |
| 797 |
|
} |
| 798 |
|
|
| 799 |
|
|
| 800 |
|
/** |
|
@@ 828-839 (lines=12) @@
|
| 825 |
|
* @param string $column |
| 826 |
|
* @throws DataGridException |
| 827 |
|
*/ |
| 828 |
|
public function addFilterRange($key, $name, $column = NULL, $name_second = '-') |
| 829 |
|
{ |
| 830 |
|
$column = $column ?: $key; |
| 831 |
|
|
| 832 |
|
if (!is_string($column)) { |
| 833 |
|
throw new DataGridException("FilterRange can only filter through one column."); |
| 834 |
|
} |
| 835 |
|
|
| 836 |
|
$this->addFilterCheck($key); |
| 837 |
|
|
| 838 |
|
return $this->filters[$key] = new Filter\FilterRange($key, $name, $column, $name_second); |
| 839 |
|
} |
| 840 |
|
|
| 841 |
|
|
| 842 |
|
/** |
|
@@ 849-860 (lines=12) @@
|
| 846 |
|
* @param string $column |
| 847 |
|
* @throws DataGridException |
| 848 |
|
*/ |
| 849 |
|
public function addFilterDateRange($key, $name, $column = NULL, $name_second = '-') |
| 850 |
|
{ |
| 851 |
|
$column = $column ?: $key; |
| 852 |
|
|
| 853 |
|
if (!is_string($column)) { |
| 854 |
|
throw new DataGridException("FilterDateRange can only filter through one column."); |
| 855 |
|
} |
| 856 |
|
|
| 857 |
|
$this->addFilterCheck($key); |
| 858 |
|
|
| 859 |
|
return $this->filters[$key] = new Filter\FilterDateRange($key, $name, $column, $name_second); |
| 860 |
|
} |
| 861 |
|
|
| 862 |
|
|
| 863 |
|
/** |