corefwnode 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +40 -40
- package/build.js +266 -266
- package/index.js +240 -240
- package/lib/CfwObject.js +1629 -1626
- package/lib/Decorator.js +322 -322
- package/lib/ErrorCodes.js +111 -111
- package/lib/ErrorControl.js +50 -50
- package/lib/GeneralHandling.js +638 -638
- package/lib/Language.js +139 -139
- package/lib/MySql.js +141 -142
- package/lib/Observer.js +75 -75
- package/lib/Validator.js +536 -536
- package/lib/Wiki.js +409 -409
- package/lib/errors/CoreError.js +11 -11
- package/lib/errors/SQLError.js +125 -125
- package/objects/AclGroups.js +69 -69
- package/objects/AclObjects.js +46 -46
- package/objects/AclPrivilages.js +202 -202
- package/objects/EmailTemplates.js +108 -108
- package/objects/Session.js +317 -317
- package/objects/SiteProps.js +55 -55
- package/objects/TransLang.js +39 -39
- package/objects/Translator.js +345 -345
- package/objects/UserCompanies.js +46 -46
- package/objects/Users.js +409 -409
- package/objects/UsersData.js +85 -85
- package/objects/Wiki.js +425 -425
- package/objects/WikiCategory.js +40 -40
- package/objects/WikiTemplates.js +92 -92
- package/objects/index.js +47 -47
- package/package.json +31 -32
package/objects/UserCompanies.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
const CfwObject = require('../lib/CfwObject.js');
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* User_companies_Base object
|
|
5
|
-
*
|
|
6
|
-
* @version $Id$
|
|
7
|
-
* @copyright 2016
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
module.exports = class UserCompanies extends CfwObject
|
|
11
|
-
{
|
|
12
|
-
constructor(session)
|
|
13
|
-
{
|
|
14
|
-
const proxy = super(session);
|
|
15
|
-
|
|
16
|
-
return proxy;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line class-methods-use-this
|
|
20
|
-
tableConf()
|
|
21
|
-
{
|
|
22
|
-
return {
|
|
23
|
-
tableName: 'user_companies',
|
|
24
|
-
id: {
|
|
25
|
-
companyId: {
|
|
26
|
-
fieldType: 'int',
|
|
27
|
-
maxlength: 20,
|
|
28
|
-
req: 0,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
fields: {
|
|
32
|
-
companyName: {
|
|
33
|
-
fieldType: 'text',
|
|
34
|
-
maxlength: 255,
|
|
35
|
-
req: 1,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
insertRow(param)
|
|
42
|
-
{
|
|
43
|
-
param.companyId = false;
|
|
44
|
-
return super.insertRow(param);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
1
|
+
const CfwObject = require('../lib/CfwObject.js');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* User_companies_Base object
|
|
5
|
+
*
|
|
6
|
+
* @version $Id$
|
|
7
|
+
* @copyright 2016
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
module.exports = class UserCompanies extends CfwObject
|
|
11
|
+
{
|
|
12
|
+
constructor(session)
|
|
13
|
+
{
|
|
14
|
+
const proxy = super(session);
|
|
15
|
+
|
|
16
|
+
return proxy;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line class-methods-use-this
|
|
20
|
+
tableConf()
|
|
21
|
+
{
|
|
22
|
+
return {
|
|
23
|
+
tableName: 'user_companies',
|
|
24
|
+
id: {
|
|
25
|
+
companyId: {
|
|
26
|
+
fieldType: 'int',
|
|
27
|
+
maxlength: 20,
|
|
28
|
+
req: 0,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
fields: {
|
|
32
|
+
companyName: {
|
|
33
|
+
fieldType: 'text',
|
|
34
|
+
maxlength: 255,
|
|
35
|
+
req: 1,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
insertRow(param)
|
|
42
|
+
{
|
|
43
|
+
param.companyId = false;
|
|
44
|
+
return super.insertRow(param);
|
|
45
|
+
}
|
|
46
|
+
};
|