{$element['item']['text']}
EOD; $this->items[] = $item; } } } public function getURI(){ switch($this->queriedContext){ case 'By username and board': $uri = self::URI . urlencode($this->getInput('u')) . '/' . urlencode($this->getInput('b')); break; case 'From search': $uri = self::URI . 'search/?q=' . urlencode($this->getInput('q')); break; default: return parent::getURI(); } return $uri; } public function getName(){ switch($this->queriedContext){ case 'By username and board': $specific = $this->getInput('u') . '-' . $this->getInput('b'); break; case 'From search': $specific = $this->getInput('q'); break; default: return parent::getName(); } return $specific . ' - ' . self::NAME; } }