You are here

public static function VotingApi_Criteria::byEntity in Voting API 7.3

File

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

Class

VotingApi_Criteria
Criteria to select VotingApi_Votes

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,
  ));
}