* extra content
*
* @param $linkText Link text to set in link
+ * @param $linkTitle Link title to set in link
* @param $extraContent Optional extra HTML content
* @return $linkContent Rendered text link content
*/
- private function renderLinkContentWithTextExtraContent ($linkText, $extraContent="") {
+ private function renderLinkContentWithTextExtraContent ($linkText, $linkTitle, $extraContent="") {
// Construct link content
$linkContent = sprintf("<a href=\"%s%s\" title=\"%s\">%s</a>",
$this->getLinkBase(),
$extraContent,
- $linkText,
+ $linkTitle,
$linkText
);
* @return void
* @throws NoGroupOpenedException If no previous group was opened
*/
- public function addActionLink ($linkAction, $linkText) {
+ public function addActionLink ($linkAction, $linkText, $linkTitle) {
// Check if a previous group was opened
if ($this->ifGroupOpenedPreviously() === false) {
// No group was opened before!
);
// Renders the link content
- $linkContent = $this->renderLinkContentWithTextExtraContent($linkText, $action);
+ $linkContent = $this->renderLinkContentWithTextExtraContent($linkText, $linkTitle, $action);
// Add the content to the previous group
$this->addContentToPreviousGroup($linkContent);
*/
public function addActionLinkById ($linkAction, $languageId) {
// Resolve the language string
- $languageResolved = $this->getLanguageInstance()->getMessage($languageId);
+ $languageResolvedText = $this->getLanguageInstance()->getMessage("link_" . $languageId . "_text");
+
+ // Resolve the language string
+ $languageResolvedTitle = $this->getLanguageInstance()->getMessage("link_" . $languageId . "_title");
// Add the action link
- $this->addActionLink($linkAction, $languageResolved);
+ $this->addActionLink($linkAction, $languageResolvedText, $languageResolvedTitle);
}
/**
*/
public function addLinkWithTextById ($languageId) {
// Resolve the language string
- $languageResolved = $this->getLanguageInstance()->getMessage($languageId);
+ $languageResolvedText = $this->getLanguageInstance()->getMessage("link_" . $languageId . "_text");
+
+ // Resolve the language string
+ $languageResolvedTitle = $this->getLanguageInstance()->getMessage("link_" . $languageId . "_title");
// Now add the link
- $linkContent = $this->renderLinkContentWithTextExtraContent($languageResolved);
+ $linkContent = $this->renderLinkContentWithTextExtraContent($languageResolvedText, $languageResolvedTitle);
// Add the content to the previous group
$this->addContentToPreviousGroup($linkContent);