Преглед на файлове

[Form] Missing methods from interfaces

John Wards преди 14 години
родител
ревизия
85701b65af
променени са 2 файла, в които са добавени 14 реда и са изтрити 0 реда
  1. 12 0
      src/Symfony/Component/Form/FormInterface.php
  2. 2 0
      src/Symfony/Component/Form/Renderer/FormRendererInterface.php

+ 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);
 }