Pārlūkot izejas kodu

[Form] Missing methods from interfaces

John Wards 14 gadi atpakaļ
vecāks
revīzija
85701b65af

+ 12 - 0
src/Symfony/Component/Form/FormInterface.php

@@ -36,6 +36,18 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
 
     function hasChildren();
 
+    function hasParent();
+
+    function getErrors();
+
+    function getData();
+
+    function getClientData();
+
+    function getRenderer();
+
+    function isBound();
+    
     /**
      * Returns the name by which the form is identified in forms.
      *

+ 2 - 0
src/Symfony/Component/Form/Renderer/FormRendererInterface.php

@@ -22,5 +22,7 @@ interface FormRendererInterface
 
     function setVar($name, $value);
 
+    public function getVar($name);
+
     function addPlugin(FormRendererPluginInterface $plugin);
 }