5 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
26 public function __construct($a_parent_obj, $a_parent_cmd, $a_id)
28 $this->
setId(
'obj_copy_progress_table_' . $a_id);
29 parent::__construct($a_parent_obj, $a_parent_cmd,
'');
34 $this->objects = $a_ref_ids;
44 $GLOBALS[
'tpl']->addOnLoadCode(
'il.CopyRedirection.setRedirectUrl("'.$a_url.
'")');
52 $GLOBALS[
'tpl']->addJavaScript(
'./Services/CopyWizard/js/ilCopyRedirection.js');
53 $GLOBALS[
'tpl']->addOnLoadCode(
'il.CopyRedirection.checkDone()');
57 $this->
setRowTemplate(
'tpl.object_copy_progress_table_row.html',
'Services/Object');
59 $this->
addColumn($this->lng->txt(
'obj_target_location'),
'');
60 $this->
addColumn($this->lng->txt(
'obj_copy_progress'),
'');
69 $this->tpl->setVariable(
'VAL_ID', $set[
'ref_id']);
70 $this->tpl->setVariable(
'OBJ_TITLE', $set[
'title']);
72 if (strlen($set[
'description']))
74 $this->tpl->setVariable(
'VAL_DESC', $set[
'description']);
78 $this->tpl->setVariable(
'TYPE_STR', $this->lng->txt(
'obj_' . $set[
'type']));
80 include_once
'./Services/UIComponent/ProgressBar/classes/class.ilProgressBar.php';
84 $progress->setMax($set[
'max_steps']);
85 $progress->setCurrent(0);
86 $progress->setAnimated(TRUE);
87 $progress->setId($set[
'copy_id']);
90 $progress->setAsyncStatusUrl(
99 $progress->setAsynStatusTimeout(1);
100 $this->tpl->setVariable(
'PROGRESS_BAR', $progress->render());
114 $set[
$counter][
'copy_id'] = $copy_id;
120 include_once
'./Services/CopyWizard/classes/class.ilCopyWizardOptions.php';
123 $set[
$counter][
'max_steps'] = $copy_info->getRequiredSteps();
setExternalSorting($a_val)
Set external sorting.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static _lookupTitle($a_id)
lookup object title
__construct($a_parent_obj, $a_parent_cmd, $a_id)
Constructor.
static getTypeIconPath($a_type, $a_obj_id, $a_size='small')
Get type icon path path Return image path for icon_xxx.pngs Or (if enabled) path to custom icon Depre...
getParentObject()
Get parent object.
setObjectInfo($a_ref_ids)
Table gui for copy progress.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
static getInstance()
Factory.
static _lookupDescription($a_id)
lookup object description
static _lookupObjId($a_id)
getFormAction()
Get Form action parameter.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
setRedirectionUrl($a_url)