You are here

public static function VotingApi_ResultCriteria::byEntity in Voting API 7.3

File

./votingapi.module, line 239
A generalized voting API for Drupal.

Class

VotingApi_ResultCriteria
Criteria to select VotingApi_Results

Code

public static function byEntity($entity_type, $entity_ids) {
  $class = get_called_class();
  return new $class(array(
    'entity_type' => $entity_type,
    'entity_id' => $entity_ids,
  ));
}