diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 19:26:54 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 19:26:54 +0200 |
commit | 4f5b44bd3bd490309eb2ba7b44df4769816ba729 (patch) | |
tree | 6cefe170dfe0a5a361cb1e2d1fc4d580a3316d02 /vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeInterface.php | |
parent | 2b840e0cfb63a453bea67a98541f3df9c273c5f5 (diff) | |
download | wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.gz wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.zst wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.zip |
twig implementation
Diffstat (limited to 'vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeInterface.php')
-rw-r--r-- | vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeInterface.php | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeInterface.php b/vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeInterface.php new file mode 100644 index 00000000..c999bcdc --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeInterface.php | |||
@@ -0,0 +1,106 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\Form; | ||
13 | |||
14 | /** | ||
15 | * A wrapper for a form type and its extensions. | ||
16 | * | ||
17 | * @author Bernhard Schussek <bschussek@gmail.com> | ||
18 | */ | ||
19 | interface ResolvedFormTypeInterface | ||
20 | { | ||
21 | /** | ||
22 | * Returns the name of the type. | ||
23 | * | ||
24 | * @return string The type name. | ||
25 | */ | ||
26 | public function getName(); | ||
27 | |||
28 | /** | ||
29 | * Returns the parent type. | ||
30 | * | ||
31 | * @return ResolvedFormTypeInterface The parent type or null. | ||
32 | */ | ||
33 | public function getParent(); | ||
34 | |||
35 | /** | ||
36 | * Returns the wrapped form type. | ||
37 | * | ||
38 | * @return FormTypeInterface The wrapped form type. | ||
39 | */ | ||
40 | public function getInnerType(); | ||
41 | |||
42 | /** | ||
43 | * Returns the extensions of the wrapped form type. | ||
44 | * | ||
45 | * @return FormTypeExtensionInterface[] An array of {@link FormTypeExtensionInterface} instances. | ||
46 | */ | ||
47 | public function getTypeExtensions(); | ||
48 | |||
49 | /** | ||
50 | * Creates a new form builder for this type. | ||
51 | * | ||
52 | * @param FormFactoryInterface $factory The form factory. | ||
53 | * @param string $name The name for the builder. | ||
54 | * @param array $options The builder options. | ||
55 | * | ||
56 | * @return FormBuilderInterface The created form builder. | ||
57 | */ | ||
58 | public function createBuilder(FormFactoryInterface $factory, $name, array $options = array()); | ||
59 | |||
60 | /** | ||
61 | * Creates a new form view for a form of this type. | ||
62 | * | ||
63 | * @param FormInterface $form The form to create a view for. | ||
64 | * @param FormView $parent The parent view or null. | ||
65 | * | ||
66 | * @return FormView The created form view. | ||
67 | */ | ||
68 | public function createView(FormInterface $form, FormView $parent = null); | ||
69 | |||
70 | /** | ||
71 | * Configures a form builder for the type hierarchy. | ||
72 | * | ||
73 | * @param FormBuilderInterface $builder The builder to configure. | ||
74 | * @param array $options The options used for the configuration. | ||
75 | */ | ||
76 | public function buildForm(FormBuilderInterface $builder, array $options); | ||
77 | |||
78 | /** | ||
79 | * Configures a form view for the type hierarchy. | ||
80 | * | ||
81 | * It is called before the children of the view are built. | ||
82 | * | ||
83 | * @param FormView $view The form view to configure. | ||
84 | * @param FormInterface $form The form corresponding to the view. | ||
85 | * @param array $options The options used for the configuration. | ||
86 | */ | ||
87 | public function buildView(FormView $view, FormInterface $form, array $options); | ||
88 | |||
89 | /** | ||
90 | * Finishes a form view for the type hierarchy. | ||
91 | * | ||
92 | * It is called after the children of the view have been built. | ||
93 | * | ||
94 | * @param FormView $view The form view to configure. | ||
95 | * @param FormInterface $form The form corresponding to the view. | ||
96 | * @param array $options The options used for the configuration. | ||
97 | */ | ||
98 | public function finishView(FormView $view, FormInterface $form, array $options); | ||
99 | |||
100 | /** | ||
101 | * Returns the configured options resolver used for this type. | ||
102 | * | ||
103 | * @return \Symfony\Component\OptionsResolver\OptionsResolverInterface The options resolver. | ||
104 | */ | ||
105 | public function getOptionsResolver(); | ||
106 | } | ||