got rid of the wiki-related stuff
This commit is contained in:
		
							parent
							
								
									12283bc63a
								
							
						
					
					
						commit
						21d5f84d72
					
				| @ -55,7 +55,7 @@ | |||||||
| 			 | 			 | ||||||
| 			try { | 			try { | ||||||
| 				$templateView = new PanaceaTemplateView($this->page); | 				$templateView = new PanaceaTemplateView($this->page); | ||||||
| 				$templateView->addView($this->viewFactory->getView($this->page, $request->__toString())); | 				$templateView->addView($this->viewFactory->getView($this->page)); | ||||||
| 				return $templateView; | 				return $templateView; | ||||||
| 			} | 			} | ||||||
| 			catch (ClassNotFoundException $e) { | 			catch (ClassNotFoundException $e) { | ||||||
|  | |||||||
| @ -22,50 +22,14 @@ | |||||||
| 	 */ | 	 */ | ||||||
| 	class PanaceaPageView extends View { | 	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 | 		 * Renders the view | ||||||
| 		 * | 		 * | ||||||
| 		 * @author Tommy Montgomery | 		 * @author Tommy Montgomery | ||||||
| 		 * @since  2008-10-05 | 		 * @since  2008-10-05 | ||||||
| 		 * |  | ||||||
| 		 * @param bool $sendHeaders Whether to send the response headers or not |  | ||||||
| 		 */ | 		 */ | ||||||
| 		public function send() { | 		public function send() { | ||||||
| 			WikiParser::parseText($this->wikiText); | 			echo '<p>Hello</p>'; | ||||||
| 			echo $this->wikiText; |  | ||||||
| 		} | 		} | ||||||
| 		 | 		 | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user