本文整理匯總了PHP中JApplication::getPathway方法的典型用法代碼示例。如果您正苦於以下問題:PHP JApplication::getPathway方法的具體用法?PHP JApplication::getPathway怎麽用?PHP JApplication::getPathway使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類JApplication
的用法示例。
在下文中一共展示了JApplication::getPathway方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: appendPathWay
/**
* 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;
}
}
示例2: getPathway
/**
* 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;
}
示例3: array
/**
* 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;
}