Skip to content

Commit

Permalink
Tweak TenRadioArrayQuestion.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronschmitz committed Aug 15, 2012
1 parent 2a03b4d commit 9f227bd
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions application/modules/TenRadioArrayQuestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ public function getVarAttributeValueNAOK($name, $default, $gseq, $qseq, $ansArra
return LimeExpressionManager::GetVarAttribute($name,'code',$default,$gseq,$qseq);
}

public function availableAttributes($attr = false)
{
$attrs=array("answer_width","array_filter","array_filter_exclude","array_filter_style","em_validation_q","em_validation_q_tip","exclude_all_others","statistics_showgraph","statistics_graphtype","hide_tip","hidden","max_answers","min_answers","page_break","public_statistics","random_order","parent_order","random_group");
return $attr?in_array($attr,$attrs):$attrs;
}

public function getShownJS()
{
return 'return value;';
Expand All @@ -194,9 +188,10 @@ public function getValueJS()
return 'return value;';
}

public function availableOptions()
public function availableAttributes($attr = false)
{
return array('other' => false, 'valid' => false, 'mandatory' => true);
$attrs=array("answer_width","array_filter","array_filter_exclude","array_filter_style","em_validation_q","em_validation_q_tip","exclude_all_others","statistics_showgraph","statistics_graphtype","hide_tip","hidden","max_answers","min_answers","page_break","public_statistics","random_order","parent_order","random_group");
return $attr?in_array($attr,$attrs):$attrs;
}

public function questionProperties($prop = false)
Expand Down

0 comments on commit 9f227bd

Please sign in to comment.