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;
45 $DIC->ui()->mainTemplate()->addOnLoadCode(
'il.CopyRedirection.setRedirectUrl("' . $a_url .
'")');
55 $tpl = $DIC->ui()->mainTemplate();
57 $lng = $DIC->language();
59 $tpl->addJavaScript(
'./Services/CopyWizard/js/ilCopyRedirection.js');
60 $tpl->addOnLoadCode(
'il.CopyRedirection.checkDone()');
64 $this->
setRowTemplate(
'tpl.object_copy_progress_table_row.html',
'Services/Object');
78 $tpl = $DIC->ui()->mainTemplate();
80 $lng = $DIC->language();
82 $this->tpl->setVariable(
'VAL_ID', $set[
'ref_id']);
83 $this->tpl->setVariable(
'OBJ_TITLE', $set[
'title']);
85 if (strlen($set[
'description'])) {
86 $this->tpl->setVariable(
'VAL_DESC', $set[
'description']);
90 $this->tpl->setVariable(
'TYPE_STR', $this->lng->txt(
'obj_' . $set[
'type']));
92 include_once
'./Services/UIComponent/ProgressBar/classes/class.ilProgressBar.php';
96 $progress->setMax($set[
'max_steps']);
97 $progress->setCurrent(0);
98 $progress->setAnimated(
true);
99 $progress->setId($set[
'copy_id']);
102 $progress->setAsyncStatusUrl(
103 $ctrl->getLinkTarget(
104 $this->getParentObject(),
111 $progress->setAsynStatusTimeout(1);
112 $this->tpl->setVariable(
'PROGRESS_BAR', $progress->render());
122 foreach ($this->
getObjects() as $ref_id => $copy_id) {
124 $set[$counter][
'ref_id'] = $ref_id;
125 $set[$counter][
'copy_id'] = $copy_id;
131 include_once
'./Services/CopyWizard/classes/class.ilCopyWizardOptions.php';
134 $set[$counter][
'max_steps'] = $copy_info->getRequiredSteps();
setExternalSorting($a_val)
Set external sorting.
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)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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)