Resources/views/backend/wbm_template_manager/model/template.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 34
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
dl 0
loc 34
rs 10
c 1
b 0
f 0
cc 0
nc 1
mnd 0
bc 0
fnc 0
bpm 0
cpm 0
noi 1
1
/**
2
 * Template Manager
3
 * Copyright (c) Webmatch GmbH
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 */
15
16
Ext.define('Shopware.apps.WbmTemplateManager.model.Template', {
0 ignored issues
show
Bug introduced by
The variable Ext seems to be never declared. If this is a global, consider adding a /** global: Ext */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
17
    extend : 'Ext.data.Model', 
18
    fields : [
19
        {
20
            name: 'name', 
21
            type: 'string'
22
        }, 
23
        {
24
            name: 'content',
25
            type: 'string'
26
        },
27
        {
28
            name: 'oContent',
29
            type: 'string'
30
        },
31
        {
32
            name: 'custom',
33
            type: 'int'
34
        }
35
    ],
36
    proxy: {
37
        type : 'ajax', 
38
        api:{
39
            read : '{url action=list}',
40
            create : '{url action="create"}',
41
            update : '{url action="update"}',
42
            destroy : '{url action="delete"}'
43
        },
44
        reader : {
45
            type : 'json',
46
            root : 'data'
47
        }
48
    }
49
});
50