Пример #1
0
 public function __construct($text, Nav $nav, $caretIsButton = false)
 {
     $this->addDropdown($nav);
     $this->_text = $text;
     $this->_caretIsButton = $caretIsButton;
     parent::__construct($this->_text);
 }
Пример #2
0
 public function __construct($name, $text = null, array $attributes = array())
 {
     parent::__construct('input', $text);
     $this->setAttribute('type', 'submit');
     $this->setName($name);
     $this->setAttributes($attributes);
 }
Пример #3
0
 /**
  *
  * @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
0
 public function __construct($label = "", $value = "")
 {
     parent::__construct($label);
 }
Пример #5
0
 public function __construct($name, $type, $key)
 {
     parent::__construct($name, $type);
     $this->setKey($key);
 }
Пример #6
0
 /**
  * Constructor
  *
  * @param string $textarea
  */
 public function __construct($textarea)
 {
     parent::__construct($textarea);
     $this->setName('insstrike');
     $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_STRIKE_BUTTON);
 }
Пример #7
0
 /**
  * Link constructor.
  */
 public function __construct($url, $label = 'Go', array $configurableOptions = [])
 {
     $configurableOptions['url'] = $url;
     $configurableOptions['label'] = $label;
     parent::__construct($configurableOptions);
 }
Пример #8
0
 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
0
 /**
  * Constructor
  *
  * @param string $textarea
  */
 public function __construct($textarea)
 {
     parent::__construct($textarea);
     $this->setName('insbull');
     $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_BULLET_BUTTON);
 }
Пример #10
0
 /**
  * Constructor
  *
  * @param string $textarea
  */
 public function __construct($textarea)
 {
     parent::__construct($textarea);
     $this->setName('insemd');
     $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_EMDASH_BUTTON);
 }
Пример #11
0
 /**
  * @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
0
 public function __construct()
 {
     parent::__construct();
     $this->icon(new Icon("print"));
     $this->value("Print");
     $this->extras('onclick="window.print()"');
 }
Пример #13
0
 public function __construct($module, $name, $action, $image)
 {
     parent::__construct($name, 'ws/' . $module . '/' . $action, MOD_ROOT . '/' . $module . '/assets/i/' . $image);
 }
Пример #14
0
 public function __construct($name, $url)
 {
     parent::__construct($name, 'view');
     $this->setUrl($url);
 }
Пример #15
0
 /**
  * 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";
 }
Пример #16
0
 public function __construct($url, $config = array())
 {
     $this->url = $url;
     parent::__construct($config);
 }
Пример #17
0
 /**
  * Constructor
  *
  * @param string $textarea
  */
 public function __construct($textarea)
 {
     parent::__construct($textarea);
     $this->setName('inssquote');
 }
Пример #18
0
 function __construct($value = 'Submit')
 {
     parent::__construct($value, 'submit');
 }
Пример #19
0
 function __construct($value = 'Reset')
 {
     parent::__construct($value, 'reset');
 }
Пример #20
0
 /**
  * Constructor
  *
  * @param string $textarea
  */
 public function __construct($textarea)
 {
     parent::__construct($textarea);
     $this->setName('inscenter');
     $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_CENTER_BUTTON);
 }
Пример #21
0
 /**
  * @param  string  caption
  */
 public function __construct($caption = NULL)
 {
     parent::__construct($caption);
     $this->control->type = 'submit';
 }
Пример #22
0
 public function __construct($name = null, $id = null)
 {
     $this->attributes['type'] = 'submit';
     return parent::__construct($name, $id);
 }