src/Helper/TableManipulator.php
public function checkColumnName($strColName, $blnAllowSystemCol = false)
    {
        if (!$this->isValidColumnName($strColName)) {
            throw InvalidColumnNameException::invalidCharacters($strColName);
        }

        if ((!$blnAllowSystemCol) && $this->isSystemColumn($strColName)) {
            throw InvalidColumnNameException::systemColumn($strColName);
        }
    }
public function checkColumnName($strColName, $blnAllowSystemCol = false)
    {
        if (!$this->isValidColumnName($strColName)) {
            throw InvalidColumnNameException::invalidCharacters($strColName);
        }

        if ((!$blnAllowSystemCol) && $this->isSystemColumn($strColName)) {
            throw InvalidColumnNameException::systemColumn($strColName);
        }
    }
Checks whether the column with the given name is not a MetaModel system column and is a valid column name.

If there is any problem, an Exception is raised, stating the nature of the error in the Exception message.

@param string  $strColName        The name of the column.

@param boolean $blnAllowSystemCol If this is set to true, no system column name checking will be applied.

@return void

@throws \Exception If an invalid column name has been passed.

@see{MetaModelTableManipulation::isSystemColumn()} and @see{MetaModelTableManipulation::isValidColumnName()}.

@SuppressWarnings(PHPMD.CamelCaseVariableName)