当前位置: 首页>>代码示例>>PHP>>正文


PHP User::isThisGuest方法代码示例

本文整理汇总了PHP中thebuggenie\core\entities\User::isThisGuest方法的典型用法代码示例。如果您正苦于以下问题:PHP User::isThisGuest方法的具体用法?PHP User::isThisGuest怎么用?PHP User::isThisGuest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在thebuggenie\core\entities\User的用法示例。


在下文中一共展示了User::isThisGuest方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

    $tbg_response->addFeed(make_url('project_open_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')), __('Open issues for %project_name', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName())));
    $tbg_response->addFeed(make_url('project_allopen_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')), __('Open issues for %project_name (including subprojects)', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName())));
    $tbg_response->addFeed(make_url('project_closed_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')), __('Closed issues for %project_name', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName())));
    $tbg_response->addFeed(make_url('project_allclosed_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')), __('Closed issues for %project_name (including subprojects)', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName())));
    $tbg_response->addFeed(make_url('project_wishlist_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')), __('Wishlist for %project_name', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName())));
    $tbg_response->addFeed(make_url('project_milestone_todo_list', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')), __('Milestone todo-list for %project_name', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName())));
    $tbg_response->addFeed(make_url('project_month_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')), __('Issues reported for %project_name this month', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName())));
    $tbg_response->addFeed(make_url('project_last_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss', 'units' => 30, 'time_unit' => 'days')), __('Issues reported for %project_name last 30 days', array('%project_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getName())));
    if (!\thebuggenie\core\entities\User::isThisGuest()) {
        $tbg_response->addFeed(make_url('project_my_reported_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')), __('Issues reported by me') . ' (' . \thebuggenie\core\framework\Context::getCurrentProject()->getName() . ')');
        $tbg_response->addFeed(make_url('project_my_assigned_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')), __('Open issues assigned to me') . ' (' . \thebuggenie\core\framework\Context::getCurrentProject()->getName() . ')');
        $tbg_response->addFeed(make_url('project_my_teams_assigned_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')), __('Open issues assigned to my teams') . ' (' . \thebuggenie\core\framework\Context::getCurrentProject()->getName() . ')');
    }
} else {
    $tbg_response->addBreadcrumb(__('Issues'), make_url('search'), tbg_get_breadcrumblinks('main_links'));
    if (!\thebuggenie\core\entities\User::isThisGuest()) {
        $tbg_response->addFeed(make_url('my_reported_issues', array('format' => 'rss')), __('Issues reported by me'));
        $tbg_response->addFeed(make_url('my_assigned_issues', array('format' => 'rss')), __('Open issues assigned to you'));
        $tbg_response->addFeed(make_url('my_teams_assigned_issues', array('format' => 'rss')), __('Open issues assigned to your teams'));
    }
}
?>
<table style="width: 100%; height: 100;" cellpadding="0" cellspacing="0">
    <tr>
        <?php 
include_component('search/sidebar', array('hide' => $show_results && $resultcount));
?>
        <td id="find_issues">
            <?php 
if ($search_error !== null) {
    ?>
开发者ID:shoreless-Limited,项目名称:thebuggenie,代码行数:31,代码来源:findissues.html.php

示例2: make_url

</li>
        <?php 
if (\thebuggenie\core\framework\Context::getScope()->isDefault()) {
    ?>
            <li><a href="javascript:void(0);" onclick="TBG.Main.Helpers.Backdrop.show('<?php 
    echo make_url('get_partial_for_backdrop', array('key' => 'userscopes', 'user_id' => $user->getID()));
    ?>
');"><?php 
    echo __('Edit available scopes for this user');
    ?>
</a></li>
        <?php 
}
?>
        <?php 
if (\thebuggenie\core\entities\User::isThisGuest() == false && $user->getID() != $tbg_user->getID()) {
    ?>
            <li style="<?php 
    if ($tbg_user->isFriend($user)) {
        ?>
 display: none;<?php 
    }
    ?>
" id="add_friend_<?php 
    echo $user->getID();
    ?>
_12">
                <?php 
    echo javascript_link_tag(__('Become friends'), array('onclick' => "TBG.Main.Profile.addFriend('" . make_url('toggle_friend', array('mode' => 'add', 'user_id' => $user->getID())) . "', {$user->getID()}, 12);"));
    ?>
            </li>
开发者ID:pkdevboxy,项目名称:thebuggenie,代码行数:31,代码来源:_finduser_row.inc.php

示例3: tbg_get_userstate_image

                    <div class="user_status"><?php 
    echo tbg_get_userstate_image($user) . __($user->getState()->getName());
    ?>
</div>
                    <?php 
    if ($user->isEmailPublic() || $tbg_user->canAccessConfigurationPage(\thebuggenie\core\framework\Settings::CONFIGURATION_SECTION_USERS)) {
        ?>
                        <div class="user_email"><?php 
        echo link_tag('mailto:' . $user->getEmail(), $user->getEmail());
        ?>
</div>
                    <?php 
    }
    ?>
                    <?php 
    if (\thebuggenie\core\entities\User::isThisGuest() == false) {
        ?>
                        <div id="friends_message_<?php 
        echo $user->getUsername() . '_' . $rnd_no;
        ?>
" style="padding: 10px 0 0 0; font-size: 0.75em;"></div>
                        <?php 
        if ($user->getID() != \thebuggenie\core\framework\Context::getUser()->getID() && !\thebuggenie\core\framework\Context::getUser()->isFriend($user) && !$user->isGuest()) {
            ?>
                            <div id="friends_link_<?php 
            echo $user->getUsername() . '_' . $rnd_no;
            ?>
" class="friends_link">
                        <span style="padding: 2px; <?php 
            if (\thebuggenie\core\framework\Context::getUser()->isFriend($user)) {
                ?>
开发者ID:pkdevboxy,项目名称:thebuggenie,代码行数:31,代码来源:_usercard.inc.php


注:本文中的thebuggenie\core\entities\User::isThisGuest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。