got rid of the wiki-related stuff

This commit is contained in:
tmont 2008-10-15 07:16:26 +00:00
parent 12283bc63a
commit 21d5f84d72
2 changed files with 2 additions and 38 deletions

View File

@ -55,7 +55,7 @@
try {
$templateView = new PanaceaTemplateView($this->page);
$templateView->addView($this->viewFactory->getView($this->page, $request->__toString()));
$templateView->addView($this->viewFactory->getView($this->page));
return $templateView;
}
catch (ClassNotFoundException $e) {

View File

@ -22,50 +22,14 @@
*/
class PanaceaPageView extends View {
protected $wikiText;
/**
* Creates a new {@link WikiPageView} with the specified
* priority
*
* @author Tommy Montgomery
* @since 2008-10-05
*
* @param int $priority The priority of this view
*/
public function __construct($wikiText, $priority = 0) {
if (!is_string($wikiText)) {
throw new InvalidTypeException(1, 'string', $wikiText);
}
parent::__construct($priority);
$this->wikiText = $wikiText;
}
/**
* Gets all meta data associated with this view
*
* @author Tommy Montgomery
* @since 2008-10-05
*
* @return ViewMetaData
*/
public function getMetaData() {
return new ViewMetaData();
}
/**
* Renders the view
*
* @author Tommy Montgomery
* @since 2008-10-05
*
* @param bool $sendHeaders Whether to send the response headers or not
*/
public function send() {
WikiParser::parseText($this->wikiText);
echo $this->wikiText;
echo '<p>Hello</p>';
}
}