FOF30\Database\Installer::getColumnCollation PHP Метод

getColumnCollation() приватный Метод

Get the collation of a column. Uses an internal cache for efficiency.
private getColumnCollation ( string $tableName, string $columnName ) : string
$tableName string The name of the table
$columnName string The name of the column
Результат string The collation, e.g. "utf8_general_ci"
    private function getColumnCollation($tableName, $columnName)
    {
        static $cache = array();
        $tableName = $this->db->replacePrefix($tableName);
        $columnName = $this->db->replacePrefix($columnName);
        if (!isset($cache[$tableName])) {
            $cache[$tableName] = array();
        }
        if (!isset($cache[$tableName][$columnName])) {
            $cache[$tableName][$columnName] = $this->realGetColumnCollation($tableName, $columnName);
        }
        return $cache[$tableName][$columnName];
    }