Ejemplo n.º 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;
     }
 }
Ejemplo n.º 2
0
 /**
  * Return a reference to the JPathway object.
  *
  * @param   string    $name        The name of the application.
  * @param   array     $options     An optional associative array of configuration settings.
  *
  * @return  object JPathway.
  * @since   1.5
  */
 public function getPathway($name = null, $options = array())
 {
     $options = array();
     $pathway = parent::getPathway('site', $options);
     return $pathway;
 }
Ejemplo n.º 3
0
	/**
	 * Return a reference to the JPathway object.
	 *
	 * @access public
	 * @return object JPathway.
	 * @since 1.5
	 */
	function &getPathWay()
	{
		$options = array();
		$pathway =& parent::getPathway('site', $options);
		return $pathway;
	}