A basic class of symmetric orthogonal polynomials using the extended Sturm–Liouville theorem for symmetric functions