| @@ 527-543 (lines=17) @@ | ||
| 524 | * |
|
| 525 | * @return array |
|
| 526 | */ |
|
| 527 | public function getSortConditions() |
|
| 528 | { |
|
| 529 | if (is_array($this->sortConditions)) { |
|
| 530 | return $this->sortConditions; |
|
| 531 | } |
|
| 532 | ||
| 533 | if ($this->isExport() === true && $this->getCacheSortConditions() !== false) { |
|
| 534 | // Export renderer should always retrieve the sort conditions from cache! |
|
| 535 | $this->sortConditions = $this->getCacheSortConditions(); |
|
| 536 | ||
| 537 | return $this->sortConditions; |
|
| 538 | } |
|
| 539 | ||
| 540 | $this->sortConditions = $this->getSortConditionsDefault(); |
|
| 541 | ||
| 542 | return $this->sortConditions; |
|
| 543 | } |
|
| 544 | ||
| 545 | /** |
|
| 546 | * Get the default sort conditions defined for the columns |
|
| @@ 593-609 (lines=17) @@ | ||
| 590 | * |
|
| 591 | * @return Filter[] |
|
| 592 | */ |
|
| 593 | public function getFilters() |
|
| 594 | { |
|
| 595 | if (is_array($this->filters)) { |
|
| 596 | return $this->filters; |
|
| 597 | } |
|
| 598 | ||
| 599 | if ($this->isExport() === true && $this->getCacheFilters() !== false) { |
|
| 600 | // Export renderer should always retrieve the filters from cache! |
|
| 601 | $this->filters = $this->getCacheFilters(); |
|
| 602 | ||
| 603 | return $this->filters; |
|
| 604 | } |
|
| 605 | ||
| 606 | $this->filters = $this->getFiltersDefault(); |
|
| 607 | ||
| 608 | return $this->filters; |
|
| 609 | } |
|
| 610 | ||
| 611 | /** |
|
| 612 | * Get the default filter conditions defined for the columns |
|