Pastakhov has uploaded a new change for review. https://gerrit.wikimedia.org/r/254818
Change subject: add outStrip class (v 5.6.0) ...................................................................... add outStrip class (v 5.6.0) Change-Id: Idf8c728a8baab94759648d6cdfb5233b0e6ec356 --- M PhpTags.php A includes/outStrip.php 2 files changed, 43 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PhpTags refs/changes/18/254818/1 diff --git a/PhpTags.php b/PhpTags.php index dee1ead..2793c57 100644 --- a/PhpTags.php +++ b/PhpTags.php @@ -16,7 +16,7 @@ } const PHPTAGS_MAJOR_VERSION = 5; -const PHPTAGS_MINOR_VERSION = 5; +const PHPTAGS_MINOR_VERSION = 6; const PHPTAGS_RELEASE_VERSION = 0; define( 'PHPTAGS_VERSION', PHPTAGS_MAJOR_VERSION . '.' . PHPTAGS_MINOR_VERSION . '.' . PHPTAGS_RELEASE_VERSION ); @@ -49,6 +49,7 @@ $wgAutoloadClasses['PhpTags\\Timer'] = __DIR__ . '/includes/Renderer.php'; $wgAutoloadClasses['PhpTags\\iRawOutput'] = __DIR__ . '/includes/iRawOutput.php'; $wgAutoloadClasses['PhpTags\\outPrint'] = __DIR__ . '/includes/outPrint.php'; +$wgAutoloadClasses['PhpTags\\outStrip'] = __DIR__ . '/includes/outStrip.php'; $wgAutoloadClasses['PhpTags\\ErrorHandler'] = __DIR__ . '/includes/ErrorHandler.php'; $wgAutoloadClasses['PhpTags\\PhpTagsException'] = __DIR__ . '/includes/PhpTagsException.php'; $wgAutoloadClasses['PhpTags\\HookException'] = __DIR__ . '/includes/HookException.php'; diff --git a/includes/outStrip.php b/includes/outStrip.php new file mode 100644 index 0000000..387e80f --- /dev/null +++ b/includes/outStrip.php @@ -0,0 +1,41 @@ +<?php +namespace PhpTags; +/** + * The outStrip class of the extension PHP Tags. + * + * @file outPrint.php + * @ingroup PhpTags + * @author Pavel Astakhov <pastak...@yandex.ru> + * @licence GNU General Public Licence 2.0 or later + */ +class outStrip implements iRawOutput { + private $returnValue; + private $strip; + + /** + * + * @param mixed $returnValue + * @param string $strip + * @param bool $raw + * @param string|false $element + * @param array $attribs + * @param array $sheath + */ + public function __construct( $returnValue, $strip ) { + $this->returnValue = $returnValue; + $this->strip = $strip; + } + + public function __toString() { + return $this->strip; + } + + public function getReturnValue() { + return $this->returnValue; + } + + public function placeAsStripItem() { + return $this->strip; + } + +} -- To view, visit https://gerrit.wikimedia.org/r/254818 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idf8c728a8baab94759648d6cdfb5233b0e6ec356 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PhpTags Gerrit-Branch: master Gerrit-Owner: Pastakhov <pastak...@yandex.ru> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits