4require_once(
'./Services/Export/classes/class.ilExportGUI.php');
 
    5require_once(
'./Services/Export/classes/class.ilExport.php');
 
    6require_once(
'./Services/Export/classes/class.ilExportTableGUI.php');
 
   16        public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj) {
 
   17                parent::__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj);
 
   19                $this->
addCustomColumn($this->lng->txt(
'status'), $this, 
'parseExportStatus');
 
   26                foreach ($this->parent_obj->getFormats() as $f)
 
   29                        $this->formats[$f[
'key']] = $f[
'txt'];
 
   33                foreach($types as $type)
 
   38                        if (!is_dir($dir) || !is_writeable($dir)) {
 
   46                        while ($entry = $h_dir->read())
 
   48                                if ($entry != 
"." && $entry != 
"..")
 
   50                                        $ts = substr($entry, 0, strpos($entry, 
"__"));
 
   79                        $this->tpl->setCurrentBlock(
'custom');
 
   80                        $this->tpl->setVariable(
'VAL_CUSTOM', $c[
'obj']->{$c[
'func']}($a_set[
'type'], $a_set[
'file']) . 
' ');
 
   81                        $this->tpl->parseCurrentBlock();
 
   85                $this->tpl->setVariable(
'VAL_ID', $file_id);
 
   87                $type = ($this->formats[$a_set[
'type']] != 
"")
 
   88                        ? $this->formats[$a_set[
'type']]
 
   90                $this->tpl->setVariable(
'VAL_TYPE', $type);
 
   93                $this->tpl->setVariable(
'VAL_FILE', 
$filename);
 
   99                        $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->lng->txt(
'download'));
 
  104                        $this->tpl->setVariable(
'URL_DOWNLOAD', 
$url);
 
  109                if($type == 
'xlsx') {
 
  111                                return $this->lng->txt(
'dcl_export_started');
 
  113                                return $this->lng->txt(
'dcl_export_finished');
 
  117                        return $this->lng->txt(
'dcl_export_finished');
 
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
const IN_PROGRESS_POSTFIX
Export User Interface Class.
getExportFiles()
Get export files.
__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
Constructor.
isExportInProgress($file)
parseExportStatus($type, $file)
addCustomColumn($a_txt, $a_obj, $a_func)
Add custom column.
getCustomColumns()
Get custom columns.
static _getExportDirectory($a_obj_id, $a_type="xml", $a_obj_type="", $a_entity="")
Get export directory for an repository object.
getParentObject()
Get parent object.
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file