52 lines
		
	
	
		
			990 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			990 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| 	/**
 | |
| 	 * WikiPageContentView
 | |
| 	 *
 | |
| 	 * @package    Panacea
 | |
| 	 * @subpackage Views
 | |
| 	 * @author     Tommy Montgomery
 | |
| 	 * @since      2008-10-18
 | |
| 	 */
 | |
| 
 | |
| 	/** Bootstraps the NowhereConcave framework */
 | |
| 	require_once 'NowhereConcave/bootstrap.php';
 | |
| 
 | |
| 	/**
 | |
| 	 * View for wiki content
 | |
| 	 *
 | |
| 	 * @package    Panacea
 | |
| 	 * @subpackage Views
 | |
| 	 * @author     Tommy Montgomery
 | |
| 	 * @since      2008-10-18
 | |
| 	 */
 | |
| 	class PanaceaWikiView extends PanaceaView {
 | |
| 		
 | |
| 		/**
 | |
| 		 * The wiki page to display
 | |
| 		 *
 | |
| 		 * @var WikiPageObject
 | |
| 		 */
 | |
| 		protected $page;
 | |
| 		
 | |
| 		protected $action;
 | |
| 		
 | |
| 		/**
 | |
| 		 * Creates a new {@link WikiPageView}
 | |
| 		 *
 | |
| 		 * @author Tommy Montgomery
 | |
| 		 * @since  2008-10-18
 | |
| 		 *
 | |
| 		 * @param WikiPageObject $page     The wiki page to display
 | |
| 		 * @param int            $priority The priority of the view
 | |
| 		 */
 | |
| 		public function __construct(WikiPageObject $page, $action = null, $priority = 0) {
 | |
| 			parent::__construct($priority);
 | |
| 			
 | |
| 			$this->page   = $page;
 | |
| 			$this->action = $action;
 | |
| 		}
 | |
| 		
 | |
| 	}
 | |
| 
 | |
| ?>
 |