4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   24        $this->
setId(
"user_account_code");
 
   26        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   29        $this->
addColumn($lng->txt(
"user_account_code"), 
"code");
 
   30        $this->
addColumn($lng->txt(
"user_account_code_valid_until"), 
"valid_until");
 
   31        $this->
addColumn($lng->txt(
"user_account_code_generated"), 
"generated");
 
   32        $this->
addColumn($lng->txt(
"user_account_code_used"), 
"used");
 
   37        $this->
setFormAction($ilCtrl->getFormAction($this->parent_obj, 
"listCodes"));
 
   50        include_once 
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
 
   52        $button->setCaption(
"user_account_codes_export");
 
   53        $button->setCommand(
"exportCodes");
 
   54        $button->setOmitPreventDoubleSubmission(
true);
 
   65        global 
$lng, $rbacreview, $ilObjDataCache;
 
   69        include_once(
"./Services/User/classes/class.ilAccountCode.php");
 
   76            $this->filter[
"code"],
 
   77            $this->filter[
"valid_until"],
 
   78            $this->filter[
"generated"]
 
   81        if (count($codes_data[
"set"]) == 0 && $this->
getOffset() > 0) {
 
   88                $this->filter[
"code"],
 
   89                $this->filter[
"valid_until"],
 
   90                $this->filter[
"generated"]
 
   95        foreach ($codes_data[
"set"] as $k => 
$code) {
 
  104            if (
$code[
"valid_until"] === 
"0") {
 
  105                $valid = 
$lng->txt(
"user_account_code_valid_until_unlimited");
 
  106            } elseif (is_numeric(
$code[
"valid_until"])) {
 
  129        include_once(
"./Services/User/classes/class.ilAccountCode.php");
 
  132        include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
 
  136        $ti->setSubmitFormOnEnter(
true);
 
  138        $ti->readFromSession();
 
  139        $this->filter[
"code"] = $ti->getValue();
 
  142        include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
 
  143        $options = array(
"" => 
$lng->txt(
"user_account_code_generated_all"));
 
  150        $si->readFromSession();
 
  151        $this->filter[
"generated"] = 
$si->getValue();
 
  159        $this->tpl->setVariable(
"ID", 
$code[
"code_id"]);
 
  160        $this->tpl->setVariable(
"VAL_CODE", 
$code[
"code"]);
 
  161        $this->tpl->setVariable(
"VAL_VALID_UNTIL", 
$code[
"valid_until"]);
 
  162        $this->tpl->setVariable(
"VAL_GENERATED", 
$code[
"generated"]);
 
  163        $this->tpl->setVariable(
"VAL_USED", 
$code[
"used"]);
 
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
An exception for terminatinating execution or to throw for unit testing.
static getGenerationDates()
static getCodesData($order_field, $order_direction, $offset, $limit, $filter_code, $filter_valid_until, $filter_generated)
TableGUI class for account codes.
getItems()
Get user items.
fillRow($code)
Fill table row.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date @access public.
@classDescription Date and time handling
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
setEnableHeader($a_enableheader)
Set Enable Header.
setExternalSorting($a_val)
Set external sorting.
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
setData($a_data)
set table data @access public
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
setEnableTitle($a_enabletitle)
Set Enable Title.
addCommandButtonInstance(ilButtonBase $a_button)
Add Command button instance.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
resetOffset($a_in_determination=false)
Reset offset.
addMultiCommand($a_cmd, $a_text)
Add Command button.
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
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.
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.
setExternalSegmentation($a_val)
Set external segmentation.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setFilterCommand($a_val, $a_caption=null)
Set filter command.
getOrderDirection()
Get order direction.
setMaxCount($a_max_count)
set max.
This class represents a text property in a property form.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled