Example #1
0
 public function __construct($text, Nav $nav, $caretIsButton = false)
 {
     $this->addDropdown($nav);
     $this->_text = $text;
     $this->_caretIsButton = $caretIsButton;
     parent::__construct($this->_text);
 }
Example #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);
 }
Example #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);
 }
Example #4
0
 public function __construct($label = "", $value = "")
 {
     parent::__construct($label);
 }
Example #5
0
 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);
 }
Example #7
0
 /**
  * Link constructor.
  */
 public function __construct($url, $label = 'Go', array $configurableOptions = [])
 {
     $configurableOptions['url'] = $url;
     $configurableOptions['label'] = $label;
     parent::__construct($configurableOptions);
 }
Example #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;
 }
 /**
  * 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);
 }
Example #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';
 }
Example #12
0
 public function __construct()
 {
     parent::__construct();
     $this->icon(new Icon("print"));
     $this->value("Print");
     $this->extras('onclick="window.print()"');
 }
Example #13
0
 public function __construct($module, $name, $action, $image)
 {
     parent::__construct($name, 'ws/' . $module . '/' . $action, MOD_ROOT . '/' . $module . '/assets/i/' . $image);
 }
Example #14
0
 public function __construct($name, $url)
 {
     parent::__construct($name, 'view');
     $this->setUrl($url);
 }
Example #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";
 }
Example #16
0
 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');
 }
Example #19
0
 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);
 }
Example #21
0
 /**
  * @param  string  caption
  */
 public function __construct($caption = NULL)
 {
     parent::__construct($caption);
     $this->control->type = 'submit';
 }
Example #22
0
 public function __construct($name = null, $id = null)
 {
     $this->attributes['type'] = 'submit';
     return parent::__construct($name, $id);
 }