本文整理汇总了PHP中Navigation::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Navigation::__construct方法的具体用法?PHP Navigation::__construct怎么用?PHP Navigation::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Navigation
的用法示例。
在下文中一共展示了Navigation::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Initialize a new Navigation instance.
*/
public function __construct()
{
global $perm;
parent::__construct(_('Planer'));
if (!$perm->have_perm('admin') && get_config('SCHEDULE_ENABLE')) {
$planerinfo = _('Stundenplan');
} else {
$planerinfo = _('Termine');
}
$this->setImage(Icon::create('schedule', 'navigation', ["title" => $planerinfo]));
}
示例2: __construct
/**
* Initialize a new Navigation instance.
*/
public function __construct()
{
global $user, $perm;
// check if logged in
if (is_object($user) && $user->id != 'nobody') {
$coursetext = _('Veranstaltungen');
$courseinfo = _('Meine Veranstaltungen & Einrichtungen');
$courselink = 'dispatch.php/my_courses';
} else {
$coursetext = _('Freie');
$courseinfo = _('Freie Veranstaltungen');
$courselink = 'dispatch.php/public_courses';
}
parent::__construct($coursetext, $courselink);
if (is_object($user)) {
$this->setImage(Icon::create('seminar', 'navigation', ["title" => $courseinfo]));
}
}
示例3: __construct
/**
* Initialize a new Navigation instance.
*/
public function __construct()
{
parent::__construct(_('Suche'));
$this->setImage(Icon::create('search', 'navigation', ["title" => _('Suche')]));
}
示例4: __construct
/**
* Initialize a new Navigation instance.
*/
public function __construct()
{
parent::__construct(_('Nachrichten'));
}
示例5: __construct
public function __construct()
{
parent::__construct(_('Community'));
}
示例6: __construct
/**
* Initialize a new Navigation instance.
*/
public function __construct()
{
$url = is_object($GLOBALS['user']) && $GLOBALS['user']->id != 'nobody' ? 'dispatch.php/start' : 'index.php';
parent::__construct(_('Start'), $url);
}