- md5
- 7b5525dbb558e67031fd5b866b7516a9
- sha1
- a65dcc129a4a3090aeb4b2f76b51d202cb14cd78
- sha256
- f2c854e56f8e158f44b1a27856b58503e6543804aea716262dfe5d7b5a7c2d14
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Form\Field;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Form Field class for the Joomla Platform.
* Provides radio button inputs using default styling
*
* @since 4.0.0
*
* @deprecated 5.2 will be moved to the b/c plugin in 7.0 and removed in 8.0
* Use \Joomla\CMS\Form\Field\RadioField instead
*/
class RadiobasicField extends ListField
{
/**
* The form field type.
*
* @var string
* @since 4.0.0
*/
protected $type = 'Radiobasic';
/**
* Name of the layout being used to render the field
*
* @var string
* @since 4.0.0
*/
protected $layout = 'joomla.form.field.radiobasic';
/**
* Method to get the radio button field input markup.
*
* @return string The field input markup.
*
* @since 4.0.0
*/
protected function getInput()
{
return $this->getRenderer($this->layout)->render($this->collectLayoutData());
}
/**
* Method to get the data to be passed to the layout for rendering.
*
* @return array
*
* @since 4.0.0
*/
protected function getLayoutData()
{
$data = parent::getLayoutData();
$extraData = [
'options' => $this->getOptions(),
'value' => (string) $this->value,
];
return array_merge($data, $extraData);
}
}
The same content is in 9 releases, Joomla 6.2.0-alpha2 to 6.2.1-rc1. See them all, or every version of this file.