PageRenderTime 20ms CodeModel.GetById 18ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Staff.j

http://github.com/chollier/Edgar
Unknown | 43 lines | 38 code | 5 blank | 0 comment | 0 complexity | 97b4fd3ff75b0628c822790bc3161561 MD5 | raw file
 1@import <CappuccinoResource/CRBase.j>
 2
 3@implementation Staff : CappuccinoResource
 4{
 5	CPString nom @accessors;
 6	CPString prenom @accessors;
 7	CPDate anniversaire @accessors;
 8	CPString telephone @accessors;
 9	CPString email @accessors;
10	CPText adresse @accessors;
11	CPNumber codepostal @accessors;
12	CPString ville @accessors;
13	CPText notes @accessors;
14	CPString alias @accessors;
15	CPString password @accessors;
16	
17	
18	CPDate created_at;
19	CPDate updated_at;
20}
21
22-(JSObject)attributes
23{
24	return {
25		"staff": {
26			"nom":nom,
27			"prenom":prenom,
28			"anniversaire":[anniversaire toDateString],
29			"telephone":telephone,
30			"email":email,
31			"adresse":adresse,
32			"codepostal":codepostal,
33			"ville":ville,
34			"notes":notes,
35			"alias":alias,
36			"password":password,
37			"created_at":[created_at toDateString],
38			"updated_at":[updated_at toDateString]
39		}
40	}
41}
42
43@end