Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
d3c70373
Commit
d3c70373
authored
4 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
update contructor/getter/setter
parent
19846ed8
5 merge requests
!143
updating yml config
,
!91
Prepare prod
,
!90
Testing
,
!89
Testing
,
!70
Mlab 383
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/user.js
+6
-0
classes/user.js
classes/website.js
+5
-1
classes/website.js
with
11 additions
and
1 deletion
+11
-1
classes/user.js
+
6
-
0
View file @
d3c70373
...
@@ -15,6 +15,9 @@ class User {
...
@@ -15,6 +15,9 @@ class User {
}
}
// getter
// getter
getEmail
()
{
return
this
.
email
}
getFullName
()
{
getFullName
()
{
return
this
.
firstName
+
'
'
+
this
.
lastName
return
this
.
firstName
+
'
'
+
this
.
lastName
}
}
...
@@ -24,6 +27,9 @@ class User {
...
@@ -24,6 +27,9 @@ class User {
getGitlabUserId
()
{
getGitlabUserId
()
{
return
this
.
gitlabUserId
return
this
.
gitlabUserId
}
}
getVerificationStatus
()
{
return
this
.
verificationStatus
}
// setter
// setter
setEmail
(
email
)
{
setEmail
(
email
)
{
this
.
email
=
email
this
.
email
=
email
...
...
This diff is collapsed.
Click to expand it.
classes/website.js
+
5
-
1
View file @
d3c70373
const
Project
=
require
(
"
./project
"
);
const
Project
=
require
(
"
./project
"
);
class
Website
extends
Project
{
class
Website
extends
Project
{
constructor
(
ownerGitlabId
,
id
,
name
,
desc
,
logo
,
settingUrl
,
kontaktUrl
)
{
constructor
(
ownerGitlabId
,
id
,
name
,
desc
,
logo
,
settingUrl
,
kontaktUrl
,
isPublished
)
{
super
(
ownerGitlabId
,
id
,
name
,
desc
,
logo
)
super
(
ownerGitlabId
,
id
,
name
,
desc
,
logo
)
this
.
settingUrl
=
settingUrl
this
.
settingUrl
=
settingUrl
this
.
kontaktUrl
=
kontaktUrl
this
.
kontaktUrl
=
kontaktUrl
this
.
isPublished
=
isPublished
}
}
// getter
// getter
getSettingUrl
()
{
getSettingUrl
()
{
...
@@ -13,6 +14,9 @@ class Website extends Project {
...
@@ -13,6 +14,9 @@ class Website extends Project {
getKontaktUrl
()
{
getKontaktUrl
()
{
return
this
.
kontaktUrl
return
this
.
kontaktUrl
}
}
getIsPublished
()
{
return
this
.
isPublished
}
// setter
// setter
setSettingUrl
(
newSettingUrl
)
{
setSettingUrl
(
newSettingUrl
)
{
this
.
settingUrl
=
newSettingUrl
this
.
settingUrl
=
newSettingUrl
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets