예제 #1
0
 /**
  * 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;
     }
 }