/**
  * Function to get values
  * 
  * @return array $result found rows with data
  * @access public
  * @static
  */
 public static function getValues($params)
 {
     $result = array();
     $condition = new CRM_Civirules_BAO_Condition();
     if (!empty($params)) {
         $fields = self::fields();
         foreach ($params as $key => $value) {
             if (isset($fields[$key])) {
                 $condition->{$key} = $value;
             }
         }
     }
     $condition->find();
     while ($condition->fetch()) {
         $row = array();
         self::storeValues($condition, $row);
         $result[$row['id']] = $row;
     }
     return $result;
 }