CoreFiles by mySites.guru
votelist.php43 lines, 830 bytes, from Joomla_3.7.2-Stable-Full_Package.zip
Raw History Compare with 3.7.1
md5
ea71117ceaaa7635571638bc6e76dc8f
sha1
4e752755702e510c62b58f995ea2f2f06903c08b
sha256
672c6aa3ee66214b4c59e7ba66c28fb6095a372c9b8a5c40ec9d1ac54dd0ecc9
<?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('list');

/**
 * Votelist Field class.
 *
 * @since  3.7.1
 */
class JFormFieldVotelist extends JFormFieldList
{
	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  3.7.1
	 */
	protected $type = 'Votelist';

	/**
	 * 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 14 releases, Joomla 3.7.1-rc1 to 3.8.0-beta2. See them all, or every version of this file.