Example #1
0
 /**
  * Appends $title with $link to the Pathway display of the page
  *
  * @param  string       $title  Title
  * @param  string|null  $link   [optional] URL of link of Title
  * @return boolean              True on success
  */
 function appendPathWay($title, $link = null)
 {
     if (method_exists($this->_baseFramework, 'appendPathWay')) {
         if (checkJversion() >= 1) {
             return $this->_baseFramework->appendPathWay($title, $link);
         } else {
             // don't process link, as some version do htmlspecialchar those:
             // if ( $link ) {
             //	$title	=	'<a href="' . $link . '">' . $title . '</a>';
             // }
             return $this->_baseFramework->appendPathWay($title);
         }
     } elseif (method_exists($this->_baseFramework, 'getPathway')) {
         return $this->_baseFramework->getPathway()->addItem($title, $link);
     } else {
         return false;
     }
 }