/** * Returns a list of possible choices for the workflowState list field. * This method is used for validation. */ public static function getWorkflowStateAllowedValues() { $serviceManager = ServiceUtil::getManager(); $helper = new Reviews_Util_ListEntries($serviceManager); $listEntries = $helper->getWorkflowStateEntriesForReview(); $allowedValues = array(); foreach ($listEntries as $entry) { $allowedValues[] = $entry['value']; } return $allowedValues; }