/libraries/joomla/filter/wrapper/output.php

https://gitlab.com/vitaliylukin91/lavka · PHP · 157 lines · 41 code · 10 blank · 106 comment · 0 complexity · 6de2a6dfd1ebc084adf8a647b2521a58 MD5 · raw file

  1. <?php
  2. /**
  3. * @package Joomla.Platform
  4. * @subpackage Filter
  5. *
  6. * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE
  8. */
  9. defined('JPATH_PLATFORM') or die;
  10. /**
  11. * Wrapper class for JFilterOutput
  12. *
  13. * @package Joomla.Platform
  14. * @subpackage Filter
  15. * @since 3.4
  16. */
  17. class JFilterWrapperOutput
  18. {
  19. /**
  20. * Helper wrapper method for objectHTMLSafe
  21. *
  22. * @param object &$mixed An object to be parsed.
  23. * @param integer $quote_style The optional quote style for the htmlspecialchars function.
  24. * @param mixed $exclude_keys An optional string single field name or array of field names not.
  25. *
  26. * @return void
  27. *
  28. * @see JFilterOutput::objectHTMLSafe()
  29. * @since 3.4
  30. */
  31. public function objectHTMLSafe(&$mixed, $quote_style = 3, $exclude_keys = '')
  32. {
  33. return JFilterOutput::objectHTMLSafe($mixed, $quote_style, $exclude_keys);
  34. }
  35. /**
  36. * Helper wrapper method for linkXHTMLSafe
  37. *
  38. * @param string $input String to process.
  39. *
  40. * @return string Processed string.
  41. *
  42. * @see JFilterOutput::linkXHTMLSafe()
  43. * @since 3.4
  44. */
  45. public function linkXHTMLSafe($input)
  46. {
  47. return JFilterOutput::linkXHTMLSafe($input);
  48. }
  49. /**
  50. * Helper wrapper method for stringURLSafe
  51. *
  52. * @param string $string String to process.
  53. *
  54. * @return string Processed string.
  55. *
  56. * @see JFilterOutput::stringURLSafe()
  57. * @since 3.4
  58. */
  59. public function stringURLSafe($string)
  60. {
  61. return JFilterOutput::stringURLSafe($string);
  62. }
  63. /**
  64. * Helper wrapper method for stringURLUnicodeSlug
  65. *
  66. * @param string $string String to process.
  67. *
  68. * @return string Processed string.
  69. *
  70. * @see JFilterOutput::stringURLUnicodeSlug()
  71. * @since 3.4
  72. */
  73. public function stringURLUnicodeSlug($string)
  74. {
  75. return JFilterOutput::stringURLUnicodeSlug($string);
  76. }
  77. /**
  78. * Helper wrapper method for ampReplace
  79. *
  80. * @param string $text Text to process.
  81. *
  82. * @return string Processed string.
  83. *
  84. * @see JFilterOutput::ampReplace()
  85. * @since 3.4
  86. */
  87. public function ampReplace($text)
  88. {
  89. return JFilterOutput::ampReplace($text);
  90. }
  91. /**
  92. * Helper wrapper method for _ampReplaceCallback
  93. *
  94. * @param string $m String to process.
  95. *
  96. * @return string Replaced string.
  97. *
  98. * @see JFilterOutput::_ampReplaceCallback()
  99. * @since 3.4
  100. */
  101. public function _ampReplaceCallback($m)
  102. {
  103. return JFilterOutput::_ampReplaceCallback($m);
  104. }
  105. /**
  106. * Helper wrapper method for cleanText
  107. *
  108. * @param string &$text Text to clean.
  109. *
  110. * @return string Cleaned text.
  111. *
  112. * @see JFilterOutput::cleanText()
  113. * @since 3.4
  114. */
  115. public function cleanText(&$text)
  116. {
  117. return JFilterOutput::cleanText($text);
  118. }
  119. /**
  120. * Helper wrapper method for stripImages
  121. *
  122. * @param string $string Sting to be cleaned.
  123. *
  124. * @return string Cleaned string.
  125. *
  126. * @see JFilterOutput::stripImages()
  127. * @since 3.4
  128. */
  129. public function stripImages($string)
  130. {
  131. return JFilterOutput::stripImages($string);
  132. }
  133. /**
  134. * Helper wrapper method for stripIframes
  135. *
  136. * @param string $string Sting to be cleaned.
  137. *
  138. * @return string Cleaned string.
  139. *
  140. * @see JFilterOutput::stripIframes()
  141. * @since 3.4
  142. */
  143. public function stripIframes($string)
  144. {
  145. return JFilterOutput::stripIframes($string);
  146. }
  147. }