Skip to content

Commit

Permalink
Dev: Added extra fields returned for list_groups and list_questions API.
Browse files Browse the repository at this point in the history
Dev Show all available group / question attributes
  • Loading branch information
gabrieljenik committed Apr 2, 2015
1 parent bbd6b61 commit b77fdb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/remotecontrol/remotecontrol_handle.php
Expand Up @@ -1748,7 +1748,7 @@ public function list_groups($sSessionKey, $iSurveyID)

foreach ($oGroupList as $oGroup)
{
$aData[]= array('id'=>$oGroup->primaryKey,'group_name'=>$oGroup->attributes['group_name'], 'group_order'=>$oGroup->attributes['group_order']);
$aData[]= array('id'=>$oGroup->primaryKey) + $oGroup->attributes;
}
return $aData;
}
Expand Down Expand Up @@ -1873,7 +1873,7 @@ public function list_questions($sSessionKey, $iSurveyID, $iGroupID=NULL, $sLangu

foreach ($aQuestionList as $oQuestion)
{
$aData[]= array('id'=>$oQuestion->primaryKey,'title'=>$oQuestion->attributes['title'],'type'=>$oQuestion->attributes['type'], 'question'=>$oQuestion->attributes['question'], 'gid'=>$oQuestion->attributes['gid'], 'question_order'=>$oQuestion->attributes['question_order'], 'relevance'=>$oQuestion->attributes['relevance']);
$aData[]= array('id'=>$oQuestion->primaryKey) + $oQuestion->attributes;
}
return $aData;
}
Expand Down

0 comments on commit b77fdb7

Please sign in to comment.