Lines Matching refs:thread
82 foreach ($threads as $thread) {
83 $comments = $this->getComments($thread);
84 $this->threadHead($thread);
90 ptln('<form method="post" action="' . wl($thread['id']) . '">', 8);
167 * @param array $thread
170 protected function threadHead($thread) argument
174 $id = $thread['id'];
195 $selected = ($key == $thread['status'] ? ' selected="selected"' : '');
211 * @param array $thread by reference with:
219 protected function getComments(&$thread) argument
221 $id = $thread['id'];
223 if (!$thread['file']) {
224 $thread['file'] = metaFN($id, '.comments');
226 if (!@file_exists($thread['file'])) return false; // no discussion thread at all
228 $data = unserialize(io_readFile($thread['file'], false));
230 $thread['status'] = $data['status'];
231 $thread['number'] = $data['number'];