Exemplo n.º 1
0
 /**
  * Add a OneFormWidget to the container
  *
  * @param One_Form_Widget_Abstract $widget
  */
 public function addWidget(One_Form_Widget_Abstract $widget)
 {
     if (!array_key_exists($widget->getID(), $this->getContent())) {
         $this->content[$widget->getID()] = $widget;
     } else {
         throw new Exception("A widget is already present with this ID:" . $widget->getID());
     }
 }