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