Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 4e237fd705495e1e21ef20696443e053 > files > 1021

bugzilla-5.0.4-3.mga7.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>
Bugzilla::Comment</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" title="style" type="text/css" href=".././../../../../style.css" media="all" >

</head>
  <body id="pod">
<p class="backlinktop"><b><a name="___top" href="../index.html" accesskey="1" title="All Documents">&lt;&lt;</a></b></p>
<h1>Bugzilla::Comment</h1>
<div class='indexgroup'>
<ul   class='indexList indexList1'>
  <li class='indexItem indexItem1'><a href='#NAME'>NAME</a>
  <li class='indexItem indexItem1'><a href='#SYNOPSIS'>SYNOPSIS</a>
  <li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a>
  <ul   class='indexList indexList2'>
    <li class='indexItem indexItem2'><a href='#Accessors'>Accessors</a>
  </ul>
  <li class='indexItem indexItem1'><a href='#Methods_in_need_of_POD'>Methods in need of POD</a>
</ul>
</div>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="NAME"
>NAME</a></h1>

<p>Bugzilla::Comment - A Comment for a given bug</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="SYNOPSIS"
>SYNOPSIS</a></h1>

<pre  class="code"> use Bugzilla::Comment;

 my $comment = Bugzilla::Comment-&#62;new($comment_id);
 my $comments = Bugzilla::Comment-&#62;new_from_list($comment_ids);</pre>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p>Bugzilla::Comment represents a comment attached to a bug.</p>

<p>This implements all standard <code  class="code">Bugzilla::Object</code> methods. See <a href="../Bugzilla/Object.html" class="podlinkpod"
>Bugzilla::Object</a> for more details.</p>

<h2><a class='u' href='#___top' title='click to go to top of document'
name="Accessors"
>Accessors</a></h2>

<dl>
<dt><a name="bug_id"
><code  class="code">bug_id</code></a></dt>

<dd>
<p><code  class="code">int</code> The ID of the bug to which the comment belongs.</p>

<dt><a name="creation_ts"
><code  class="code">creation_ts</code></a></dt>

<dd>
<p><code  class="code">string</code> The comment creation timestamp.</p>

<dt><a name="body"
><code  class="code">body</code></a></dt>

<dd>
<p><code  class="code">string</code> The body without any special additional text.</p>

<dt><a name="work_time"
><code  class="code">work_time</code></a></dt>

<dd>
<p><code  class="code">string</code> Time spent as related to this comment.</p>

<dt><a name="is_private"
><code  class="code">is_private</code></a></dt>

<dd>
<p><code  class="code">boolean</code> Comment is marked as private.</p>

<dt><a name="already_wrapped"
><code  class="code">already_wrapped</code></a></dt>

<dd>
<p>If this comment is stored in the database word-wrapped, this will be <code  class="code">1</code>. <code  class="code">0</code> otherwise.</p>

<dt><a name="author"
><code  class="code">author</code></a></dt>

<dd>
<p><a href="../Bugzilla/User.html" class="podlinkpod"
>Bugzilla::User</a> who created the comment.</p>

<dt><a name="count"
><code  class="code">count</code></a></dt>

<dd>
<p><code  class="code">int</code> The position this comment is located in the full list of comments for a bug starting from 0.</p>

<dt><a name="collapsed"
><code  class="code">collapsed</code></a></dt>

<dd>
<p><code  class="code">boolean</code> Comment should be displayed as collapsed by default.</p>

<dt><a name="tags"
><code  class="code">tags</code></a></dt>

<dd>
<p><code  class="code">array of strings</code> The tags attached to the comment.</p>

<dt><a name="add_tag"
><code  class="code">add_tag</code></a></dt>

<dd>
<dl>
<dt><a name="Description"
><b>Description</b></a></dt>

<dd>
<p>Attaches the specified tag to the comment.</p>

<dt><a name="Params"
><b>Params</b></a></dt>

<dd>
<dl>
<dt><a name="tag"
><code  class="code">tag</code></a></dt>

<dd>
<p><code  class="code">string</code> The tag to attach.</p>
</dd>
</dl>
</dd>
</dl>

<dt><a name="remove_tag"
><code  class="code">remove_tag</code></a></dt>

<dd>
<dl>
<dt><a name="Description"
><b>Description</b></a></dt>

<dd>
<p>Detaches the specified tag from the comment.</p>

<dt><a name="Params"
><b>Params</b></a></dt>

<dd>
<dl>
<dt><a name="tag"
><code  class="code">tag</code></a></dt>

<dd>
<p><code  class="code">string</code> The tag to detach.</p>
</dd>
</dl>
</dd>
</dl>

<dt><a name="body_full"
><code  class="code">body_full</code></a></dt>

<dd>
<dl>
<dt><a name="Description"
><b>Description</b></a></dt>

<dd>
<p><code  class="code">string</code> Body of the comment, including any special text (such as &#34;this bug was marked as a duplicate of...&#34;).</p>

<dt><a name="Params"
><b>Params</b></a></dt>

<dd>
<dl>
<dt><a name="is_bugmail"
><code  class="code">is_bugmail</code></a></dt>

<dd>
<p><code  class="code">boolean</code>. <code  class="code">1</code> if this comment should be formatted specifically for bugmail.</p>

<dt><a name="wrap"
><code  class="code">wrap</code></a></dt>

<dd>
<p><code  class="code">boolean</code>. <code  class="code">1</code> if the comment should be returned word-wrapped.</p>
</dd>
</dl>

<dt><a name="Returns"
><b>Returns</b></a></dt>

<dd>
<p>A string, the full text of the comment as it would be displayed to an end-user.</p>
</dd>
</dl>
</dd>
</dl>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="Methods_in_need_of_POD"
><b>Methods in need of POD</b></a></h1>

<dl>
<dt><a name="set_type"
>set_type</a></dt>

<dd>
<dt><a name="bug"
>bug</a></dt>

<dd>
<dt><a name="set_extra_data"
>set_extra_data</a></dt>

<dd>
<dt><a name="set_is_private"
>set_is_private</a></dt>

<dd>
<dt><a name="attachment"
>attachment</a></dt>

<dd>
<dt><a name="is_about_attachment"
>is_about_attachment</a></dt>

<dd>
<dt><a name="extra_data"
>extra_data</a></dt>

<dd>
<dt><a name="preload"
>preload</a></dt>

<dd>
<dt><a name="type"
>type</a></dt>

<dd>
<dt><a name="update"
>update</a></dt>
</dl>
<p class="backlinkbottom"><b><a name="___bottom" href="../index.html" title="All Documents">&lt;&lt;</a></b></p>

<!-- end doc -->

</body></html>