Location: PHPKode > projects > Neobill > NeoBill0.5.6/solidworks/validators/CountryValidator.class.php
<?php
/**
 * CountryValidator.class.php
 *
 * This file contains the definition of the CountryValidator class.
 *
 * @package SolidWorks
 * @author John Diamond <hide@address.com>
 * @copyright John Diamond <hide@address.com>
 * @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
 */

/**
 * CountryValidator
 *
 * @package SolidWorks
 * @author John Diamond <hide@address.com>
 */
class CountryValidator extends ChoiceValidator {
	/**
	 * Get Valid Choices
	 *
	 * Returns an array of values that are considered valid for this choice
	 *
	 * @return array An array of valid choices
	 */
	function getValidChoices() {
		global $cc;
		return array_keys( $cc );
	}
}
?>
Return current item: Neobill