deleteColumns() public method

Deletes several columns by name in every row.
public deleteColumns ( array $names, boolean $deleteRecursiveInSubtables = false )
$names array List of column names to delete.
$deleteRecursiveInSubtables boolean Whether to apply this change to all subtables or not.
Exemplo n.º 1
0
 protected function deleteUnusedColumnsFromKeywordsDataTable(DataTable $dataTable)
 {
     $columnsToDelete = array(Metrics::INDEX_NB_UNIQ_VISITORS, Metrics::INDEX_PAGE_IS_FOLLOWING_SITE_SEARCH_NB_HITS, Metrics::INDEX_PAGE_ENTRY_NB_UNIQ_VISITORS, Metrics::INDEX_PAGE_ENTRY_NB_ACTIONS, Metrics::INDEX_PAGE_ENTRY_SUM_VISIT_LENGTH, Metrics::INDEX_PAGE_ENTRY_NB_VISITS, Metrics::INDEX_PAGE_ENTRY_BOUNCE_COUNT, Metrics::INDEX_PAGE_EXIT_NB_UNIQ_VISITORS);
     $dataTable->deleteColumns($columnsToDelete);
 }