Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
form_question_type_option_list.inc
1 <?php
18 require_once dirname(__FILE__).'/../form_question_type_tickbox_list/form_question_type_tickbox_list.inc';
19 
20 
33 {
34 
35 
43  function Form_Question_Type_Option_List($assetid=0,$data=Array())
44  {
45  $this->Form_Question_Type_Tickbox_List($assetid,$data);
46 
47  }//end constructor
48 
49 
56  function getHtmlField()
57  {
58  // generate some php for the value, which can be used for both
59  // auto-answer and returning to saved forms
60 
61  $extras = $this->attr('extra');
62  if ($this->attr('tabindex')) {
63  $extras .= ' tabindex="'.$this->attr('tabindex').'"';
64  }
65 
66  $html = $this->listBox($this->getOptions(), FALSE, $extras);
67  return $html;
68 
69  }//end getHtmlField()
70 
71 
80  function getAllowedRules()
81  {
82  return Array('selection');
83 
84  }//end getAllowedRules()
85 
86 
87 }//end class
88 ?>