~katiekitty/+junk/solidstate

« back to all changes in this revision

Viewing changes to solidstate/branches/v0.5 Alpha/solidworks/validators/.svn/text-base/CountryValidator.class.php.svn-base

  • Committer: root
  • Date: 2010-01-13 07:44:31 UTC
  • Revision ID: root@ds3-vamp.cs-monitor.cz.cc-20100113074431-kt8ceoeznpjg22x7
Reviving the project

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * CountryValidator.class.php
 
4
 *
 
5
 * This file contains the definition of the CountryValidator class.  
 
6
 *
 
7
 * @package SolidWorks
 
8
 * @author John Diamond <jdiamond@solid-state.org>
 
9
 * @copyright John Diamond <jdiamond@solid-state.org>
 
10
 * @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
 
11
 */
 
12
 
 
13
/**
 
14
 * CountryValidator
 
15
 *
 
16
 * @package SolidWorks
 
17
 * @author John Diamond <jdiamond@solid-state.org>
 
18
 */
 
19
class CountryValidator extends ChoiceValidator
 
20
{
 
21
  /**
 
22
   * Get Valid Choices
 
23
   *
 
24
   * Returns an array of values that are considered valid for this choice
 
25
   *
 
26
   * @return array An array of valid choices
 
27
   */
 
28
  function getValidChoices()
 
29
  {
 
30
    global $cc;
 
31
    return array_keys( $cc );
 
32
  }
 
33
}
 
34
?>
 
 
b'\\ No newline at end of file'