Beispiel #1
0
 /**
  * Returns the current configuration for PHP
  * 
  * @return array Current configuration
  */
 public function show_config()
 {
     return \bbn\str\text::export(\bbn\str\text::make_readable($this->get_config()), 1);
 }
Beispiel #2
0
 /**
  * Returns the element with its label and inside a div
  * 
  * @return string
  */
 public function html_with_label($with_script = 1)
 {
     $s = $this->html();
     if (!empty($s)) {
         if (BBN_IS_DEV) {
             $title = str_replace('"', '', print_r(\bbn\str\text::make_readable($this->cfg), true));
         } else {
             if (isset($this->attr['title'])) {
                 $title = $this->attr['title'];
             } else {
                 $title = isset($this->label) ? $this->label : '';
             }
         }
         if (!isset($this->cfg['field']) || $this->cfg['field'] !== 'hidden') {
             $s = '<label class="appui-form-label" title="' . $title . '" for="' . $this->attr['id'] . '">' . $this->label . '</label><div class="appui-form-field">' . $s . '</div>';
         }
     }
     return $s;
 }
Beispiel #3
0
 /**
  * Returns the current configuration
  * @return array
  */
 public function export_config()
 {
     if (isset($this->_root_element)) {
         return \bbn\str\text::make_readable($this->_root_element->get_config());
     }
     return \bbn\str\text::make_readable($this->_cfg);
 }