Symfony2のフォームフレームワーク

12,027 views
11,989 views

Published on

2011.06.04 第4回Symfony2勉強会

Published in: Technology
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
12,027
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
55
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Symfony2のフォームフレームワーク

    1. 1. OGAWA Katsuhiro‣ @fivestr‣
    2. 2. OGAWA Katsuhiro‣ @fivestr‣
    3. 3. ‣ http://crocos.co.jp/‣ 2011 2 7‣ Facebook‣ PHP 2
    4. 4. ‣‣ symfony 1.x‣ Form‣ Validator‣ Form‣
    5. 5.
    6. 6. symfony 1.x‣ symfony 1.x‣ Doctrine ORM Form‣
    7. 7. Symfony2‣ Form‣ ‣‣ ORM
    8. 8. ‣ symfony 1.x Form Doctrine‣ Symfony2 ‣
    9. 9. Form
    10. 10. Form‣ SymfonyComponentForm‣ Form
    11. 11. Form‣ Form 3 ‣ FormFactory ‣ FormBuilder ‣ FormType‣ Form
    12. 12. ‣ AbstractType‣ FormBuilder FormType
    13. 13. FormType‣ FormType‣ FormType‣ FormTypeInterface‣ HTML5
    14. 14. FormType‣ BirthdayType ‣ LocaleType‣ CheckboxType ‣ MoneyType‣ ChoiceType ‣ NumberType‣ CollectionType ‣ PasswordType‣ CountryType ‣ PercentType‣ DateTimeType ‣ RadioType‣ DateType ‣ RepeatedType‣ EmailType ‣ SearchType‣ FieldType ‣ TextType‣ FileType ‣ TextareaType‣ FormType ‣ TimeType‣ HiddenType ‣ Timezonetype‣ IntegerType ‣ UrlType‣ LanguageType ‣ EntityType
    15. 15. FormBuilder‣ FormType buildForm() FormBuilder FormType‣ 1 FormBuilder FormType
    16. 16. FormType‣ add() 2 FormType‣ FormType‣ DI
    17. 17. ‣ alias FormType
    18. 18. FormFactory‣ FormBuilder Form‣ create() 1 FormType 2
    19. 19. Form‣ 1 Form‣ Form
    20. 20. ‣ createView() FormView‣ FormView
    21. 21. ‣ Twig ‣ form_widget() ‣ form_errors() ‣ form_label()
    22. 22. ‣ bind()‣ bindRequest() Request‣
    23. 23. ‣ FormBuilder FormType‣ FormFactory Form‣ Form‣ createView() FormView
    24. 24. Validator
    25. 25. Validator‣ SymfonyComponentValidator...‣ Validator‣ Form Form Validator
    26. 26. ConstraintValidator‣ Constraint ‣‣ ConstraintValidator ‣
    27. 27. Constraints‣ Blank ‣ Locale‣ Callback ‣ Max‣ Choice ‣ MaxLength‣ Collection ‣ Min‣ Country ‣ MinLength‣ Date ‣ NotBlank‣ DateTime ‣ Null‣ Email ‣ NotNull‣ False ‣ Regex‣ File ‣ Time‣ Image ‣ True‣ Ip ‣ Type‣ Language ‣ Url
    28. 28. Form Validator‣‣ Form isValid()‣ Form
    29. 29. symfony 1.x‣ symfony 1.x‣ Symfony2
    30. 30. ‣ 1‣ Constraint‣
    31. 31. Form
    32. 32. FormTypeGuesser‣ Doctrine Validator FormType‣ Email EmailType‣ FormBuilder add() 2
    33. 33. FormTypeGuesser‣ data_class FormFactory create() 2
    34. 34. DataTransformer‣‣ true or false ’1’ or ‘’ BooleanToStringTransformer ‣ DatetimeToString ‣ FileToArray
    35. 35. EventDispatcher‣ symfony 1.x Observer‣ Form EventDispatcher‣
    36. 36. FormEvents‣ form.pre_bind‣ form.post_bind‣ form.pre_set_data‣ form.post_set_data‣ form.bind_client_data‣ form.bind_norm_data‣ form.set_data
    37. 37. FormType‣ FormType getParent() FormType‣ AbstractType‣ Form ‣ DataTransformer
    38. 38. FormType
    39. 39. ‣ symfony 1.x Form Form‣ symfony 1.x Symfony2 FormType
    40. 40. ‣‣
    41. 41. ‣‣‣

    ×