Home
last modified time | relevance | path

Searched refs:thread_comment (Results 1 – 13 of 13) sorted by relevance

/plugin/bez/mdl/
H A DThread_commentFactory.php19 * @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 DTask.php34 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 DTask_commentFactory.php14 * @param Thread_comment $thread_comment
H A DThread.php394 $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 Dthread.php41 /** @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 Dstart.php77 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 Dcli.php30 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 Dupdate0001.sql49 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 Dupdate0010.sql1 UPDATE thread_comment SET type='risk' WHERE type='cause_potential';
2 UPDATE thread_comment SET type='cause' WHERE type='cause_real';
H A Dupdate0011.sql20 (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 Dupdate0013.sql1 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 Dupdate0012.sql16 UPDATE thread_comment
/plugin/bez/tpl/
H A Dtask.php31 <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 ?>