Searched refs:thread_comment (Results 1 – 13 of 13) sorted by relevance
/plugin/bez/mdl/ |
H A D | Thread_commentFactory.php | 19 * @param Thread_comment $thread_comment 23 public function initial_save(Entity $thread_comment, $data) { argument 31 parent::initial_save($thread_comment, $data); 32 $thread_comment->thread->set_participant_flags($thread_comment->author, array('subscribent', 'commentator')); 37 $thread_comment->thread->set_state('closed'); 40 $thread_comment->thread->set_state('rejected'); 43 $thread_comment->thread->set_state('opened'); 47 $thread_comment->thread->update_last_activity(); 52 $thread_comment 62 update_save(Entity $thread_comment, $data) global() argument [all...] |
H A D | Task.php | 34 protected $thread_comment; 72 } elseif($property == 'thread_comment') { 76 if ($this->thread_comment == null || $this->thread_comment_id != $this->thread_comment->id) { 77 $this->thread_comment = $this->model->thread_commentFactory->get_one($this->thread_comment_id); 79 return $this->thread_comment; 123 if (isset($defaults['thread_comment'])) { 124 $this->thread_comment = $defaults['thread_comment']; 125 $this->thread_comment_id = $this->thread_comment 33 protected $thread_comment; global() variable in dokuwiki\\plugin\\bez\\mdl\\Task [all...] |
H A D | Task_commentFactory.php | 14 * @param Thread_comment $thread_comment
|
H A D | Thread.php | 394 $r = $this->model->sqlite->query("SELECT id FROM thread_comment WHERE (type='cause' OR type='risk' OR type='opportunity') AND thread_id=?", 429 $res = $this->model->sqlite->query("SELECT thread_comment.id FROM thread_comment 430 LEFT JOIN task ON thread_comment.id = task.thread_comment_id 431 WHERE thread_comment.thread_id = ? AND 432 thread_comment.type = 'cause' AND task.id IS NULL", $this->id); 451 $thread_comment = $r->fetch(); 453 return $thread_comment->content_html; 596 $r = $this->model->sqlite->query("SELECT COUNT(*) FROM thread_comment WHERE thread_id=?",
|
/plugin/bez/ctl/ |
H A D | thread.php | 41 /** @var bez\mdl\Thread_comment $thread_comment */ 42 $thread_comment = $this->model->thread_commentFactory->create_object(array('thread' => $thread)); variable 43 $this->tpl->set('thread_comment', $thread_comment); 47 $this->model->thread_commentFactory->initial_save($thread_comment, $_POST); 49 $anchor = 'k'.$thread_comment->id; 82 /** @var bez\mdl\Thread_comment $thread_comment */ 83 $thread_comment = $this->model->thread_commentFactory->get_one($this->get_param('kid'), array('thread' => $thread)); variable 84 $this->model->thread_commentFactory->delete($thread_comment); 88 /** @var bez\mdl\Thread_comment $thread_comment */ 89 $thread_comment = $this->model->thread_commentFactory->get_one($this->get_param('kid'), array('thread' => $thread)); global() variable 104 $thread_comment = $this->model->thread_commentFactory->get_one($this->get_param('kid'), array('thread' => $thread)); global() variable [all...] |
H A D | start.php | 77 foreach ($thread_comments as $thread_comment) { 78 if ($thread_comment->thread->acl_of('id') < BEZ_PERMISSION_VIEW) continue; 80 if ($thread_comment->type == 'comment') { 81 $timeline->push($thread_comment->create_date, 'thread_comment_added', $thread_comment->author, $thread_comment); 83 $timeline->push($thread_comment->create_date, 'thread_comment_cause_added', $thread_comment->author, $thread_comment);
|
/plugin/bez/ |
H A D | cli.php | 30 foreach ($thread_comments as $thread_comment) { 31 $thread_comment->purge(); 32 $action->get_model()->thread_commentFactory->save($thread_comment); 33 echo "Thread comment #k" . $thread_comment->id . " purged\n";
|
/plugin/bez/db/ |
H A D | update0001.sql | 49 CREATE TABLE thread_comment ( table 68 SELECT thread_comment.*, 70 FROM thread_comment 71 JOIN thread ON thread_comment.thread_id = thread.id; 74 ON thread_comment (thread_id); 164 thread_comment_id INTEGER REFERENCES thread_comment (id), --may be null 259 -- thread_comment triggers 265 UPDATE thread_comment 274 UPDATE thread_comment 278 UPDATE thread_comment [all...] |
H A D | update0010.sql | 1 UPDATE thread_comment SET type='risk' WHERE type='cause_potential'; 2 UPDATE thread_comment SET type='cause' WHERE type='cause_real';
|
H A D | update0011.sql | 20 (SELECT COUNT(*) FROM thread_comment WHERE type = 'cause' AND thread_id=thread.id) AS cause_count, 21 (SELECT COUNT(*) FROM thread_comment WHERE type = 'risk' AND thread_id=thread.id) AS risk_count, 22 (SELECT COUNT(*) FROM thread_comment WHERE type = 'opportunity' AND thread_id=thread.id) AS opportunity_count
|
H A D | update0013.sql | 1 UPDATE thread_comment SET type='cause' WHERE type != 'comment'; 22 (SELECT COUNT(*) FROM thread_comment WHERE type = 'cause' AND thread_id=thread.id) AS cause_count
|
H A D | update0012.sql | 16 UPDATE thread_comment
|
/plugin/bez/tpl/ |
H A D | task.php | 31 <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('task')->thread->id) ?>#k<?php echo $tpl->get('task')->thread_comment->id ?>"> 32 #k<?php echo $tpl->get('task')->thread_comment->id ?> 34 <?php echo $tpl->getLang($tpl->get('task')->thread_comment->type) ?> 36 <?php echo $tpl->get('task')->thread_comment->content_html ?>
|