@@ 748-762 (lines=15) @@ | ||
745 | /** |
|
746 | * @return string A string representation of all of the currently set refinements. |
|
747 | */ |
|
748 | public function getRefinementString() |
|
749 | { |
|
750 | if (!empty($this->navigations)) { |
|
751 | $builder = new StringBuilder(); |
|
752 | foreach ($this->navigations as $n) { |
|
753 | foreach ($n->getRefinements() as $r) { |
|
754 | $builder->append(Symbol::TILDE)->append($n->getName())->append($r->toTildeString()); |
|
755 | } |
|
756 | } |
|
757 | if ($builder->length() > 0) { |
|
758 | return $builder->__toString(); |
|
759 | } |
|
760 | } |
|
761 | return null; |
|
762 | } |
|
763 | ||
764 | /** |
|
765 | * @return string A string representation of all of the currently set custom url parameters. |
|
@@ 767-779 (lines=13) @@ | ||
764 | /** |
|
765 | * @return string A string representation of all of the currently set custom url parameters. |
|
766 | */ |
|
767 | public function getCustomUrlParamsString() |
|
768 | { |
|
769 | if (!empty($this->customUrlParams)) { |
|
770 | $builder = new StringBuilder(); |
|
771 | foreach ($this->customUrlParams as $c) { |
|
772 | $builder->append(Symbol::TILDE)->append($c->getKey())->append(Symbol::EQUAL)->append($c->getValue()); |
|
773 | } |
|
774 | if ($builder->length() > 0) { |
|
775 | return $builder->__toString(); |
|
776 | } |
|
777 | } |
|
778 | return null; |
|
779 | } |
|
780 | ||
781 | /** |
|
782 | * @param MSort $sort |