5use \ILIAS\UI\Component\Modal\RoundTrip;
 
   29        $DIC->language()->loadLanguageModule(
'cmix');
 
   33        $this->
setId(self::TABLE_ID);
 
   36        $DIC->language()->loadLanguageModule(
'form');
 
   38        $this->
setFormAction($DIC->ctrl()->getFormAction($a_parent_obj, $a_parent_cmd));
 
   39        $this->
setRowTemplate(
'tpl.cmix_statements_table_row.html', 
'Modules/CmiXapi');
 
   41        #$this->setTitle($DIC->language()->txt('tbl_statements_header')); 
   42        #$this->setDescription($DIC->language()->txt('tbl_statements_header_info')); 
   58        $this->
addColumn($DIC->language()->txt(
'tbl_statements_date'), 
'date');
 
   60        if ($this->isMultiActorReport) {
 
   61            $this->
addColumn($DIC->language()->txt(
'tbl_statements_actor'), 
'actor');
 
   64        $this->
addColumn($DIC->language()->txt(
'tbl_statements_verb'), 
'verb');
 
   65        $this->
addColumn($DIC->language()->txt(
'tbl_statements_object'), 
'object');
 
   74        if ($this->isMultiActorReport) {
 
   76            $ti->setDataSource(
$DIC->ctrl()->getLinkTarget($this->parent_obj, 
'asyncUserAutocomplete', 
'', 
true));
 
   77            $ti->setMaxLength(64);
 
   80            $ti->readFromSession();
 
   81            $this->
filter[
"actor"] = $ti->getValue();
 
   85        if (strtolower($this->ctrl->getCmdClass()) == 
"illticonsumerxapistatementsgui") {
 
   88            $verbs = $this->parent_obj->getVerbs(); 
 
   92        $si->readFromSession();
 
   95        $dp->setShowTime(
true);
 
   97        $dp->readFromSession();
 
   98        $this->
filter[
"period"] = $dp->getValue();
 
  105        $r = 
$DIC->ui()->renderer();
 
  116        $this->tpl->setVariable(
'STMT_DATE', $date);
 
  118        if ($this->isMultiActorReport) {
 
  119            $actor = 
$data[
'actor'];
 
  121                $this->tpl->setVariable(
'STMT_ACTOR', 
'user_not_found');
 
  132        $this->tpl->setVariable(
'STMT_OBJECT', 
$data[
'object']);
 
  133        $this->tpl->setVariable(
'STMT_OBJECT_INFO', 
$data[
'object_info']);
 
  134        $this->tpl->setVariable(
'ACTIONS', $r->render($actionsList));
 
  135        $this->tpl->setVariable(
'RAW_DATA_MODAL', $r->render($rawDataModal));
 
  141        $f = 
$DIC->ui()->factory();
 
  143        $actions = 
$f->dropdown()->standard([
 
  145                $DIC->language()->txt(
'tbl_action_raw_data'),
 
  148        ])->withLabel(
$DIC->language()->txt(
'actions'));
 
  156        $f = 
$DIC->ui()->factory();
 
  158        $modal = 
$f->modal()->roundtrip(
 
  160            $f->legacy(
'<pre>' . 
$data[
'statement'] . 
'</pre>')
 
  161        )->withCancelButtonLabel(
'close');
 
  172            $ret = $userObj->getFullname();
 
  173        } 
catch (Exception 
$e) {
 
  174            $ret = 
$DIC->language()->txt(
'deleted_user');
 
An exception for terminatinating execution or to throw for unit testing.
static fromXapiTimestamp($xapiTimestamp)
fillRow($data)
Standard Version of Fill Row.
getUsername(ilCmiXapiUser $cmixUser)
getActionsList(RoundTrip $rawDataModal, $data)
__construct($a_parent_obj, $a_parent_cmd, $isMultiActorReport)
ilTable2GUI constructor.
static getVerbTranslation(ilLanguage $lng, $verb)
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
setExternalSorting($a_val)
Set external sorting.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
This class represents a text property in a property form.
getShowSignal()
Get the signal to show this modal in the frontend.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc