/plugin/bez/ctl/ |
H A D | kp.php | 7 if (!isset($_GET['t']) && $this->model->authentication_tokenFactory->can_create_token()) { 8 $token = $this->model->authentication_tokenFactory->create_token($this->id()); 13 if ($this->model->get_level() < BEZ_AUTH_VIEWER) { 18 $thread = $this->model->threadFactory->get_one($this->get_param('id')); 21 $tasks = $this->model->taskFactory->get_with_closing_comment($thread)->fetchAll();
|
H A D | report.php | 5 if ($this->model->get_level() < BEZ_AUTH_USER) { 22 $this->tpl->set('issues', $this->model->threadFactory->report_issue($period)->fetchAll(PDO::FETCH_ASSOC)); 23 $this->tpl->set('projects', $this->model->threadFactory->report_project($period)->fetchAll(PDO::FETCH_ASSOC)); 24 $this->tpl->set('tasks', $this->model->taskFactory->report($period)->fetchAll(PDO::FETCH_ASSOC)); 25 $this->tpl->set('comments', $this->model->thread_commentFactory->report($period));
|
H A D | start.php | 6 if ($this->model->get_level() < BEZ_AUTH_USER) { 48 $threads = $this->model->threadFactory->get_all($filter, 'create_date DESC'); 49 $thread_comments = $this->model->thread_commentFactory->get_all($filter, 'create_date DESC'); 50 $tasks = $this->model->taskFactory->get_all($filter, 'create_date DESC'); 51 $task_comments = $this->model->task_commentFactory->get_all($filter, 'create_date DESC'); 107 $proposals = $this->model->threadFactory->get_all($filter, $orderby); 109 $this->tpl->set('proposals_count', $this->model->threadFactory->count($filter)); 112 $filter = array('state' => 'opened', 'coordinator' => $this->model->user_nick); 113 $my_threads = $this->model->threadFactory->get_all($filter, $orderby); 115 $this->tpl->set('my_threads_count', $this->model [all...] |
H A D | task.php | 6 if ($this->model->get_level() < BEZ_AUTH_USER) { 15 $task = $this->model->taskFactory->get_one($this->get_param('tid')); 17 $this->tpl->set('task_comments', $this->model->task_commentFactory->get_from_task($task)); 18 $this->tpl->set('task_programs', $this->model->task_programFactory->get_all([], 'name')); 23 $task_comment = $this->model->task_commentFactory->create_object(array('task' => $task)); 24 $this->model->task_commentFactory->initial_save($task_comment, $_POST); 31 $task->set_participant_flags($this->model->user_nick, array('subscribent')); 36 $task->remove_participant_flags($this->model->user_nick, array('subscribent')); 45 $this->add_notification($this->model->userFactory->get_user_email($client), $this->getLang('invitation_has_been_send')); 52 $name = $this->model [all...] |
H A D | task_form.php | 6 if ($this->model->get_level() < BEZ_AUTH_USER) { 11 $task = $this->model->taskFactory->create_object(); 14 $this->tpl->set('task_programs', $this->model->task_programFactory->get_all([], 'name')); 17 $this->model->taskFactory->initial_save($task, $_POST); 20 $task_dup = $this->model->taskFactory->get_one($this->get_param('duplicate'));
|
H A D | task_programs.php | 8 if ($this->model->get_level() < BEZ_AUTH_ADMIN) { 12 $task_programs = $this->model->task_programFactory->get_all([], 'name'); 23 $task_program = $this->model->task_programFactory->get_one($id); 25 $task_program = $this->model->task_programFactory->create_object(); 36 $this->model->task_programFactory->delete($task_program); 42 $this->model->task_programFactory->save($task_program);
|
H A D | tasks.php | 6 if ($this->model->get_level() < BEZ_AUTH_USER) { 11 if ($this->model->get_level() >= BEZ_AUTH_ADMIN && isset($_POST['action']) && isset($_POST['task_id'])) { 14 $task = $this->model->taskFactory->get_one($id); 15 $this->model->taskFactory->delete($task); 19 $task = $this->model->taskFactory->get_one($id); 21 $this->model->taskFactory->save($task); 54 $years = $this->model->taskFactory->get_years_scope(); 87 $db_filters['original_poster'] = array('OR', $this->model->userFactory->users_of_group($group)); 93 $db_filters['assignee'] = array('OR', $this->model->userFactory->users_of_group($group)); 103 $tasks = $this->model [all...] |
H A D | thread.php | 6 if ($this->model->get_level() < BEZ_AUTH_USER) { 15 $thread = $this->model->threadFactory->get_one($this->get_param('id')); 26 $thread_comments = iterator_to_array($this->model->thread_commentFactory->get_from_thread($thread)); 27 $tasks = $this->model->taskFactory->get_from_thread($thread); 39 $this->tpl->set('task_programs', $this->model->task_programFactory->get_all([], 'name')); 42 $thread_comment = $this->model->thread_commentFactory->create_object(array('thread' => $thread)); 47 $this->model->thread_commentFactory->initial_save($thread_comment, $_POST); 54 $thread->set_participant_flags($this->model->user_nick, array('subscribent')); 59 $thread->remove_participant_flags($this->model->user_nick, array('subscribent')); 68 $this->add_notification($this->model [all...] |
H A D | thread_report.php | 5 if ($this->model->get_level() < BEZ_AUTH_USER) { 13 $thread = $this->model->threadFactory->get_one($thread_id); 15 $thread = $this->model->threadFactory->create_object(); 27 $this->model->threadFactory->update_save($thread, $_POST); 33 // if ($this->model->acl->get_level() >= BEZ_AUTH_LEADER) { 37 // $thread = $this->model->threadFactory->create_object($defaults); 39 $this->model->threadFactory->initial_save($thread, $_POST); 45 $this->tpl->set('labels', $this->model->labelFactory->get_all())
|
H A D | threads.php | 6 if ($this->model->get_level() < BEZ_AUTH_USER) { 37 $years = $this->model->threadFactory->get_years_scope(); 69 $db_filters['coordinator'] = array('OR', $this->model->userFactory->users_of_group($group)); 75 $db_filters['original_poster'] = array('OR', $this->model->userFactory->users_of_group($group)); 108 $threads = $this->model->threadFactory->get_all($db_filters, $orderby); 110 $this->tpl->set('labels', $this->model->labelFactory->get_all());
|
H A D | types.php | 6 if ($this->model->get_level() < BEZ_AUTH_ADMIN) { 10 $labels = $this->model->labelFactory->get_all(); 20 $label = $this->model->labelFactory->get_one($id); 22 $label = $this->model->labelFactory->create_object(); 35 $this->model->labelFactory->delete($label); 41 $this->model->labelFactory->save($label);
|
H A D | unsubscribe.php | 10 $this->model->factory('subscription')->mute($_GET['t'])
|
/plugin/bez/mdl/ |
H A D | Authentication_tokenFactory.php | 10 return $this->model->get_level() >= BEZ_AUTH_USER; 14 $r = $this->model->sqlite->query("SELECT token FROM {$this->get_table_name()} WHERE page_id=?", $page_id); 15 $token = $this->model->sqlite->res2single($r); 38 $this->model->sqlite->storeEntry($this->get_table_name(), 41 'generated_by' => $this->model->user_nick,
|
H A D | Entity.php | 19 protected $model; variable in dokuwiki\\plugin\\bez\\mdl\\Entity 133 public function __construct($model) { argument 134 $this->model = $model; 135 $this->validator = new Validator($this->model); 137 $this->acl = new Acl($this->model->get_level(), $this->get_acl_columns()); 179 unset($users[$this->model->user_nick]); 182 $muted_users = $this->model->factory('subscription')->getMutedUsers(); 190 $email = $this->model->userFactory->get_user_email($user); 194 $name = $this->model [all...] |
H A D | Factory.php | 13 protected $model; variable in dokuwiki\\plugin\\bez\\mdl\\Factory 125 public function __construct(Model $model) { argument 126 $this->model = $model; 144 $sth = $this->model->db->prepare($q); 147 array($this->model, $defaults)); 163 $sth = $this->model->db->prepare($q); 174 $sth = $this->model->db->prepare($q); 192 $sth = $this->model->db->prepare($q); 196 array($this->model, [all...] |
H A D | Label.php | 12 public function __construct($model) { argument 13 parent::__construct($model); 20 $this->added_by = $this->model->user_nick;
|
H A D | SubscriptionFactory.php | 12 $r = $this->model->sqlite->query($q, $token); 13 return $this->model->sqlite->res2single($r); 24 $this->model->sqlite->query($q, $user_id); 27 if ($this->model->get_level() < BEZ_AUTH_USER) { 31 $this->model->sqlite->query($q, $this->model->user_nick); 37 if ($this->model->get_level() < BEZ_AUTH_USER) { 41 $this->model->sqlite->query($q, $this->model->user_nick); 45 if ($this->model [all...] |
H A D | Task.php | 68 $this->thread = $this->model->threadFactory->get_one($this->thread_id); 77 $this->thread_comment = $this->model->thread_commentFactory->get_one($this->thread_comment_id); 87 public function __construct($model, $defaults=array()) { 88 parent::__construct($model, $defaults); 105 $this->original_poster = $this->model->user_nick; 157 if ($this->type == 'program' && $this->model->get_level() >= BEZ_AUTH_LEADER) { 162 if ($this->type != 'program' && $this->coordinator == $this->model->user_nick) { 194 if ($this->model->level < BEZ_AUTH_ADMIN && $this->private == '1') { 195 if ($this->get_participant($this->model->user_nick) === false && 196 ($this->thread_id != '' && $this->__get('thread')->get_participant($this->model 86 __construct($model, $defaults = array()) global() argument [all...] |
H A D | TaskFactory.php | 12 $r = $this->model->sqlite->query('SELECT 19 $data = $this->model->sqlite->res_fetch_array($r); 36 $tasks = $this->model->taskFactory->get_all(array('thread_id' => $thread->id), 60 $stmt = $this->model->sqlite->query($sql, $thread->id); 90 $r = $this->model->sqlite->query($sql, $from, $to); 99 $r = $this->model->sqlite->query($sql); 125 $r = $this->model->sqlite->query($sql, $from, $to); 141 $r = $this->model->sqlite->query($sql); 163 if ($this->model->user_nick != $task->assignee) { 186 if ($this->model [all...] |
H A D | Task_comment.php | 24 $this->task = $this->model->taskFactory->get_one($this->task_id); 31 public function __construct($model, $defaults=array()) { argument 32 parent::__construct($model, $defaults); 41 $this->author = $this->model->user_nick; 53 if ($this->author == $this->model->user_nick || $this->model->get_level() >= BEZ_AUTH_LEADER) { 63 if ($this->author == $this->model->user_nick || $this->model->get_level() >= BEZ_AUTH_LEADER) { 76 $tpl = $this->model->action->get_tpl(); 86 $tpl = $this->model [all...] |
H A D | Task_commentFactory.php | 37 $this->model->sqlite->query("UPDATE {$this->get_table_name()} SET closing=1 WHERE id=?", 44 $this->model->sqlite->query("UPDATE {$this->get_table_name()} SET closing=0 WHERE task_id=?",
|
H A D | Task_program.php | 18 public function __construct($model) { argument 19 parent::__construct($model); 26 $this->added_by = $this->model->user_nick;
|
H A D | Thread.php | 56 if ($this->coordinator === $this->model->user_nick || 57 $this->model->get_level() >= BEZ_AUTH_ADMIN) { 63 public function __construct($model, $defaults=array()) { 64 parent::__construct($model); 75 $this->original_poster = $this->model->user_nick; 87 if ($this->model->get_level() >= BEZ_AUTH_LEADER) { 98 if ($this->model->level < BEZ_AUTH_ADMIN && $this->private == '1') { 99 if ($this->get_participant($this->model->user_nick) === false) { 105 if ($this->state == 'proposal' && $this->original_poster == $this->model->user_nick) { 111 if ($this->coordinator == $this->model 62 __construct($model, $defaults = array()) global() argument [all...] |
H A D | ThreadFactory.php | 14 $r = $this->model->sqlite->query('SELECT create_date FROM thread ORDER BY id LIMIT 1'); 15 $date = $this->model->sqlite->res2single($r); 42 $r = $this->model->sqlite->query($sql, $from, $to); 53 $r = $this->model->sqlite->query($sql); 66 $r = $this->model->sqlite->query($sql, $from, $to); 71 $r = $this->model->sqlite->query($sql); 90 $r = $this->model->sqlite->query($sql, $from, $to, $from, $to); 97 $r = $this->model->sqlite->query($sql); 100 $wiki_users = count($this->model->userFactory->get_all()); 128 $r = $this->model [all...] |
H A D | Thread_comment.php | 31 $this->thread = $this->model->threadFactory->get_one($this->thread_id); 42 public function __construct($model, $defaults=array()) { argument 43 parent::__construct($model, $defaults); 55 $this->author = $this->model->user_nick; 68 if ($this->coordinator == $this->model->user_nick) { 78 if ($this->author == $this->model->user_nick && $this->type == 'comment') { 86 if ($this->coordinator == $this->model->user_nick) { 107 $tpl = $this->model->action->get_tpl(); 116 $tpl = $this->model->action->get_tpl(); 131 $content = $this->model [all...] |