本文整理汇总了PHP中Button::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Button::__construct方法的具体用法?PHP Button::__construct怎么用?PHP Button::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Button
的用法示例。
在下文中一共展示了Button::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($text, Nav $nav, $caretIsButton = false)
{
$this->addDropdown($nav);
$this->_text = $text;
$this->_caretIsButton = $caretIsButton;
parent::__construct($this->_text);
}
示例2: __construct
public function __construct($name, $text = null, array $attributes = array())
{
parent::__construct('input', $text);
$this->setAttribute('type', 'submit');
$this->setName($name);
$this->setAttributes($attributes);
}
示例3: __construct
/**
*
* @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);
}
示例4: __construct
public function __construct($label = "", $value = "")
{
parent::__construct($label);
}
示例5: __construct
public function __construct($name, $type, $key)
{
parent::__construct($name, $type);
$this->setKey($key);
}
示例6: __construct
/**
* Constructor
*
* @param string $textarea
*/
public function __construct($textarea)
{
parent::__construct($textarea);
$this->setName('insstrike');
$this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_STRIKE_BUTTON);
}
示例7: __construct
/**
* Link constructor.
*/
public function __construct($url, $label = 'Go', array $configurableOptions = [])
{
$configurableOptions['url'] = $url;
$configurableOptions['label'] = $label;
parent::__construct($configurableOptions);
}
示例8: __construct
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;
}
示例9: __construct
/**
* Constructor
*
* @param string $textarea
*/
public function __construct($textarea)
{
parent::__construct($textarea);
$this->setName('insbull');
$this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_BULLET_BUTTON);
}
示例10: __construct
/**
* Constructor
*
* @param string $textarea
*/
public function __construct($textarea)
{
parent::__construct($textarea);
$this->setName('insemd');
$this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_EMDASH_BUTTON);
}
示例11: __construct
/**
* @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';
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->icon(new Icon("print"));
$this->value("Print");
$this->extras('onclick="window.print()"');
}
示例13: __construct
public function __construct($module, $name, $action, $image)
{
parent::__construct($name, 'ws/' . $module . '/' . $action, MOD_ROOT . '/' . $module . '/assets/i/' . $image);
}
示例14: __construct
public function __construct($name, $url)
{
parent::__construct($name, 'view');
$this->setUrl($url);
}
示例15: __construct
/**
* 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";
}