protected function getPageImageUrl($text, $commandName) { switch ($commandName) { case self::CMD_PAGE: $url = $this->getNumericPageImageUrl(); return str_replace('{0}', $text, $url); case self::CMD_PAGE_NEXT: return $this->getNextPageImageUrl(); case self::CMD_PAGE_PREV: return $this->getPrevPageImageUrl(); case self::CMD_PAGE_FIRST: return $this->getFirstPageImageUrl(); case self::CMD_PAGE_LAST: return $this->getLastPageImageUrl(); default: return ''; } }