{$element['item']['text']}
+EOD; - 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; - } + $this->items[] = $item; + } + } + } - return $uri; - } + 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; + } + 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; - } - return $specific .' - '.self::NAME; - } + 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; + } + return $specific . ' - ' . self::NAME; + } }