FOF30\Database\Installer::getTableCollation PHP Method

getTableCollation() private method

Get the collation of a table. Uses an internal cache for efficiency.
private getTableCollation ( string $tableName ) : string
$tableName string The name of the table
return string The collation, e.g. "utf8_general_ci"
    private function getTableCollation($tableName)
    {
        static $cache = array();
        $tableName = $this->db->replacePrefix($tableName);
        if (!isset($cache[$tableName])) {
            $cache[$tableName] = $this->realGetTableCollation($tableName);
        }
        return $cache[$tableName];
    }