Inpsyde\MultilingualPress\Database\WPDBTableInstaller::get_columns PHP Метод

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

Returns the according SQL string for the columns in the given table schema.
private get_columns ( array $schema ) : string
$schema array Table schema.
Результат string The SQL string for the columns in the given table schema.
    private function get_columns(array $schema)
    {
        $sql = '';
        array_walk($schema, function ($definition, $name) use(&$sql) {
            $sql .= "\n\t{$name} {$definition},";
        });
        // Remove trailing comma.
        return substr($sql, 0, -1);
    }