Lines Matching refs:thread
66 foreach ($threads as $thread) {
67 $comments = $this->_getComments($thread);
68 $this->_threadHead($thread);
74 ptln('<form method="post" action="'.wl($thread['id']).'">', 8);
79 $this->_actionButtons($thread['id']);
143 * @param array $thread
146 function _threadHead($thread) { argument
147 $id = $thread['id'];
165 $selected = (($key == $thread['status']) ? ' selected="selected"' : '');
180 * @param array $thread
183 function _getComments(&$thread) { argument
184 $id = $thread['id'];
186 if (!$thread['file']) {
187 $thread['file'] = metaFN($id, '.comments');
189 if (!@file_exists($thread['file'])) return false; // no discussion thread at all
191 $data = unserialize(io_readFile($thread['file'], false));
193 $thread['status'] = $data['status'];
194 $thread['number'] = $data['number'];