Exemplo n.º 1
0
 /**
  * Assemble form body (field set)
  *
  * @return string HTML
  */
 protected function assembleFormBody(\XLite\Model\IframeContent $content)
 {
     $inputs = array();
     foreach ($content->getData() as $name => $value) {
         $inputs[] = '<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />';
     }
     if ($inputs) {
         $body = '      ' . implode("\n" . '      ', $inputs);
     }
     return $body;
 }
 /**
  * {@inheritDoc}
  */
 public function prepareEntityBeforeCommit($type)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareEntityBeforeCommit', array($type));
     return parent::prepareEntityBeforeCommit($type);
 }