HosipLan

Untitled

Jun 12th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. /**
  2.  * Standard for components, that have their rendered body wrapped in form.
  3.  * This means they're containing form as a component
  4.  * and are willing to use Form Container instead,
  5.  * if Form is provided to them by parent instance of IFormWrapped.
  6.  *
  7.  * All components implementing this interface should use Doctrine Form.
  8.  *
  9.  * @author Filip Procházka <[email protected]>
  10.  */
  11. interface IFormWrapped
  12. {
  13.  
  14.     /**
  15.      * The parent form. No matter if component's own, or if it's owned by some of it's parents.
  16.      *
  17.      * @return \Kdyby\Doctrine\Forms\Form
  18.      */
  19.     function getForm();
  20.  
  21.  
  22.     /**
  23.      * Container is the element, that components uses for it's elements.
  24.      *
  25.      * @return \Nette\Forms\Container
  26.      */
  27.     function getContainer();
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment