public function __construct($text, Nav $nav, $caretIsButton = false) { $this->addDropdown($nav); $this->_text = $text; $this->_caretIsButton = $caretIsButton; parent::__construct($this->_text); }
public function __construct($name, $text = null, array $attributes = array()) { parent::__construct('input', $text); $this->setAttribute('type', 'submit'); $this->setName($name); $this->setAttributes($attributes); }
/** * * @param type $id * @param type $onSubmit * @param type $onError * @param Form $form */ public function __construct($id, $onSubmit = null, $onError = null, $form = null) { parent::__construct($id); if ($form != null) { if ($form instanceof Form) { $this->form = $form; } else { throw new \InvalidArgumentException('$form must be an instance of Form'); } } $this->behaviour = new AjaxFormSubmitBehavior('onClick', $onSubmit, $onError, $form); $this->add($this->behaviour); }
public function __construct($label = "", $value = "") { parent::__construct($label); }
public function __construct($name, $type, $key) { parent::__construct($name, $type); $this->setKey($key); }
/** * Constructor * * @param string $textarea */ public function __construct($textarea) { parent::__construct($textarea); $this->setName('insstrike'); $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_STRIKE_BUTTON); }
/** * Link constructor. */ public function __construct($url, $label = 'Go', array $configurableOptions = []) { $configurableOptions['url'] = $url; $configurableOptions['label'] = $label; parent::__construct($configurableOptions); }
public function __construct(\Form $form, \GridFieldDetailForm_ItemRequest $request) { parent::__construct('unpublish', _t('SiteTree.BUTTONUNPUBLISH', 'Unpublish'), $form, $request); $this->addExtraClass('ss-ui-action-destructive'); return $this; }
/** * Constructor * * @param string $textarea */ public function __construct($textarea) { parent::__construct($textarea); $this->setName('insbull'); $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_BULLET_BUTTON); }
/** * Constructor * * @param string $textarea */ public function __construct($textarea) { parent::__construct($textarea); $this->setName('insemd'); $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_EMDASH_BUTTON); }
/** * @copydoc Button::__construct */ public function __construct($id, $action = false, $image = false, $title = false, $tooltip = false) { parent::__construct($id, $action, $image, $title, $tooltip); $this->type = 'switcher'; }
public function __construct() { parent::__construct(); $this->icon(new Icon("print")); $this->value("Print"); $this->extras('onclick="window.print()"'); }
public function __construct($module, $name, $action, $image) { parent::__construct($name, 'ws/' . $module . '/' . $action, MOD_ROOT . '/' . $module . '/assets/i/' . $image); }
public function __construct($name, $url) { parent::__construct($name, 'view'); $this->setUrl($url); }
/** * Build a new instance of the Text Input * * @param string $name Attribute name of the form component * @return void */ public function __construct($name = null) { parent::__construct($name); $this->attributes['type'] = "submit"; }
public function __construct($url, $config = array()) { $this->url = $url; parent::__construct($config); }
/** * Constructor * * @param string $textarea */ public function __construct($textarea) { parent::__construct($textarea); $this->setName('inssquote'); }
function __construct($value = 'Submit') { parent::__construct($value, 'submit'); }
function __construct($value = 'Reset') { parent::__construct($value, 'reset'); }
/** * Constructor * * @param string $textarea */ public function __construct($textarea) { parent::__construct($textarea); $this->setName('inscenter'); $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_CENTER_BUTTON); }
/** * @param string caption */ public function __construct($caption = NULL) { parent::__construct($caption); $this->control->type = 'submit'; }
public function __construct($name = null, $id = null) { $this->attributes['type'] = 'submit'; return parent::__construct($name, $id); }