| @@ 778-792 (lines=15) @@ | ||
| 775 | /** |
|
| 776 | * @return string A string representation of all of the currently set refinements. |
|
| 777 | */ |
|
| 778 | public function getRefinementString() |
|
| 779 | { |
|
| 780 | if (!empty($this->navigations)) { |
|
| 781 | $builder = new StringBuilder(); |
|
| 782 | foreach ($this->navigations as $n) { |
|
| 783 | foreach ($n->getRefinements() as $r) { |
|
| 784 | $builder->append(Symbol::TILDE)->append($n->getName())->append($r->toTildeString()); |
|
| 785 | } |
|
| 786 | } |
|
| 787 | if ($builder->length() > 0) { |
|
| 788 | return $builder->__toString(); |
|
| 789 | } |
|
| 790 | } |
|
| 791 | return null; |
|
| 792 | } |
|
| 793 | ||
| 794 | /** |
|
| 795 | * @return string A string representation of all of the currently set custom url parameters. |
|
| @@ 797-809 (lines=13) @@ | ||
| 794 | /** |
|
| 795 | * @return string A string representation of all of the currently set custom url parameters. |
|
| 796 | */ |
|
| 797 | public function getCustomUrlParamsString() |
|
| 798 | { |
|
| 799 | if (!empty($this->customUrlParams)) { |
|
| 800 | $builder = new StringBuilder(); |
|
| 801 | foreach ($this->customUrlParams as $c) { |
|
| 802 | $builder->append(Symbol::TILDE)->append($c->getKey())->append(Symbol::EQUAL)->append($c->getValue()); |
|
| 803 | } |
|
| 804 | if ($builder->length() > 0) { |
|
| 805 | return $builder->__toString(); |
|
| 806 | } |
|
| 807 | } |
|
| 808 | return null; |
|
| 809 | } |
|
| 810 | ||
| 811 | /** |
|
| 812 | * @param MSort $sort |
|