本文整理汇总了PHP中Fisharebest\Webtrees\Module::getActiveTabs方法的典型用法代码示例。如果您正苦于以下问题:PHP Module::getActiveTabs方法的具体用法?PHP Module::getActiveTabs怎么用?PHP Module::getActiveTabs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fisharebest\Webtrees\Module
的用法示例。
在下文中一共展示了Module::getActiveTabs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Startup activity
*/
public function __construct($record)
{
parent::__construct($record);
// If we can display the details, add them to the page header
if ($this->record && $this->record->canShow()) {
$this->setPageTitle($this->record->getFullName() . ' ' . $this->record->getLifespan());
$this->tabs = Module::getActiveTabs($this->record->getTree());
}
}
示例2: __construct
/**
* Startup activity
*/
public function __construct()
{
global $WT_TREE;
$xref = Filter::get('pid', WT_REGEX_XREF);
$this->record = Individual::getInstance($xref, $WT_TREE);
if (!$this->record && $WT_TREE->getPreference('USE_RIN')) {
$rin = FunctionsDb::findRin($xref);
$this->record = Individual::getInstance($rin, $WT_TREE);
}
parent::__construct();
// If we can display the details, add them to the page header
if ($this->record && $this->record->canShow()) {
$this->setPageTitle($this->record->getFullName() . ' ' . $this->record->getLifespan());
$this->tabs = Module::getActiveTabs($this->record->getTree());
}
}