Home
last modified time | relevance | path

Searched refs:model (Results 1 – 25 of 172) sorted by relevance

1234567

/plugin/sequencediagram/bower_components/lodash/vendor/backbone/test/
H A Dmodel.js219 model.set({
403 model: Model
431 model.set({
434 model.set({
448 model.clear();
544 assert.ok(_.isEqual(env.syncArgs.model, model));
584 model.fetch();
998 assert.ok(this.syncArgs.model === model);
1258 model.save();
1291 model.save();
[all …]
H A Dsync.js146 model.fetch();
155 model.url = '/test';
165 model.url = '/test';
172 model.url = '/test';
182 model.url = '/test';
185 model.sync('create', model);
189 model.sync('create', model);
199 model.sync('create', model);
203 model.sync('create', model);
218 model.sync('delete', model, {
[all …]
H A Dcollection.js30 col.comparator = function(model) { return model.id; };
66 var comparator = function(model){ return model.id; }; argument
94 assert.equal(collection.get(model.cid), model);
95 assert.equal(collection.get(model), model);
298 if (model.model) return model.model;
576 assert.equal(this.syncArgs.model, model);
754 model
937 collection.add([model, model]);
1230 assert.ok(model === m2 || model === m3);
1615 assert.equal(model, this._byId[model.id]);
[all …]
/plugin/bez/mdl/
H A DSubscriptionFactory.php12 $r = $this->model->sqlite->query($q, $token);
13 return $this->model->sqlite->res2single($r);
24 $this->model->sqlite->query($q, $user_id);
31 $this->model->sqlite->query($q, $this->model->user_nick);
41 $this->model->sqlite->query($q, $this->model->user_nick);
50 $r = $this->model->sqlite->query($q, $this->model->user_nick);
51 $mute = $this->model->sqlite->res2single($r);
63 if (!$user) $user = $this->model->user_nick;
66 $r = $this->model->sqlite->query($q, $user);
80 $r = $this->model->sqlite->query($q);
[all …]
H A DThread.php63 parent::__construct($model);
240 $user_id = $this->model->user_nick;
448 $tpl = $this->model->action->get_tpl();
462 $tpl = $this->model->action->get_tpl();
485 $tpl = $this->model->action->get_tpl();
499 $tpl = $this->model->action->get_tpl();
509 $tpl = $this->model->action->get_tpl();
519 $tpl = $this->model->action->get_tpl();
529 $tpl = $this->model->action->get_tpl();
539 $tpl = $this->model->action->get_tpl();
[all …]
H A DTask.php87 parent::__construct($model, $defaults);
201 … if ($this->assignee == $this->model->user_nick || $this->model->get_level() >= BEZ_AUTH_LEADER) {
378 $par = $this->model->sqlite->res2row($r);
388 $user_id = $this->model->user_nick;
519 $tpl = $this->model->action->get_tpl();
537 $tpl = $this->model->action->get_tpl();
560 $tpl = $this->model->action->get_tpl();
570 $tpl = $this->model->action->get_tpl();
581 $tpl = $this->model->action->get_tpl();
594 $tpl = $this->model->action->get_tpl();
[all …]
H A DTask_comment.php24 $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->action->get_tpl();
94 $content = $this->model->action->bez_tpl_include('mail/task_comment', true);
H A DThreadFactory.php15 $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);
97 $r = $this->model->sqlite->query($sql);
128 $r = $this->model->sqlite->query($sql, $from, $to);
147 $r = $this->model->sqlite->query($sql);
172 $r = $this->model->sqlite->query($sql, $from, $to);
189 $r = $this->model->sqlite->query($sql);
[all …]
H A DUserFactory.php7 private $model; variable in dokuwiki\\plugin\\bez\\mdl\\UserFactory
9 public function __construct($model) { argument
10 $this->model = $model;
14 $wikiusers = $this->model->dw_auth->retrieveUsers();
25 $groups_s = $this->model->action->getConf('hidden_groups');
52 $wikiusers = $this->model->dw_auth->retrieveUsers();
81 $wikiusers = $this->model->dw_auth->retrieveUsers();
H A DFactory.php13 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);
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, $defaults));
231 $this->model->sqlite->query('ROLLBACK');
258 $sth = $this->model->db->prepare($query);
[all …]
H A DThread_comment.php31 $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->action->bez_tpl_include('mail/thread_comment', true);
H A DTaskFactory.php12 $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->taskFactory->count(array(
[all …]
H A DEntity.php19 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->userFactory->get_user_full_name($user);
/plugin/bez/ctl/
H A Dthread.php6 if ($this->model->get_level() < BEZ_AUTH_USER) {
15 $thread = $this->model->threadFactory->get_one($this->get_param('id'));
27 $tasks = $this->model->taskFactory->get_from_thread($thread);
47 $this->model->thread_commentFactory->initial_save($thread_comment, $_POST);
75 $name = $this->model->userFactory->get_user_full_name($user_id);
84 $this->model->thread_commentFactory->delete($thread_comment);
108 $task = $this->model->taskFactory->create_object($defaults);
113 $this->model->taskFactory->initial_save($task, $_POST);
127 $this->model->taskFactory->update_save($task, $_POST);
135 $this->model->taskFactory->delete($task);
[all …]
H A Dtask.php6 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));
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'));
52 $name = $this->model->userFactory->get_user_full_name($user_id);
60 $this->model->task_commentFactory->delete($task_comment);
70 $this->model->task_commentFactory->update_save($task_comment, $_POST);
80 $this->model->taskFactory->update_save($task, $_POST);
[all …]
H A Dstart.php6 if ($this->model->get_level() < BEZ_AUTH_USER) {
48 $threads = $this->model->threadFactory->get_all($filter, 'create_date DESC');
50 $tasks = $this->model->taskFactory->get_all($filter, 'create_date DESC');
107 $proposals = $this->model->threadFactory->get_all($filter, $orderby);
112 $filter = array('state' => 'opened', 'coordinator' => $this->model->user_nick);
113 $my_threads = $this->model->threadFactory->get_all($filter, $orderby);
118 $filter = array('state' => 'opened', 'assignee' => $this->model->user_nick);
119 $my_tasks = $this->model->taskFactory->get_all($filter, $orderby);
121 $this->tpl->set('my_tasks_count', $this->model->taskFactory->count($filter));
125 $reported_threads = $this->model->threadFactory->get_all($filter, $orderby);
[all …]
H A D8d.php7 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 $this->model->thread_commentFactory->
24 $this->model->thread_commentFactory->
27 $this->model->thread_commentFactory->
29 $tasks = $this->model->taskFactory->get_by_type($thread);
H A Dtasks.php6 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->taskFactory->get_all($db_filters, $orderby);
[all …]
H A Dthread_report.php5 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);
39 $this->model->threadFactory->initial_save($thread, $_POST);
45 $this->tpl->set('labels', $this->model->labelFactory->get_all());
H A Dtypes.php6 if ($this->model->get_level() < BEZ_AUTH_ADMIN) {
10 $labels = $this->model->labelFactory->get_all();
13 $label = $this->model->labelFactory->create_object();
15 $label = $this->model->labelFactory->get_one($this->get_param('id'));
28 $this->model->labelFactory->delete($label);
34 $this->model->labelFactory->save($label);
H A Dtask_programs.php6 if ($this->model->get_level() < BEZ_AUTH_ADMIN) {
10 $task_programs = $this->model->task_programFactory->get_all([], 'name');
13 $task_program = $this->model->task_programFactory->create_object();
15 $task_program = $this->model->task_programFactory->get_one($this->get_param('id'));
28 $this->model->task_programFactory->delete($task_program);
34 $this->model->task_programFactory->save($task_program);
H A Dkp.php7 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();
/plugin/sequencediagram/bower_components/lodash/vendor/backbone/
H A Dbackbone.js603 model.trigger('sync', model, resp, options);
674 model.trigger('destroy', model, model.collection, options);
680 if (!model.isNew()) model.trigger('sync', model, resp, options);
765 if (options.model) this.model = options.model;
879 var attrs = this._isModel(model) ? model.attributes : model;
1077 model = this._prepareModel(model, options);
1099 model: this.model,
1126 var model = new this.model(attrs, options);
1127 if (!model.validationError) return model;
1168 this._byId[model.cid] = model;
[all …]
/plugin/fksnewsfeed/inc/ORM/
H A DModelNews.php113 $model = new self($helperPluginSqlite);
114 $model->newsId = $data['news_id'];
115 $model->title = $data['title'];
116 $model->authorName = $data['author_name'];
118 $model->text = $data['text'];
119 $model->newsDate = $data['news_date'];
120 $model->image = $data['image'];
121 $model->category = $data['category'];
122 $model->linkHref = $data['link_href'];
123 $model->linkTitle = $data['link_title'];
[all …]
H A DModelPriority.php38 $model = new self($helperPluginSqlite);
39 $model->priorityId = $data['priority_id'];
40 $model->newsId = $data['news_id'];
41 $model->streamId = $data['stream_id'];
42 $model->priorityValue = $data['priority'] ?? 0;
43 $model->priorityFrom = $data['priority_from'];
44 $model->priorityTo = $data['priority_to'];
46 return $model;

1234567