/**
  * Answer the XHTML postfix markup for the current editor
  * 
  * @param string $fieldName The name we are rendering this instance with.
  * @return string
  * @access public
  * @since 1/14/08
  */
 public function getCurrentPostHtml($fieldName)
 {
     try {
         $currentEditorName = $this->editorChoice->getAllValues();
         if (!$currentEditorName) {
             throw new Exception("No current editor set.");
         }
         if (isset($this->postfixes[$currentEditorName])) {
             return Wizard::parseFieldNameText($this->postfixes[$currentEditorName], $fieldName);
         } else {
             return '';
         }
     } catch (Exception $e) {
         throw $e;
     }
 }
Exemple #2
0
 function getAllConfigValuesAsString($section = null, $prefix = 'USER_CONFIG_', $separator = '_')
 {
     $this->loadConfig();
     $result = array();
     foreach ($this->dbini->getAllValues($section) as $key1 => $value1) {
         foreach ($value1 as $key2 => $value2) {
             $result[$prefix . $key1 . $separator . $key2] = $value2;
         }
     }
     return $result;
 }