Esempio n. 1
0
 /**
  * Returns all the values of the form fields
  * 
  * @return array
  */
 public function getFormValues()
 {
     $this->verifyLayout();
     $values = array();
     foreach ($this->layout->getChildrenByType('\\Zepi\\Web\\UserInterface\\Form\\Form', true) as $form) {
         $values = $this->extractFormValues($form);
     }
     return $values;
 }
Esempio n. 2
0
 /**
  * Returns the next parent of this container for the given type
  * If there is no type like that the function will return false
  * 
  * @access public
  * @param string $type
  * @return false|mixed
  */
 public function getParentOfType($type)
 {
     if (is_a($this, $type)) {
         return $this;
     }
     if ($this->parent !== null) {
         return $this->parent->getParentOfType($type);
     }
     return false;
 }
Esempio n. 3
0
 /**
  * Renders the given abstract container element and returns the html code
  * for the given container.
  * 
  * @access public
  * @param \Zepi\Web\UserInterface\Layout\AbstractContainer $container
  * @return string
  */
 public function render(AbstractContainer $container)
 {
     $template = $container->getTemplateKey();
     return $this->templatesManager->renderTemplate($template, array('layoutRenderer' => $this, 'container' => $container));
 }