Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
OGAWA Katsuhiro‣ @fivestr‣
OGAWA Katsuhiro‣ @fivestr‣
‣ http://crocos.co.jp/‣ 2011 2     7‣ Facebook‣                    PHP   2
‣‣ symfony 1.x‣ Form‣ Validator‣ Form‣
‣
symfony 1.x‣ symfony 1.x‣ Doctrine      ORM   Form‣
Symfony2‣ Form‣    ‣‣ ORM
‣ symfony 1.x Form     Doctrine‣ Symfony2 ‣
Form
Form‣ SymfonyComponentForm‣          Form
Form‣ Form              3    ‣ FormFactory    ‣ FormBuilder    ‣ FormType‣                   Form
‣    AbstractType‣ FormBuilder FormType
FormType‣ FormType‣              FormType‣ FormTypeInterface‣ HTML5
FormType‣   BirthdayType     ‣   LocaleType‣   CheckboxType     ‣   MoneyType‣   ChoiceType       ‣   NumberType‣   Collec...
FormBuilder‣ FormType buildForm()    FormBuilder  FormType‣        1    FormBuilder             FormType
FormType‣ add()             2   FormType‣ FormType‣              DI
‣ alias FormType
FormFactory‣ FormBuilder       Form‣ create()            1  FormType      2
Form‣        1   Form‣ Form
‣ createView()  FormView‣ FormView
‣ Twig ‣ form_widget() ‣ form_errors() ‣ form_label()
‣ bind()‣ bindRequest()   Request‣
‣ FormBuilder   FormType‣ FormFactory    Form‣ Form‣                   createView()                FormView
Validator
Validator‣ SymfonyComponentValidator...‣ Validator‣ Form                             Form                       Validator
ConstraintValidator‣ Constraint ‣‣ ConstraintValidator ‣
Constraints‣   Blank               ‣   Locale‣   Callback            ‣   Max‣   Choice              ‣   MaxLength‣   Colle...
Form Validator‣‣ Form       isValid()‣                        Form
symfony 1.x‣ symfony 1.x‣ Symfony2
‣ 1‣     Constraint‣
Form
FormTypeGuesser‣ Doctrine Validator           FormType‣                      Email               EmailType‣ FormBuilder ad...
FormTypeGuesser‣ data_class      FormFactory   create()    2
DataTransformer‣‣          true or false ’1’ or ‘’      BooleanToStringTransformer    ‣ DatetimeToString    ‣ FileToArray
EventDispatcher‣ symfony 1.x       Observer‣ Form      EventDispatcher‣
FormEvents‣ form.pre_bind‣ form.post_bind‣ form.pre_set_data‣ form.post_set_data‣ form.bind_client_data‣ form.bind_norm_da...
FormType‣ FormType getParent()            FormType‣             AbstractType‣ Form    ‣ DataTransformer
FormType
‣ symfony 1.x   Form              Form‣ symfony 1.x                       Symfony2        FormType
‣‣
‣‣‣
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Symfony2のフォームフレームワーク
Upcoming SlideShare
Loading in …5
×

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

13,255 views

Published on

2011.06.04 第4回Symfony2勉強会

Published in: Technology
  • Be the first to comment

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. ‣‣‣

×