/Staff.j
http://github.com/chollier/Edgar · Unknown · 43 lines · 38 code · 5 blank · 0 comment · 0 complexity · 97b4fd3ff75b0628c822790bc3161561 MD5 · raw file
- @import <CappuccinoResource/CRBase.j>
- @implementation Staff : CappuccinoResource
- {
- CPString nom @accessors;
- CPString prenom @accessors;
- CPDate anniversaire @accessors;
- CPString telephone @accessors;
- CPString email @accessors;
- CPText adresse @accessors;
- CPNumber codepostal @accessors;
- CPString ville @accessors;
- CPText notes @accessors;
- CPString alias @accessors;
- CPString password @accessors;
-
-
- CPDate created_at;
- CPDate updated_at;
- }
- -(JSObject)attributes
- {
- return {
- "staff": {
- "nom":nom,
- "prenom":prenom,
- "anniversaire":[anniversaire toDateString],
- "telephone":telephone,
- "email":email,
- "adresse":adresse,
- "codepostal":codepostal,
- "ville":ville,
- "notes":notes,
- "alias":alias,
- "password":password,
- "created_at":[created_at toDateString],
- "updated_at":[updated_at toDateString]
- }
- }
- }
- @end