/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. @implementation Staff : CappuccinoResource
  3. {
  4. CPString nom @accessors;
  5. CPString prenom @accessors;
  6. CPDate anniversaire @accessors;
  7. CPString telephone @accessors;
  8. CPString email @accessors;
  9. CPText adresse @accessors;
  10. CPNumber codepostal @accessors;
  11. CPString ville @accessors;
  12. CPText notes @accessors;
  13. CPString alias @accessors;
  14. CPString password @accessors;
  15. CPDate created_at;
  16. CPDate updated_at;
  17. }
  18. -(JSObject)attributes
  19. {
  20. return {
  21. "staff": {
  22. "nom":nom,
  23. "prenom":prenom,
  24. "anniversaire":[anniversaire toDateString],
  25. "telephone":telephone,
  26. "email":email,
  27. "adresse":adresse,
  28. "codepostal":codepostal,
  29. "ville":ville,
  30. "notes":notes,
  31. "alias":alias,
  32. "password":password,
  33. "created_at":[created_at toDateString],
  34. "updated_at":[updated_at toDateString]
  35. }
  36. }
  37. }
  38. @end