Home
last modified time | relevance | path

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

12345678910>>...14

/plugin/sequencediagram/bower_components/lodash/vendor/backbone/test/
Dmodel.js32 var model = new Model({}, {collection: collection});
33 assert.equal(model.one, 1);
34 assert.equal(model.collection, collection);
39 var model = new Backbone.Model({hasOwnProperty: true});
40 assert.equal(model.get('hasOwnProperty'), true);
50 var model = new Model({}, {one: 1});
51 assert.equal(model.one, 1);
62 var model = new Model({value: 1}, {parse: true});
63 assert.equal(model.get('value'), 2);
75 var model = new Model({}, {collection: collection});
[all …]
Dsync.js78 var data = JSON.parse(this.ajaxSettings.data.model);
106 var data = JSON.parse(this.ajaxSettings.data.model);
144 var model = new Backbone.Model();
146 model.fetch();
148 model.fetch({url: '/one/two'});
154 var model = new Backbone.Model();
155 model.url = '/test';
156 Backbone.sync('create', model);
164 var model = new Backbone.Model();
165 model.url = '/test';
[all …]
Dcollection.js30 col.comparator = function(model) { return model.id; };
66 var comparator = function(model){ return model.id; }; argument
69 model: Model, property
91 var model = new MongoModel({_id: 100});
92 var collection = new Backbone.Collection([model], {model: MongoModel}); property
93 assert.equal(collection.get(100), model);
94 assert.equal(collection.get(model.cid), model);
95 assert.equal(collection.get(model), model);
99 collection2.model = MongoModel;
100 collection2.add(model.attributes);
[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);
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->get_level() < BEZ_AUTH_USER) {
50 $r = $this->model->sqlite->query($q, $this->model->user_nick);
51 $mute = $this->model->sqlite->res2single($r);
[all …]
H A DThread.php56 if ($this->coordinator === $this->model->user_nick ||
57 $this->model->get_level() >= BEZ_AUTH_ADMIN) {
63 public function __construct($model, $defaults=array()) { argument
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->user_nick) {
[all …]
H A DTask.php68 $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()) { argument
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->user_nick) === fa…
[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.php14 $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->sqlite->query($sql, $from, $to);
[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);
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, $defaults));
218 $obj = new $object_name($this->model, $defaults);
[all …]
/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'));
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->userFactory->get_user_email($client), $this->getLang('invita…
[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));
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('invita…
52 $name = $this->model->userFactory->get_user_full_name($user_id);
[all …]
H A Dstart.php6 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->threadFactory->count($filter));
[all …]
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 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);
/plugin/statistics/vendor/matomo/device-detector/Parser/Device/
DAbstractDeviceParser.php32 protected $model = ''; variable in DeviceDetector\\Parser\\Device\\AbstractDeviceParser
2243 return $this->model;
2349 $this->model = '';
2352 $this->model = $this->buildModel($regex['model'], $matches);
2370 $this->model = $this->buildModel($modelRegex['model'], $modelMatches);
2385 * @param string $model
2390 protected function buildModel(string $model, array $matches): string argument
2392 $model = $this->buildByMatch($model, $matches);
2394 $model = \str_replace('_', ' ', $model);
2396 $model = \preg_replace('/ TD$/i', '', $model);
[all …]
/plugin/sequencediagram/bower_components/lodash/vendor/backbone/
Dbackbone.js109 if (_.isString(iteratee)) return function(model) { return model.get(iteratee); };
114 return function(model) { argument
115 return matcher(model.attributes);
597 var model = this;
600 var serverAttrs = options.parse ? model.parse(resp, options) : resp;
601 if (!model.set(serverAttrs, options)) return false;
602 if (success) success.call(options.context, model, resp, options);
603 model.trigger('sync', model, resp, options);
636 var model = this;
641 model.attributes = attributes;
[all …]
/plugin/diagramsnet/lib/plugins/webcola/
DmxWebColaLayout.js106 var model = graph.getModel();
107 var cells = model.cells;
109 model.beginUpdate();
119 var geometry = model.getGeometry(cell);
124 model.setGeometry(cell, geometry);
131 model.endUpdate();
135 mxWebColaLayout.prototype.getGroupBounds = function(model, groupCell) argument
158 var geometry = model.getGeometry(child);
188 var groupGeometry = model.getGeometry(groupCell);
196 var bounds = model.getGeometry(groupCell).clone();
[all …]
/plugin/fksnewsfeed/inc/ORM/
DModelNews.php113 $model = new self($helperPluginSqlite);
114 $model->newsId = $data['news_id'];
115 $model->title = $data['title'];
116 $model->authorName = $data['author_name'];
117 $model->authorEmail = $data['author_email'];
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'];
[all …]
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;
/plugin/aichat/
Dremote.php20 * @param string $model
25 protected function initHelper($model = '', $lang = '') argument
29 if ($model) {
31 ['chatmodel' => $model, 'rephasemodel' => $model]
56 * @param string $model The model to use, if empty the default model is used
62 public function ask($query, $model = '', $lang = '') argument
64 $helper = $this->initHelper($model, $lang);
/plugin/combo/ComboStrap/
H A DTemplateForWebPage.php69 private array $model; variable in ComboStrap\\TemplateForWebPage
111 public function setModel(array $model): TemplateForWebPage argument
113 $this->model = $model;
165 $model = $this->getModel();
168 return self::DOCTYPE . $pageTemplateEngine->renderWebPage($template, $model);
479 $model =
486 if (isset($this->model)) {
487 return array_merge($model, $this->model);
495 $model["layout-container-class"] = $containerClass;
502 $model["rem-size"] = $executionConfig->getRemFontSize();
[all …]
/plugin/diagramsnet/lib/plugins/
Danonymize.js43 var model = graph.model;
45 model.beginUpdate();
51 for (var id in model.cells)
53 var cell = model.cells[id];
70 model.setValue(queue[i].cell, queue[i].label);
76 model.execute(new RenamePage(editorUi, editorUi.currentPage,
82 model.endUpdate();
/plugin/diagramsnet/lib/js/diagramly/
DTrees.js28 this.model.beginUpdate();
48 this.model.endUpdate();
59 this.model.beginUpdate();
80 (vertex == cell || !this.model.isCollapsed(vertex));
83 this.model.setCollapsed(cell, collapse);
87 this.model.setVisible(tmp[i], !collapse);
92 this.model.endUpdate();
109 …return this.model.filterCells(this.getEdges(cell, parent, incoming, outgoing, includeLoops, recurs…
150 var model = graph.getModel();
156 return model.isVertex(cell) && hasTreeParent(cell);
[all …]
/plugin/authgooglesheets/vendor/google/apiclient-services/src/CloudVideoIntelligence/
DGoogleCloudVideointelligenceV1ShotChangeDetectionConfig.php25 public $model; variable in Google\\Service\\CloudVideoIntelligence\\GoogleCloudVideointelligenceV1ShotChangeDetectionConfig
30 public function setModel($model) argument
32 $this->model = $model;
39 return $this->model;

12345678910>>...14