| /plugin/bez/db/ |
| H A D | update0002.sql | 4 UPDATE thread SET state='opened' WHERE state='done'; 11 thread.coordinator AS coordinator, 18 LEFT JOIN thread ON task.thread_id = thread.id; 22 SELECT thread.id, thread.original_poster, thread.coordinator, thread.closed_by, 23 thread.private, thread.lock, thread.type, 24 … thread.create_date, thread.last_activity_date, thread.last_modification_date, thread.close_date, 25 thread.title, thread.content, thread.content_html, 26 thread.task_count, thread.task_count_closed, thread.task_sum_cost, 29 (SELECT MAX(priority) FROM task_view WHERE task_view.thread_id = thread.id) AS priority, 30 CASE WHEN thread.state = 'proposal' THEN 0 [all …]
|
| H A D | update0011.sql | 5 SELECT thread.id, thread.original_poster, thread.coordinator, thread.closed_by, 6 thread.private, thread.lock, thread.type, 7 … thread.create_date, thread.last_activity_date, thread.last_modification_date, thread.close_date, 8 thread.title, thread.content, thread.content_html, 9 thread.task_count, thread.task_count_closed, thread.task_sum_cost, 12 (SELECT MAX(priority) FROM task_view WHERE task_view.thread_id = thread.id) AS priority, 13 CASE WHEN thread.state = 'proposal' THEN 0 14 WHEN thread.state = 'opened' AND thread.task_count = 0 THEN 1 15 WHEN thread.state = 'opened' THEN 2 16 WHEN thread.state = 'closed' THEN 3 [all …]
|
| H A D | update0014.sql | 5 SELECT thread.id, thread.original_poster, thread.coordinator, thread.closed_by, 6 thread.private, thread.lock, thread.type, 7 … thread.create_date, thread.last_activity_date, thread.last_modification_date, thread.close_date, 8 thread.title, thread.content, thread.content_html, 9 thread.task_count, thread.task_count_closed, thread.task_sum_cost, 12 (SELECT MAX(priority) FROM task_view WHERE task_view.thread_id = thread.id) AS priority, 13 CASE WHEN thread.state = 'proposal' THEN 0 14 WHEN thread.state = 'opened' AND thread.task_count = 0 THEN 1 15 WHEN thread.state = 'opened' THEN 2 16 WHEN thread.state = 'closed' THEN 3 [all …]
|
| H A D | update0013.sql | 7 SELECT thread.id, thread.original_poster, thread.coordinator, thread.closed_by, 8 thread.private, thread.lock, thread.type, 9 … thread.create_date, thread.last_activity_date, thread.last_modification_date, thread.close_date, 10 thread.title, thread.content, thread.content_html, 11 thread.task_count, thread.task_count_closed, thread.task_sum_cost, 14 (SELECT MAX(priority) FROM task_view WHERE task_view.thread_id = thread.id) AS priority, 15 CASE WHEN thread.state = 'proposal' THEN 0 16 WHEN thread.state = 'opened' AND thread.task_count = 0 THEN 1 17 WHEN thread.state = 'opened' THEN 2 18 WHEN thread.state = 'closed' THEN 3 [all …]
|
| H A D | update0001.sql | 1 CREATE TABLE thread ( table 30 ON thread (last_activity_date); -- to speedup order by 33 thread_id INTEGER NOT NULL REFERENCES thread (id), 52 thread_id INTEGER NOT NULL REFERENCES thread (id), 69 thread.coordinator AS coordinator 71 JOIN thread ON thread_comment.thread_id = thread.id; 163 thread_id INTEGER REFERENCES thread (id), --may be null 179 UPDATE thread 189 UPDATE thread 198 UPDATE thread [all …]
|
| H A D | update0003.sql | 4 UPDATE thread 8 UPDATE thread 19 UPDATE thread
|
| H A D | update0012.sql | 6 UPDATE thread 10 UPDATE thread
|
| H A D | update0005.sql | 1 UPDATE thread SET state='opened' WHERE state='done';
|
| /plugin/bez/tpl/ |
| H A D | threads.php | 149 <?php foreach ($tpl->get('threads') as $thread): ?> 150 <?php if ($thread->acl_of('id') < BEZ_PERMISSION_VIEW) continue ?> 152 <?php $total_cost += (float) $thread->task_sum_cost ?> 153 <?php $total_task_closed += (int) $thread->task_count_closed ?> 154 <?php $total_task += (int) $thread->task_count ?> 155 <?php $total_corrective += (int) $thread->corrective_count ?> 156 <?php $total_preventive += (int) $thread->preventive_count ?> 158 if ($thread->state == 'opened') { 159 echo 'priority_' . $thread->priority; 160 } elseif ($thread->state == 'proposal') { [all …]
|
| H A D | task.php | 2 <?php if ($tpl->get('task')->thread_id != '' && $tpl->get('task')->thread->acl_of('id') >= BEZ_PERM… 5 if ($tpl->get('task')->thread->state == 'opened') { 6 echo 'priority_' . $tpl->get('task')->thread->priority; 11 <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('task')->thread->id) ?>"> 12 #<?php echo $tpl->get('task')->thread->id ?> 15 <?php if ($tpl->get('task')->thread->type == 'project'): ?> 17 <?php elseif (!empty($tpl->get('task')->thread->label_name)): ?> 18 <?php echo $tpl->get('task')->thread->label_name ?> 23 (<?php echo $tpl->getLang('state_' . $tpl->get('task')->thread->state) ?>): 25 <?php echo $tpl->get('task')->thread->title ?> [all …]
|
| /plugin/bez/mdl/ |
| H A D | ThreadFactory.php | 194 public function initial_save(Entity $thread, $data) { argument 202 parent::initial_save($thread, $data); 205 $thread->add_label($label_id); 208 … $thread->set_participant_flags($thread->original_poster, array('original_poster', 'subscribent')); 209 if($thread->coordinator != null) { 210 … $thread->set_participant_flags($thread->coordinator, array('coordinator', 'subscribent')); 218 $thread->set_private_flag($private); 223 if ($thread->state != 'proposal' && $this->model->user_nick != $thread->coordinator) { 224 $thread->mail_inform_coordinator(); 225 } elseif ($thread->state == 'proposal') { [all …]
|
| H A D | Thread_commentFactory.php | 13 public function get_from_thread(Thread $thread, $filters=array(), $orderby='', $limit=false) { argument 14 $filters['thread_id'] = $thread->id; 15 return $this->get_all($filters, $orderby, array('thread' => $thread), $limit); 32 …$thread_comment->thread->set_participant_flags($thread_comment->author, array('subscribent', 'comm… 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(); 54 $thread_comment->thread->mail_notify_change_state($notify); 82 $thread_comment->thread->update_last_activity(); [all …]
|
| H A D | TaskFactory.php | 35 public function get_from_thread(Thread $thread) { argument 36 $tasks = $this->model->taskFactory->get_all(array('thread_id' => $thread->id), 37 'thread_comment_id', false, array('thread' => $thread)); 52 public function get_with_closing_comment($thread) { argument 60 $stmt = $this->model->sqlite->query($sql, $thread->id); 66 public function get_by_type($thread) { argument 67 $stmt = $this->get_with_closing_comment($thread); 156 … $task->thread->set_participant_flags($task->assignee, array('subscribent', 'task_assignee')); 157 $task->thread->update_last_activity(); 167 $task->thread->mail_notify_task_added($task); [all …]
|
| H A D | Thread_comment.php | 17 protected $thread; variable in dokuwiki\\plugin\\bez\\mdl\\Thread_comment 30 if ($this->thread == null) { 31 $this->thread = $this->model->threadFactory->get_one($this->thread_id); 33 return $this->thread; 63 $this->thread = $defaults['thread']; 64 $this->thread_id = $this->thread->id; 65 $this->coordinator = $this->thread->coordinator; 74 $this->thread = $defaults['thread']; 133 $this->thread->mail_notify($content, false, $info['img']);
|
| H A D | Task_commentFactory.php | 20 … '' && $task_comment->task->type != 'preventive' && $task_comment->task->thread->state == 'closed'… 52 $task_comment->task->thread->update_last_activity(); 61 … $task_comment->task->thread->mail_notify_task_state_changed($task_comment->task); 73 … '' && $task_comment->task->type != 'preventive' && $task_comment->task->thread->state == 'closed'… 91 …if ($obj->task->thread_id != '' && $obj->task->type != 'preventive' && $obj->task->thread->state …
|
| H A D | Task.php | 31 protected $thread; variable in dokuwiki\\plugin\\bez\\mdl\\Task 67 if ($this->thread == null || $this->thread_id != $this->thread->id) { 68 $this->thread = $this->model->threadFactory->get_one($this->thread_id); 70 return $this->thread; 113 $this->thread = $defaults['thread']; 114 $this->thread_id = $this->thread->id; 115 $this->coordinator = $this->thread->coordinator; 117 if ($this->thread->private == '1') { 178 $this->thread = $defaults['thread']; 324 … if ($this->thread_id != '' && $this->type != 'preventive' && $this->thread->state == 'closed') { [all …]
|
| /plugin/bez/ctl/ |
| H A D | start.php | 54 foreach ($threads as $thread) { 55 if ($thread->acl_of('id') < BEZ_PERMISSION_VIEW) continue; 58 if ($thread->type == 'project') { 62 if ($thread->state == 'proposal') { 63 …$timeline->push($thread->create_date, 'thread_proposal' . $project, $thread->original_poster, $thr… 65 … $timeline->push($thread->create_date, 'thread_opened' . $project, $thread->coordinator, $thread); 68 if ($thread->state == 'done') { 69 …$timeline->push($thread->last_activity_date, 'thread_done' . $project, $thread->coordinator, $thre… 70 } elseif ($thread->state == 'closed') { 71 …$timeline->push($thread->last_activity_date, 'thread_closed' . $project, $thread->coordinator, $th… [all …]
|
| H A D | thread.php | 15 $thread = $this->model->threadFactory->get_one($this->get_param('id')); variable 17 if ($thread->acl_of('id') < BEZ_PERMISSION_VIEW) { 21 $this->tpl->set('thread', $thread); 22 if ($thread->type == 'project') { 26 $thread_comments = iterator_to_array($this->model->thread_commentFactory->get_from_thread($thread)); 27 $tasks = $this->model->taskFactory->get_from_thread($thread); 42 $thread_comment = $this->model->thread_commentFactory->create_object(array('thread' => $thread)); 54 $thread->set_participant_flags($this->model->user_nick, array('subscribent')); 59 $thread->remove_participant_flags($this->model->user_nick, array('subscribent')); 66 $thread->invite($client); [all …]
|
| H A D | thread_report.php | 13 $thread = $this->model->threadFactory->get_one($thread_id); variable 15 $thread = $this->model->threadFactory->create_object(); variable 18 $this->tpl->set('thread', $thread); 24 $this->tpl->set_values($thread->get_assoc()); 27 $this->model->threadFactory->update_save($thread, $_POST); 29 header('Location: ?id='.$this->id('thread', 'id', $thread->id)); 39 $this->model->threadFactory->initial_save($thread, $_POST); 41 header('Location: ?id='.$this->id('thread', 'id', $thread->id));
|
| H A D | 8d.php | 18 $thread = $this->model->threadFactory->get_one($this->get_param('id')); variable 19 $this->tpl->set('thread', $thread); 22 get_from_thread($thread, array('type' => 'cause'))->fetchAll()); 25 get_from_thread($thread, array('type' => 'risk'))->fetchAll()); 28 get_from_thread($thread, array('type' => 'opportunity'))->fetchAll()); 29 $tasks = $this->model->taskFactory->get_by_type($thread);
|
| H A D | kp.php | 18 $thread = $this->model->threadFactory->get_one($this->get_param('id')); variable 19 $this->tpl->set('thread', $thread); 21 $tasks = $this->model->taskFactory->get_with_closing_comment($thread)->fetchAll();
|
| /plugin/discussion/ |
| D | admin.php | 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 [all …]
|
| /plugin/bez/action/ |
| H A D | default.php | 335 foreach ($threads as $thread) { 336 $givenDate = new DateTime($thread->last_activity_date); 339 $link = '<a href="' . $this->url('thread', 'id', $thread->id) . '">'; 340 $link .= '#' . $thread->id; 346 … 'id' => 'thread:' . $thread->id . ':without_tasks:' . $thread->last_activity_date, 349 'timestamp' => strtotime($thread->last_activity_date) 362 foreach ($threads as $thread) { 363 $link = '<a href="' . $this->url('thread', 'id', $thread->id) . '">'; 364 $link .= '#' . $thread->id; 370 'id' => 'thread:' . $thread->id . ':coming:' . $thread->last_activity_date, [all …]
|
| /plugin/bez/cron/ |
| H A D | functions.php | 14 foreach ($threads as $thread) { 16 $day_of_issue_last_activity = date('d', strtotime($thread->last_activity_date)); 19 $thread->mail_notify_inactive($thread->get_participants('subscribent')); 64 foreach ($threads as $thread) { 65 $key = $thread->coordinator; 73 $msg[$key]['issues'][] = $thread;
|
| /plugin/authgooglesheets/vendor/google/apiclient-services/src/HangoutsChat/ |
| D | Message.php | 265 public function setThread(Thread $thread) argument 267 $this->thread = $thread; 274 return $this->thread;
|