You are here

function crumbs_UI_TableColumns::addColName in Crumbs, the Breadcrumbs suite 7.2

Parameters

string $colName:

Throws

Exception

File

lib/UI/TableColumns.php, line 35

Class

crumbs_UI_TableColumns

Code

function addColName($colName) {
  if (isset($this->cols[$colName])) {
    throw new \Exception("Column '{$colName}' already exists.");
  }
  $this->cols[$colName] = TRUE;
}