70 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			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;
 | |
| 		
 | |
| 		/**
 | |
| 		 * The action to take on the page (e.g. edit)
 | |
| 		 *
 | |
| 		 * @var string
 | |
| 		 */
 | |
| 		protected $action;
 | |
| 		
 | |
| 		/**
 | |
| 		 * Creates a new {@link WikiPageView}
 | |
| 		 *
 | |
| 		 * @author Tommy Montgomery
 | |
| 		 * @since  2008-10-18
 | |
| 		 *
 | |
| 		 * @param WikiPageObject $page     The wiki page to display
 | |
| 		 * @param string         $action   The action to perform on the page (e.g. edit)
 | |
| 		 * @param int            $priority The priority of the view
 | |
| 		 */
 | |
| 		public function __construct(WikiPageObject $page = null, $action = null, $priority = 0) {
 | |
| 			parent::__construct($priority);
 | |
| 			
 | |
| 			$this->page   = $page;
 | |
| 			$this->action = $action;
 | |
| 		}
 | |
| 		
 | |
| 		/**
 | |
| 		 * Gets meta data for this view
 | |
| 		 *
 | |
| 		 * @author Tommy Montgomery
 | |
| 		 * @since  2008-10-26
 | |
| 		 *
 | |
| 		 * @return ViewMetaData
 | |
| 		 */
 | |
| 		public function getMetaData() {
 | |
| 			return ViewMetaData::generate()->addCss($this->cssPath . '/wiki.css');
 | |
| 		}
 | |
| 		
 | |
| 	}
 | |
| 
 | |
| ?>
 |