Beispiel #1
0
 public function getMentionedUsers()
 {
     $users = array();
     if ($this->hasMentions()) {
         foreach ($this->getMentions() as $user) {
             $users[$user->getID()] = $user;
         }
     }
     foreach (Comment::getComments($this->getID(), Comment::TYPE_ARTICLE) as $comment) {
         foreach ($comment->getMentions() as $user) {
             $users[$user->getID()] = $user;
         }
     }
     return $users;
 }
        ?>
","<?php 
        echo $issue->getVotes();
        ?>
","<?php 
        echo str_replace('"', '\\"', html_entity_decode($issue->getDescription(), ENT_QUOTES, \thebuggenie\core\framework\Context::getI18n()->getCharset()));
        ?>
 ", "<?php 
        echo str_replace('"', '\\"', html_entity_decode($reproductionsteps, ENT_QUOTES, \thebuggenie\core\framework\Context::getI18n()->getCharset()));
        ?>
", "

<?php 
        if ($issue->getCommentCount() == 0) {
            echo '-';
        }
        foreach (\thebuggenie\core\entities\Comment::getComments($issue->getFormattedIssueNo(), '1') as $comment) {
            ?>
        <?php 
            $options = compact('comment', 'comment_count_div');
            if (isset($issue)) {
                echo $comment->getPostedBy() . ' : ' . $comment->getContent() . ' ';
            }
            ?>
    <?php 
        }
        ?>
"
<?php 
    }
}
        </div>
    </div>
<?php 
}
?>
<div class="faded_out comments_none" id="comments_none" <?php 
if (\thebuggenie\core\entities\Comment::countComments($target_id, $target_type) != 0) {
    ?>
style="display: none;"<?php 
}
?>
><?php 
echo __('There are no comments');
?>
</div>
<div id="comments_box">
    <?php 
foreach (\thebuggenie\core\entities\Comment::getComments($target_id, $target_type, \b2db\Criteria::SORT_DESC) as $comment) {
    ?>
        <?php 
    $options = compact('comment', 'comment_count_div', 'mentionable_target_type');
    if (isset($issue)) {
        $options['issue'] = $issue;
    }
    include_component('main/comment', $options);
    ?>
    <?php 
}
?>
</div>
        </div>
    </div>
<?php 
}
?>
<div class="faded_out comments_none" id="comments_none" <?php 
if (\thebuggenie\core\entities\Comment::countComments($target_id, $target_type) != 0) {
    ?>
style="display: none;"<?php 
}
?>
><?php 
echo __('There are no comments');
?>
</div>
<div id="comments_box">
    <?php 
foreach (\thebuggenie\core\entities\Comment::getComments($target_id, $target_type) as $comment) {
    ?>
        <?php 
    $options = compact('comment', 'comment_count_div');
    if (isset($issue)) {
        $options['issue'] = $issue;
    }
    include_component('main/comment', $options);
    ?>
    <?php 
}
?>
</div>