-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFunctions.txt
78 lines (52 loc) · 1.15 KB
/
Functions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
create_profile( email, Name, CV, free_will ):
if not found:
create a new profile
return User ID
If email found:
exception?
return old ID?
return false?
delete_profile( userid )
if found:
remove profile
(Cascade deletes)
needs to delete all appplications
But not logs
return true
else
return false
get_profile (userid):
if not exist:
return false
else:
return email, name, CV, Free_will
--
get_userid(email):
if not found:
return false
else:
return userid
--
update_profile( userid, name, email, CV, free_will ):
if not found:
return false
else:
overwrite profile
--
create_subscription(userid, corporation_id)
adds a post that this user wants a job
delete_subscription(userid, corporation_id )
removes a post.
get_subscription(userid)
returns all subscriptions
--
get_history(email) :
returns logs of that email address
send_subscriptions()
iterate all subscriptions, send emails.
returns status of all messages.
send_email(Corporation, Name, Email)
get form from formMails,
prepare and send
add log entry
returns true if sent, false if not.