2include_once(
"./Services/Component/classes/class.ilPluginConfigGUI.php");
 
    3include_once(
'./Services/ActiveRecord/class.ActiveRecordList.php');
 
    4include_once(
'./Services/ActiveRecord/Views/Index/class.arIndexTableGUI.php');
 
    5include_once(
'./Services/UICore/classes/class.ilTemplate.php');
 
   58        $ilAccess = 
$DIC[
'ilAccess'];
 
   70        $this->access = $ilAccess;
 
   79        $cmd = $this->ctrl->getCmd();
 
   88                $action_name = 
$_POST[
"index_table_multi_action_2"];
 
  104            $index_table_gui_class = $this->record_type . 
"IndexTableGUI";
 
  108            $table_gui = 
new $index_table_gui_class($this, 
"index", 
new ActiveRecordList($this->ar));
 
  110        $this->tpl->setContent($table_gui->getHTML());
 
  114    public function applyFilter()
 
  116        $index_table_gui_class = $this->record_type . 
"IndexTableGUI";
 
  120        $table_gui = 
new $index_table_gui_class($this, 
"index", 
new ActiveRecordList($this->ar));
 
  121        $table_gui->applyFilter();
 
  126    public function resetFilter()
 
  128        $index_table_gui_class = $this->record_type . 
"IndexTableGUI";
 
  132        $table_gui = 
new $index_table_gui_class($this, 
"index", 
new ActiveRecordList($this->ar));
 
  133        $table_gui->resetFilter();
 
  152            $this->ctrl->redirect($this, 
"index");
 
  155        switch ($action_name) {
 
  157                $this->deleteMultiple($ids);
 
  178    public function edit(
$id)
 
  180        $edit_gui_class = $this->record_type . 
"EditGUI";
 
  184        $edit_gui = 
new $edit_gui_class($this, $this->ar->find(
$id));
 
  185        $this->tpl->setContent($edit_gui->getHTML());
 
  189    public function add()
 
  191        $edit_gui_class = $this->record_type . 
"EditGUI";
 
  195        $edit_gui = 
new $edit_gui_class($this, $this->ar);
 
  196        $this->tpl->setContent($edit_gui->getHTML());
 
  200    public function create()
 
  202        $edit_gui_class = $this->record_type . 
"EditGUI";
 
  206        $edit_gui = 
new $edit_gui_class($this, $this->ar);
 
  207        $this->
save($edit_gui);
 
  216        $edit_gui_class = $this->record_type . 
"EditGUI";
 
  220        $edit_gui = 
new $edit_gui_class($this, $this->ar->find(
$id));
 
  221        $this->
save($edit_gui);
 
  230        if ($edit_gui->saveObject()) {
 
  232            $this->ctrl->redirect($this, 
"index");
 
  234            $this->tpl->setContent($edit_gui->
getHTML());
 
  244        return $this->
txt((
'record_created'), 
true);
 
  251    public function view(
$id)
 
  253        $display_gui_class = $this->record_type . 
"DisplayGUI";
 
  257        $display_gui = 
new $display_gui_class($this, $this->ar->find(
$id));
 
  258        $this->tpl->setContent($display_gui->getHtml());
 
  265    public function delete(
$id)
 
  267        $this->deleteMultiple(array( 
$id ));
 
  274    public function deleteMultiple($ids = 
null)
 
  276        $delete_gui_class = $this->record_type . 
"DeleteGUI";
 
  280        $delete_gui = 
new $delete_gui_class($this, 
"delete", 
new ActiveRecordList($this->ar), 
"delete", $ids);
 
  281        if (count($ids) == 1) {
 
  286        $this->tpl->setContent($delete_gui->getHTML());
 
  295        return $this->
txt((
'delete_records_confirmation'), 
true);
 
  304        return $this->
txt((
'delete_record_confirmation'), 
true);
 
  310        $nr_ids = 
$_POST[
'nr_ids'];
 
  311        for (
$i = 0; 
$i < $nr_ids; 
$i++) {
 
  313            $record = $this->ar->find(
$id);
 
  322        $this->ctrl->redirect($this, 
"index");
 
  331        return $this->
txt((
'records_deleted'), 
true);
 
  340        return $this->
txt((
'record_deleted'), 
true);
 
  373            return $this->lng->txt(
$txt);
 
An exception for terminatinating execution or to throw for unit testing.
getDeleteRecordsMessage()
__construct($record_type, ilPlugin $plugin_object=null)
txt($txt, $plugin_txt=true)
setLngPrefix($lng_prefix)
customMultiAction($action_name="", $ids=null)
multiAction($action_name="")
getDeleteRecordConfirmationMessage()
getDeleteRecordsConfirmationMessage()
getRecordCreatedMessage()
save(arEditGUI $edit_gui)
GUI-Class arIndexTableGUI.
static domid_decode($id_to_decode)
static sendQuestion($a_info="", $a_keep=false)
Send Question to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
if(!array_key_exists('StateId', $_REQUEST)) $id
update($pash, $contents, Config $config)