12    public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
 
   14        parent::__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj);
 
   16        $this->
addCustomColumn($this->lng->txt(
'status'), $this, 
'parseExportStatus');
 
   23        foreach ($this->parent_obj->getFormats() as $f) {
 
   25            $this->formats[$f[
'key']] = $f[
'txt'];
 
   29        foreach ($types as 
$type) {
 
   33            if (!is_dir($dir) || !is_writeable($dir)) {
 
   41            while ($entry = $h_dir->read()) {
 
   42                if ($entry != 
"." && $entry != 
"..") {
 
   43                    $ts = substr($entry, 0, strpos($entry, 
"__"));
 
   71            $this->tpl->setCurrentBlock(
'custom');
 
   72            $this->tpl->setVariable(
'VAL_CUSTOM', $c[
'obj']->{$c[
'func']}($a_set[
'type'], $a_set[
'file']) . 
' ');
 
   73            $this->tpl->parseCurrentBlock();
 
   77        $this->tpl->setVariable(
'VAL_ID', $file_id);
 
   79        $type = ($this->formats[$a_set[
'type']] != 
"")
 
   80            ? $this->formats[$a_set[
'type']]
 
   82        $this->tpl->setVariable(
'VAL_TYPE', 
$type);
 
   85        $this->tpl->setVariable(
'VAL_FILE', 
$filename);
 
   91            $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->lng->txt(
'download'));
 
   96            $this->tpl->setVariable(
'URL_DOWNLOAD', 
$url);
 
  102        if (
$type == 
'xlsx') {
 
  104                return $this->lng->txt(
'dcl_export_started');
 
  106                return $this->lng->txt(
'dcl_export_finished');
 
  110            return $this->lng->txt(
'dcl_export_finished');
 
An exception for terminatinating execution or to throw for unit testing.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
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