<?php
/**
* @package Joomla.Platform
* @subpackage HTML
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
/**
* Utility class to fire onContentPrepare for non-article based content.
*
* @package Joomla.Platform
* @subpackage HTML
* @since 11.1
*/
abstract class JHtmlContent
{
/**
* Fire onContentPrepare for content that isn't part of an article.
*
* @param string $text The content to be transformed.
* @param array $params The content params.
* @param string $context The context of the content to be transformed.
*
* @return string The content after transformation.
*
* @since 11.1
*/
public static function prepare($text, $params = null, $context = 'text')
{
if ($params === null)
{
$params = new JObject;
}
$article = new stdClass;
$article->text = $text;
JPluginHelper::importPlugin('content');
$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('onContentPrepare', array($context, &$article, &$params, 0));
return $article->text;
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| access.php | 2014-04-14 20:06 | 9.02 KB | 76129f60960:kunden | -xw-x----- | |
| batch.php | 2014-04-14 20:07 | 4.09 KB | 76129f60960:kunden | -xw-x----- | |
| behavior.php | 2014-04-14 20:06 | 32.69 KB | 76129f60960:kunden | -xw-x----- | |
| category.php | 2014-04-14 20:07 | 4.04 KB | 76129f60960:kunden | -xw-x----- | |
| content.php | 2014-04-14 20:07 | 1.17 KB | 76129f60960:kunden | -xw-x----- | |
| contentlanguage.php | 2014-04-14 20:06 | 1.66 KB | 76129f60960:kunden | -xw-x----- | |
| date.php | 2014-04-14 20:07 | 1.99 KB | 76129f60960:kunden | -xw-x----- | |
| email.php | 2014-04-14 20:06 | 3.72 KB | 76129f60960:kunden | -xw-x----- | |
| form.php | 2014-04-14 20:06 | 791 B | 76129f60960:kunden | -xw-x----- | |
| grid.php | 2014-04-14 20:06 | 10.36 KB | 76129f60960:kunden | -xw-x----- | |
| image.php | 2014-04-14 20:06 | 5.08 KB | 76129f60960:kunden | -xw-x----- | |
| index.html | 2014-04-14 20:07 | 31 B | 76129f60960:kunden | -xw-x----- | |
| jgrid.php | 2014-04-14 20:06 | 16.35 KB | 76129f60960:kunden | -xw-x----- | |
| list.php | 2014-04-14 20:07 | 9.65 KB | 76129f60960:kunden | -xw-x----- | |
| menu.php | 2014-04-14 20:07 | 8.6 KB | 76129f60960:kunden | -xw-x----- | |
| number.php | 2014-04-14 20:06 | 1.58 KB | 76129f60960:kunden | -xw-x----- | |
| rules.php | 2014-04-14 20:07 | 7.96 KB | 76129f60960:kunden | -xw-x----- | |
| select.php | 2014-04-14 20:06 | 24.96 KB | 76129f60960:kunden | -xw-x----- | |
| sliders.php | 2014-04-14 20:06 | 3.99 KB | 76129f60960:kunden | -xw-x----- | |
| string.php | 2014-04-14 20:06 | 4.5 KB | 76129f60960:kunden | -xw-x----- | |
| tabs.php | 2014-04-14 20:06 | 2.83 KB | 76129f60960:kunden | -xw-x----- | |
| tel.php | 2014-04-14 20:07 | 2.21 KB | 76129f60960:kunden | -xw-x----- | |
| user.php | 2014-04-14 20:06 | 2.38 KB | 76129f60960:kunden | -xw-x----- | |