Beispiel #1
0
 /**
  * Arguments:
  *  - cmd
  *  - label
  *  - =default (optional)
  *
  * @param array $args The tokenized definition, only split at spaces
  */
 function __construct($args)
 {
     parent::__construct($args);
     $this->tpl = form_makeTextField('@@NAME@@', '@@VALUE@@', '@@DISPLAY@@', '', '@@CLASS@@');
     if (isset($this->opt['class'])) {
         $this->tpl['class'] .= ' ' . $this->opt['class'];
     }
 }
Beispiel #2
0
 /**
  * Arguments:
  *  - cmd
  *  - wiki text
  *
  * @param array $args The tokenized definition, only split at spaces
  */
 public function __construct($args)
 {
     parent::__construct($args);
     // make always optional to prevent being marked as required
     $this->opt['optional'] = true;
 }
 function syntax_plugin_bureaucracy_field_password($args)
 {
     parent::__construct($args);
     $this->tpl = form_makePasswordField('@@NAME@@', '@@LABEL@@', '', '@@CLASS@@');
 }
 function syntax_plugin_bureaucracy_field_textbox($args)
 {
     parent::__construct($args);
     $this->tpl = form_makeTextField('@@NAME@@', '@@VALUE@@', '@@LABEL@@', '', '@@CLASS@@');
 }
 /**
  * Arguments:
  *  - cmd
  *  - label
  *
  * @param array $args The tokenized definition, only split at spaces
  */
 function __construct($args)
 {
     parent::__construct($args);
     $this->tpl = form_makePasswordField('@@NAME@@', '@@DISPLAY@@', '', '@@CLASS@@');
 }