function getAllowedFilterCriteriaTypes() { $allowed = array(); foreach (RuleCriteriaType::values() as $type) { $criteria = RuleCriteriaType::from($type); array_push($allowed, $criteria); } return $allowed; }