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