Ejemplo n.º 1
0
 /**
  * Render the output of the widget and add it to the DOM
  *
  * @param One_Model $model
  * @param One_Dom $dom
  * @final
  */
 public final function render($model, One_Dom $dom)
 {
     $id = $this->getID();
     $condition = $this->getCfg('condition');
     if (!is_null($condition)) {
         $args = array('model' => $model);
         if (!One_Form_Factory::authorize($condition, $args)) {
             return;
         }
     }
     $this->_render($model, $dom);
 }