PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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