Evidence::getComments PHP Method

getComments() public method

public getComments ( $thread_id )
    public function getComments($thread_id)
    {
        $this->comments = array();
        $result = mysql_do("SELECT id FROM comments WHERE evidence_id='{$this->id}' AND hypothesis_id='0' AND reply_to_id='{$thread_id}';");
        while ($query_data = mysql_fetch_array($result)) {
            $this->comments[] = $query_data['id'];
        }
        return true;
    }