本文整理汇总了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;
}