コード例 #1
0
 /**
  * @param Button $button
  */
 protected function buildButtonPrototype(Button $button)
 {
     $button->setCssBaseTypeClass('btn')->setTranslationKey('button.{name}')->setComponentBaseType('control');
 }
コード例 #2
0
ファイル: DefaultViewHandler.php プロジェクト: zingular/forms
 /**
  * @param Button $button
  * @return string
  */
 protected function renderButton(Button $button)
 {
     return sprintf(self::FORMAT_BUTTON, $button->getFullId(), $button->getType(), $button->getCssClass(), $button->getFullName(), $button->getInputValue(), $button->getHtmlAttributesAsString(), $button->getId());
 }