24include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   45                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   55                $this->
addColumn($this->lng->txt(
"survey_code"),
'code', 
'');
 
   56                $this->
addColumn($this->lng->txt(
"email"),
'email', 
'');
 
   57                $this->
addColumn($this->lng->txt(
"lastname"),
'last_name', 
'');
 
   58                $this->
addColumn($this->lng->txt(
"firstname"),
'first_name', 
'');
 
   59                $this->
addColumn($this->lng->txt(
"create_date"),
'date', 
'');
 
   60                $this->
addColumn($this->lng->txt(
"survey_code_used"),
'used', 
'');
 
   61                $this->
addColumn($this->lng->txt(
"mail_sent_short"),
'sent', 
'');
 
   62                $this->
addColumn($this->lng->txt(
"survey_code_url"));
 
   64                $this->
setRowTemplate(
"tpl.il_svy_svy_codes_row.html", 
"Modules/Survey");
 
   68                $this->
addMultiCommand(
'deleteCodesConfirm', $this->lng->txt(
'delete'));
 
   70                $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
 
   72                include_once 
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
 
   74                $button->setCaption(
"export_all_survey_codes");
 
   75                $button->setCommand(
"exportAllCodes");
 
   76                $button->setOmitPreventDoubleSubmission(
true);          
 
   97                $this->tpl->setVariable(
'CB_CODE', 
$data[
'id']);
 
  100                if (strlen(
$data[
'href']))
 
  102                        $this->tpl->setCurrentBlock(
'url');
 
  103                        $this->tpl->setVariable(
"URL", 
$lng->txt(
"survey_code_url_name"));
 
  104                        $this->tpl->setVariable(
"HREF", 
$data[
'href']);
 
  105                        $this->tpl->parseCurrentBlock();
 
  108                $this->tpl->setVariable(
"USED", (
$data[
'used']) ? 
$lng->txt(
"used") : 
$lng->txt(
"not_used"));
 
  109                $this->tpl->setVariable(
"SENT", (
$data[
'sent']) ?  
'✓' : 
'');
 
  110                $this->tpl->setVariable(
"USED_CLASS", (
$data[
'used']) ? 
' smallgreen' : 
' smallred');
 
  112                $this->tpl->setVariable(
"CODE", 
$data[
'code']);
 
  113                $this->tpl->setVariable(
"EMAIL", 
$data[
'email']);
 
  114                $this->tpl->setVariable(
"LAST_NAME", 
$data[
'last_name']);
 
  115                $this->tpl->setVariable(
"FIRST_NAME", 
$data[
'first_name']);
 
An exception for terminatinating execution or to throw for unit testing.
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setPrefix($a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
addCommandButtonInstance(ilButtonBase $a_button)
Add Command button instance.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setFormName($a_formname="")
Set Form name.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.