1 <?php
2 /**
3 * @package Joomla.Libraries
4 * @subpackage HTML
5 *
6 * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE.txt
8 */
9
10 defined('JPATH_PLATFORM') or die;
11
12 /**
13 * Extended Utility class for batch processing widgets.
14 *
15 * @since 1.7
16 *
17 * @deprecated 4.0 Use JLayout directly
18 */
19 abstract class JHtmlBatch
20 {
21 /**
22 * Display a batch widget for the access level selector.
23 *
24 * @return string The necessary HTML for the widget.
25 *
26 * @since 1.7
27 *
28 * @deprecated 4.0 instead of JHtml::_('batch.access'); use JLayoutHelper::render('joomla.html.batch.access', array());
29 */
30 public static function access()
31 {
32 JLog::add('The use of JHtml::_("batch.access") is deprecated use JLayout instead.', JLog::WARNING, 'deprecated');
33
34 return JLayoutHelper::render('joomla.html.batch.access', array());
35 }
36
37 /**
38 * Displays a batch widget for moving or copying items.
39 *
40 * @param string $extension The extension that owns the category.
41 *
42 * @return string The necessary HTML for the widget.
43 *
44 * @since 1.7
45 *
46 * @deprecated 4.0 instead of JHtml::_('batch.item'); use JLayoutHelper::render('joomla.html.batch.item', array('extension' => 'com_XXX'));
47 */
48 public static function item($extension)
49 {
50 $displayData = array('extension' => $extension);
51
52 JLog::add('The use of JHtml::_("batch.item") is deprecated use JLayout instead.', JLog::WARNING, 'deprecated');
53
54 return JLayoutHelper::render('joomla.html.batch.item', $displayData);
55 }
56
57 /**
58 * Display a batch widget for the language selector.
59 *
60 * @return string The necessary HTML for the widget.
61 *
62 * @since 2.5
63 *
64 * @deprecated 4.0 instead of JHtml::_('batch.language'); use JLayoutHelper::render('joomla.html.batch.language', array());
65 */
66 public static function language()
67 {
68 JLog::add('The use of JHtml::_("batch.language") is deprecated use JLayout instead.', JLog::WARNING, 'deprecated');
69
70 return JLayoutHelper::render('joomla.html.batch.language', array());
71 }
72
73 /**
74 * Display a batch widget for the user selector.
75 *
76 * @param boolean $noUser Choose to display a "no user" option
77 *
78 * @return string The necessary HTML for the widget.
79 *
80 * @since 2.5
81 *
82 * @deprecated 4.0 instead of JHtml::_('batch.user'); use JLayoutHelper::render('joomla.html.batch.user', array());
83 */
84 public static function user($noUser = true)
85 {
86 $displayData = array('noUser' => $noUser);
87
88 JLog::add('The use of JHtml::_("batch.user") is deprecated use JLayout instead.', JLog::WARNING, 'deprecated');
89
90 return JLayoutHelper::render('joomla.html.batch.user', $displayData);
91 }
92
93 /**
94 * Display a batch widget for the tag selector.
95 *
96 * @return string The necessary HTML for the widget.
97 *
98 * @since 3.1
99 *
100 * @deprecated 4.0 instead of JHtml::_('batch.tag'); use JLayoutHelper::render('joomla.html.batch.tag', array());
101 */
102 public static function tag()
103 {
104 JLog::add('The use of JHtml::_("batch.tag") is deprecated use JLayout instead.', JLog::WARNING, 'deprecated');
105
106 return JLayoutHelper::render('joomla.html.batch.tag', array());
107 }
108 }
109