/** * 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); }
/** * 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; }
/** * 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); }