Gets the active option's label given an array of JHtml options
public static getOptionName ( array $data, mixed $selected = null, string $groupKey = 'items', string $optKey = 'value', string $optText = 'text' ) : mixed | ||
$data | array | The JHtml options to parse |
$selected | mixed | The currently selected value |
$groupKey | string | Group name |
$optKey | string | Key name |
$optText | string | Value name |
Результат | mixed | The label of the currently selected option |