/** * Returns HTML link to display a pigeonhole * @param $pTitle is the pigeonhole we want to see * @param $pContentId content id of the pigeonhole in question * @return the link to display the page. */ function getDisplayLink($pLinkText = NULL, $pMixed = NULL, $pAnchor = NULL) { global $gBitSystem; if (empty($pLinkText) && !empty($this)) { $ppLinkText = $this->getTitle(); } if (empty($pMixed) && !empty($this)) { $pMixed = $this->mInfo; } $ret = $pLinkText; if (!empty($pLinkText) && !empty($pMixed)) { if ($gBitSystem->isPackageActive('pigeonholes')) { $ret = '<a title="' . htmlspecialchars($pLinkText) . '" href="' . Pigeonholes::getDisplayUrlFromHash($pMixed) . '">' . htmlspecialchars($pLinkText) . '</a>'; } } return $ret; }