RadioGroup
class RadioGroup extends AbstractTypifiedElementCollection implements ISimpleSetter (View source)
Represents a group of radio buttons.
Properties
protected string | $elementClass | Element class, that is allowed in the collection. | from AbstractElementCollection |
private string | $_name | Name of the element. | from AbstractTypifiedElementCollection |
Methods
Initializes collection with a list of elements.
Determines if an element can be added to a collection.
Creates new collection by wrapping given array of Node elements.
Determines if class is NodeElement aware.
Checks that element's class is allowed in collection.
Sets a name of an element.
Indicates if radio has selected button.
Returns selected radio button.
Selects radio button, that contains given text.
Selects radio button that have a value matching the specified argument.
Selects radio button by the given index.
Sets value to the element.
Details
at line 27
__construct(array $elements = array())
Initializes collection with a list of elements.
at line 43
protected boolean
acceptElement(mixed $element)
Determines if an element can be added to a collection.
void
offsetSet(mixed $index, mixed $newval)
Offset to set.
static AbstractElementCollection
fromNodeElements(array $node_elements, string $element_class = null, IPageFactory $page_factory)
Creates new collection by wrapping given array of Node elements.
protected boolean
isNodeElementAware(string $class_name)
Determines if class is NodeElement aware.
protected boolean
assertElement(mixed $element)
Checks that element's class is allowed in collection.
Expectation
shouldReceive(string $name)
ITypifiedElement
setName(string $name)
Sets a name of an element.
This method is used by initialization mechanism and is not intended to be used directly.
string
getName()
Returns name of the entity.
at line 53
boolean
hasSelectedButton()
Indicates if radio has selected button.
at line 71
RadioButton
getSelectedButton()
Returns selected radio button.
at line 91
RadioGroup
selectButtonByLabelText(string $text)
Selects radio button, that contains given text.
at line 116
RadioGroup
selectButtonByValue(string $value)
Selects radio button that have a value matching the specified argument.
at line 141
RadioGroup
selectButtonByIndex(integer $index)
Selects radio button by the given index.
at line 164
ISimpleSetter
setValue(mixed $value)
Sets value to the element.