PHP class used for data filtration