コード例 #1
0
 /**
  * Get selectable columns
  *
  * @param       arIndexTableGUI $translator used as translating instance
  *
  * @return        array
  */
 function getSelectableColumns(arIndexTableGUI $translator)
 {
     if (empty($this->selectable_columns)) {
         foreach ($this->getFields() as $field) {
             /**
              * @var arIndexTableField $field
              */
             if ($field->getVisible()) {
                 $this->selectable_columns[$field->getName()] = array("txt" => $translator->txt($field->getTxt()), "default" => $field->getVisibleDefault());
             }
         }
     }
     return $this->selectable_columns;
 }
コード例 #2
0
 public function index()
 {
     $table = new arIndexTableGUI(new ilPersonalDesktopGUI(), 'index', arStorageRecordStorage::getCollection());
     $this->tpl->setContent($table->getHTML());
 }
コード例 #3
0
 /**
  * @param arGUI            $a_parent_obj
  * @param string           $a_parent_cmd
  * @param ActiveRecordList $active_record_list
  * @param null             $custom_title
  * @param null             $ids
  */
 public function __construct(arGUI $a_parent_obj, $a_parent_cmd, ActiveRecordList $active_record_list, $custom_title = NULL, $ids = NULL)
 {
     $this->setIds($ids);
     parent::__construct($a_parent_obj, $a_parent_cmd, $active_record_list, $custom_title);
 }
コード例 #4
0
ファイル: class.arGUI.php プロジェクト: arlendotcn/ilias
 /**
  * @param string $action_name
  */
 function multiAction($action_name = "")
 {
     $ids = array();
     if ($_POST['id']) {
         foreach ($_POST['id'] as $id) {
             $ids[] = arIndexTableGUI::domid_decode($id);
         }
     }
     if (empty($ids)) {
         ilUtil::sendFailure($this->txt("no_checkbox", false), true);
         $this->ctrl->redirect($this, "index");
     }
     switch ($action_name) {
         case "delete":
             $this->deleteMultiple($ids);
             break;
         default:
             $this->customMultiAction($action_name, $ids);
             break;
     }
 }