foreach (array(
'surveyId',
'contactIds',
- 'interviewerId'
+ 'interviewerId',
) as $fld) {
$this->{"_$fld"} = $this->get($fld);
}
$this->addElement('select', "order_bys[{$i}][column]", ts('Order by Column'), $options);
$this->addElement('select', "order_bys[{$i}][order]", ts('Order by Order'), array(
'ASC' => 'Ascending',
- 'DESC' => 'Descending'
+ 'DESC' => 'Descending',
));
}
if (!empty($this->_resultOptions)) {
$this->add('select', "field[$contactId][result]", ts('Result'),
array(
- '' => ts('- select -')
+ '' => ts('- select -'),
) +
array_combine($this->_resultOptions, $this->_resultOptions)
);
'name' => ts('Done'),
'subName' => 'interview',
'isDefault' => TRUE,
- )
+ ),
);
$buttons[] = array(
else {
$defaults['order_bys'] =
array(
- 1 =>
- array(
- 'column' => 'contact_a.sort_name',
- 'order' => 'ASC',
- ),
+ 1 => array(
+ 'column' => 'contact_a.sort_name',
+ 'order' => 'ASC',
+ ),
);
}
return $defaults;
foreach (array(
'surveyId',
'contactIds',
- 'interviewerId'
+ 'interviewerId',
) as $fld) {
$this->controller->set($fld, $this->{"_$fld"});
}
}
// vote is done through ajax
- return;
}
/**