Example #1
0
 public function resetTableColumnToDefault($result)
 {
     // get data from class
     $obj = R3Controller::factory(array('on' => $this->module));
     $tableConfig = new R3BaseTableConfig(R3AuthInstance::get());
     $tableConfig->resetConfig($this->module);
     return array('status' => R3_AJAX_NO_ERROR);
 }
Example #2
0
 /**
  * Create the table header
  * param string $order             The table order
  */
 public function createListTableHeader(&$order)
 {
     $tableConfig = new R3BaseTableConfig(R3AuthInstance::get());
     $tableColumns = $tableConfig->getConfig($this->getTableColumnConfig(), $this->baseName);
     foreach ($tableColumns as $fieldName => $colDef) {
         if ($colDef['visible']) {
             $this->simpleTable->addSimpleField($colDef['label'], $fieldName, $colDef['type'], $colDef['width'], $colDef['options']);
         }
     }
     $this->simpleTable->addSimpleField(_('Azione'), '', 'link', 85);
     $this->tableHtml = $this->simpleTable->CreateTableHeader($order, 'global_strategy_list_table');
 }
Example #3
0
 public function createListTableHeader(&$order)
 {
     $this->columnTypes = array();
     $tableConfig = new R3BaseTableConfig(R3AuthInstance::get());
     $tableColumns = $tableConfig->getConfig($this->getTableColumnConfig(), $this->baseName);
     foreach ($tableColumns as $fieldName => $colDef) {
         $this->columnTypes[$fieldName] = array('type' => strtolower($colDef['type']), 'options' => $colDef['options']);
         if ($colDef['visible']) {
             $this->simpleTable->addSimpleField($colDef['label'], $fieldName, 'CALCULATED', $colDef['width'], $colDef['options']);
         }
     }
     if ($this->hasInvalidSimulation()) {
         $this->simpleTable->addSimpleField(_('Stato'), 'status', 'CALCULATED', 100);
     }
     $this->simpleTable->addSimpleField(_('Azione'), '', 'link', 85);
     $this->tableHtml = $this->simpleTable->CreateTableHeader($order, 'global_strategy_list_table');
 }