Beispiel #1
0
 function __construct($opts = array())
 {
     /* define options  and their defaults */
     /* update options with input */
     parent::__construct($opts);
     /* these options can not be changed */
     $this->setOptionDefault('tag', 'div');
     $this->setOptionDefault('class', 'jpm-html-form-field-cover');
 }
Beispiel #2
0
 function __construct($opts = array())
 {
     /* define options  and their defaults */
     $this->setOptionDefault('value', '');
     $this->setOptionDefault('selected', '');
     /* update options with input */
     parent::__construct($opts);
     /* these options can not be changed */
     $this->setOptionDefault('tag', 'option');
     $this->setOptionDefault('class', 'jpm-html-select-option ui-menu-item');
 }
Beispiel #3
0
 function __construct($opts = array())
 {
     /* define options  and their defaults */
     $this->setOptionDefault('rows', 3);
     $this->setOptionDefault('cols', 30);
     $this->setOptionDefault('position', '');
     $this->setOptionDefault('required', '');
     /* update options with input */
     parent::__construct($opts);
     /* these options can nt be changed */
     $this->setOptionDefault('tag', 'textarea');
 }
Beispiel #4
0
 function __construct($opts = array())
 {
     /* define options  and their defaults */
     $this->setOptionDefault('size', '');
     $this->setOptionDefault('multiple', '');
     $this->setOptionDefault('selected', '');
     $this->setOptionDefault('position', '');
     $this->setOptionDefault('required', '');
     /* update options with input */
     parent::__construct($opts);
     /* these options can nt be changed */
     $this->setOptionDefault('tag', 'select');
     $this->setOptionDefault('class', 'jpm-html-select ui-menu ui-widget ui-state-default ui-state-hover ui-state-focus');
 }
Beispiel #5
0
 function __construct($opts = array())
 {
     /* define options  and their defaults */
     $this->setOptionDefault('position', '');
     /* update options with input */
     parent::__construct($opts);
     /* these options can nt be changed */
     $coverHtmlTagName = 'span';
     /* values include top, bottom, left, right */
     if ($this->getOption('position') == 'bottom' || $this->getOption('position') == 'top') {
         $coverHtmlTagName = 'div';
     }
     $this->setOptionDefault('tag', $coverHtmlTagName);
     $this->setOptionDefault('class', 'jpm-html-form-field-component-cover');
 }
Beispiel #6
0
 function __construct($opts = array())
 {
     /* define options  and their defaults */
     $this->setOptionDefault('size', 33);
     $this->setOptionDefault('position', '');
     $this->setOptionDefault('checked', '');
     $this->setOptionDefault('required', '');
     $this->setOptionDefault('jpm_foreign_collection', '');
     $this->setOptionDefault('jpm_foreign_search_fields', '');
     $this->setOptionDefault('jpm_foreign_title_fields', '');
     /* update options with input */
     parent::__construct($opts);
     /* these options can nt be changed */
     $this->setOptionDefault('tag', 'input');
     $this->setOptionDefault('type', 'text');
     $this->setOptionDefault('value', $this->getOption('content'));
 }