[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/content/ -> JavaScriptContent.php (summary)

Content for JavaScript pages. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author: Daniel Kinzler
File Size: 76 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JavaScriptContent:: (3 methods):
  __construct()
  preSaveTransform()
  getHtml()


Class: JavaScriptContent  - X-Ref

Content for JavaScript pages.

__construct( $text, $modelId = CONTENT_MODEL_JAVASCRIPT )   X-Ref

param: string $text JavaScript code.
param: string $modelId the content model name

preSaveTransform( Title $title, User $user, ParserOptions $popts )   X-Ref
Returns a Content object with pre-save transformations applied using
Parser::preSaveTransform().

param: Title $title
param: User $user
param: ParserOptions $popts
return: JavaScriptContent

getHtml()   X-Ref

return: string JavaScript wrapped in a <pre> tag.



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1