diff options
author | xue <> | 2006-02-08 23:18:20 +0000 |
---|---|---|
committer | xue <> | 2006-02-08 23:18:20 +0000 |
commit | aa46c9ab78abdd23c273c5e49b402a87a2aefcdb (patch) | |
tree | 9bb054b662ff59d86736d6cee6eb0f4b1b57ba59 /framework/Web/UI/WebControls/TTextHighlighter.php | |
parent | 682d48577ae6e0118a11e5e6134fdbbb6048456d (diff) |
Changed accessibility of a few render-related methods (needed by adapters).
Diffstat (limited to 'framework/Web/UI/WebControls/TTextHighlighter.php')
-rw-r--r-- | framework/Web/UI/WebControls/TTextHighlighter.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TTextHighlighter.php b/framework/Web/UI/WebControls/TTextHighlighter.php index 686ffec4..80358ff6 100644 --- a/framework/Web/UI/WebControls/TTextHighlighter.php +++ b/framework/Web/UI/WebControls/TTextHighlighter.php @@ -106,7 +106,7 @@ class TTextHighlighter extends TWebControl * the body content with syntax highlighted result.
* @param THtmlWriter writer
*/
- protected function renderContents($writer)
+ public function renderContents($writer)
{
$textWriter=new TTextWriter;
parent::renderContents(new THtmlWriter($textWriter));
@@ -143,7 +143,7 @@ class TTextHighlighter extends TWebControl {
$this->setViewState('CopyCode', TPropertyValue::ensureBoolean($value), true);
}
-
+
/**
* Returns the highlighted text.
* @param string text to highlight.
@@ -157,7 +157,7 @@ class TTextHighlighter extends TWebControl $geshi->enable_classes();
if($this->getEnableCopyCode())
$geshi->set_header_content($this->getHeaderTemplate());
-
+
return $geshi->parse_code();
}
|