Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
form_question_type_country.inc
1 <?php
18 require_once dirname(__FILE__).'/../form_question_type_select/form_question_type_select.inc';
19 
20 global $standards_lists_countries;
21 require_once SQ_FUDGE_PATH.'/standards_lists/countries.inc';
22 
35 {
36 
37 
45  function Form_Question_Type_Country($assetid=0,$data=Array())
46  {
47  $this->Form_Question_Type_Select($assetid,$data);
48 
49  }//end constructor
50 
51 
58  function getOptions()
59  {
60  global $standards_lists_countries;
61 
62  if (count($this->attr('available'))) {
63  $options = Array();
64  foreach ($this->attr('available') as $code) {
65  $options[$code] = $standards_lists_countries[$code];
66  }
67  } else {
68  $options = $standards_lists_countries;
69  }
70 
71  return $options;
72 
73  }//end getOptions()
74 
75 
82  function getCompleteOptions()
83  {
84  global $standards_lists_countries;
85  return $standards_lists_countries;
86 
87  }//end getCompleteOptions()
88 
89 
90 }//end class
91 ?>