JFormInspector::findFieldsByGroup()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
4
 * @license    GNU General Public License version 2 or later; see LICENSE
5
 */
6
7
namespace Joomla\Form\Tests;
8
use Joomla\Registry\Registry;
9
10
/**
11
 * JFormInspector class.
12
 *
13
 * @since  1.0
14
 */
15
class JFormInspector extends \Joomla\Form\Form
0 ignored issues
show
Deprecated Code introduced by
The class Joomla\Form\Form has been deprecated with message: The joomla/form package is deprecated

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
16
{
17
	/**
18
	 * Test...
19
	 *
20
	 * @param   \SimpleXMLElement  $source  The source element on which to append.
21
	 * @param   \SimpleXMLElement  $new     The new element to append.
22
	 *
23
	 * @return  void
24
	 *
25
	 * @since   1.0
26
	 */
27
	public static function addNode(\SimpleXMLElement $source, \SimpleXMLElement $new)
28
	{
29
		parent::addNode($source, $new);
30
	}
31
32
	/**
33
	 * Test...
34
	 *
35
	 * @param   \SimpleXMLElement  $source  The source element on which to append the attributes
36
	 * @param   \SimpleXMLElement  $new     The new element to append
37
	 *
38
	 * @return  void
39
	 *
40
	 * @since   1.0
41
	 */
42
	public static function mergeNode(\SimpleXMLElement $source, \SimpleXMLElement $new)
43
	{
44
		parent::mergeNode($source, $new);
45
	}
46
47
	/**
48
	 * Test...
49
	 *
50
	 * @param   \SimpleXMLElement  $source  The source element.
51
	 * @param   \SimpleXMLElement  $new     The new element to merge.
52
	 *
53
	 * @return  void
54
	 *
55
	 * @since   1.0
56
	 */
57
	public static function mergeNodes(\SimpleXMLElement $source, \SimpleXMLElement $new)
58
	{
59
		parent::mergeNodes($source, $new);
60
	}
61
62
	/**
63
	 * Test...
64
	 *
65
	 * @param   string  $element  The XML element object representation of the form field.
66
	 * @param   mixed   $value    The value to filter for the field.
67
	 *
68
	 * @return  mixed   The filtered value.
69
	 *
70
	 * @since   1.0
71
	 */
72
	public function filterField($element, $value)
73
	{
74
		return parent::filterField($element, $value);
75
	}
76
77
	/**
78
	 * Test...
79
	 *
80
	 * @param   string  $name   The name of the form field.
81
	 * @param   string  $group  The optional dot-separated form group path on which to find the field.
82
	 *
83
	 * @return  mixed  The XML element object for the field or boolean false on error.
84
	 *
85
	 * @since   1.0
86
	 */
87
	public function findField($name, $group = null)
88
	{
89
		return parent::findField($name, $group);
90
	}
91
92
	/**
93
	 * Test...
94
	 *
95
	 * @param   string  $group  The dot-separated form group path on which to find the group.
96
	 *
97
	 * @return  mixed  An array of XML element objects for the group or boolean false on error.
98
	 *
99
	 * @since   1.0
100
	 */
101
	public function &findGroup($group)
102
	{
103
		return parent::findGroup($group);
104
	}
105
106
	/**
107
	 * Test...
108
	 *
109
	 * @param   mixed    $group   The optional dot-separated form group path on which to find the fields.
110
	 *                            Null will return all fields. False will return fields not in a group.
111
	 * @param   boolean  $nested  True to also include fields in nested groups that are inside of the
112
	 *                            group for which to find fields.
113
	 *
114
	 * @return  mixed  Boolean false on error or array of SimpleXMLElement objects.
115
	 *
116
	 * @since   1.0
117
	 */
118
	public function &findFieldsByGroup($group = null, $nested = false)
119
	{
120
		return parent::findFieldsByGroup($group, $nested);
121
	}
122
123
	/**
124
	 * Test...
125
	 *
126
	 * @param   string  $name  The name of the fieldset.
127
	 *
128
	 * @return  mixed  Boolean false on error or array of SimpleXMLElement objects.
129
	 *
130
	 * @since   1.0
131
	 */
132
	public function &findFieldsByFieldset($name)
133
	{
134
		return parent::findFieldsByFieldset($name);
135
	}
136
137
	/**
138
	 * Test...
139
	 *
140
	 * @return  object
141
	 *
142
	 * @since   1.0
143
	 */
144
	public function getData()
145
	{
146
		return $this->data;
147
	}
148
149
	/**
150
	 * Test...
151
	 *
152
	 * @return  array  Return the protected options array.
153
	 *
154
	 * @since   1.0
155
	 */
156
	public function getOptions()
157
	{
158
		return $this->options;
159
	}
160
161
	/**
162
	 * Test...
163
	 *
164
	 * @return  \SimpleXMLElement
165
	 *
166
	 * @since   1.0
167
	 */
168
	public function getXML()
169
	{
170
		return $this->xml;
171
	}
172
173
	/**
174
	 * Test...
175
	 *
176
	 * @param   string  $element  The XML element object representation of the form field.
177
	 * @param   string  $group    The optional dot-separated form group path on which to find the field.
178
	 * @param   mixed   $value    The optional value to use as the default for the field.
179
	 *
180
	 * @return  \Joomla\Form\Field
181
	 *
182
	 * @since   1.0
183
	 */
184
	public function loadField($element, $group = null, $value = null)
185
	{
186
		return parent::loadField($element, $group, $value);
187
	}
188
189
	/**
190
	 * Test...
191
	 *
192
	 * @param   \SimpleXMLElement          $element  The XML element object representation of the form field.
193
	 * @param   string                     $group    The optional dot-separated form group path on which to find the field.
194
	 * @param   mixed                      $value    The optional value to use as the default for the field.
195
	 * @param   \Joomla\Registry\Registry  $input    An optional Registry object with the entire data set to validate
196
	 *                                               against the entire form.
197
	 *
198
	 * @return  boolean
199
	 *
200
	 * @since   1.0
201
	 */
202
	public function validateField(\SimpleXMLElement $element, $group = null, $value = null, Registry $input = null)
203
	{
204
		return parent::validateField($element, $group, $value, $input);
205
	}
206
}
207