예제 #1
0
	public function history() {
		global $wgOut, $wgTitle;

		parent::history();

		$spelling = $wgTitle->getText();

		$wgOut->addHTML(
			getExpressionsEditor( $spelling, $this->viewInformation )->view(
				$this->getIdStack(),
				getExpressionsRecordSet( $spelling, $this->viewInformation )
			)
		);
		
		$wgOut->addHTML( DefaultEditor::getExpansionCss() );
		$wgOut->addHTML( "<script language='javascript'>/* <![CDATA[ */\nexpandEditors();\n/* ]]> */</script>" );
	}
	public function history() {
		global
			$wgOut, $wgTitle, $wgDefinedMeaning ;

		parent::history();

		$definedMeaningId = $this->getDefinedMeaningIdFromTitle( $wgTitle->getText() );
		$dmModel = new DefinedMeaningModel( $definedMeaningId, $this->viewInformation );
		$wgOut->addHTML(
			getDefinedMeaningEditor( $this->viewInformation )->view(
				new IdStack( $wgDefinedMeaning ),
				$dmModel->getRecord()
			)
		);
		
		$wgOut->addHTML( DefaultEditor::getExpansionCss() );
		$wgOut->addHTML( "<script language='javascript'>/* <![CDATA[ */\nexpandEditors();\n/* ]]> */</script>" );
	}