CoreFiles by mySites.guru
voteradio.php43 lines, 835 bytes, from Joomla_3.8.0-Stable-Full_Package.zip
Raw History Compare with 3.7.5
md5
77cec2293edb4141f728778a7020ef14
sha1
3987bc8507d092f04cddd04457a4f5c090897b50
sha256
89a60586e591656757ceae082340417f1f9a3facd5e59a357dec8c18df640bb6
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JFormHelper::loadFieldClass('radio');

/**
 * Voteradio Field class.
 *
 * @since  3.8.0
 */
class JFormFieldVoteradio extends JFormFieldRadio
{
	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  3.7.1
	 */
	protected $type = 'Voteradio';

	/**
	 * Method to get the field options.
	 *
	 * @return array The field option objects.
	 *
	 * @throws \Exception
	 *
	 * @since  3.7.1
	 */
	public function getOptions()
	{
		// Requires vote plugin enabled
		return JPluginHelper::isEnabled('content', 'vote') ? parent::getOptions() : array();
	}
}

The same content is in 6 releases, Joomla 3.8.0-beta3 to 3.8.1. See them all, or every version of this file.