code/pages/WikiPage.php
public function getFormatter($formatter=null) {
		if (!$formatter) {
			$formatter = $this->getActualEditorType();
		}

		if (!isset(self::$registered_formatters[$formatter])) {
			throw new Exception("Formatter $formatter does not exist");
		}

		return self::$registered_formatters[$formatter];
	}
public function getFormatter($formatter=null) {
		if (!$formatter) {
			$formatter = $this->getActualEditorType();
		}

		if (!isset(self::$registered_formatters[$formatter])) {
			throw new Exception("Formatter $formatter does not exist");
		}

		return self::$registered_formatters[$formatter];
	}
public function getFormatter ( $ formatter = null ) { if ( ! $ formatter ) { $ formatter = $ this -> getActualEditorType ( ) ; } if ( ! isset ( self :: $ registered_formatters [ $ formatter ] ) ) { throw new Exception ( "Formatter $formatter does not exist" ) ; } return self :: $ registered_formatters [ $ formatter ] ; }
Gets the formatter for a given type. If none specified, gets the current formatter

@return SimpleWikiFormatter
Gets the formatter for a given type . If none specified gets the current formatter