According to https://issues.civicrm.org/jira/browse/CRM-13156
the functions were only ever used in the v2 API, which no longer exists.
return $signature;
}
- /**
- * This function returns all entities assigned to a specific tag.
- *
- * @param object $tag
- * An object of a tag.
- *
- * @return array
- * array of contact ids
- */
- public function getEntitiesByTag($tag) {
- $contactIds = [];
- $entityTagDAO = new CRM_Core_DAO_EntityTag();
- $entityTagDAO->tag_id = $tag['id'];
- $entityTagDAO->find();
-
- while ($entityTagDAO->fetch()) {
- $contactIds[] = $entityTagDAO->entity_id;
- }
- return $contactIds;
- }
-
/**
* Check if contact has signed this petition.
*
}
}
- /**
- * This function returns all entities assigned to a specific tag.
- *
- * @param object $tag
- * An object of a tag.
- *
- * @return array
- * array of entity ids
- */
- public function getEntitiesByTag($tag) {
- $entityIds = [];
- $entityTagDAO = new CRM_Core_DAO_EntityTag();
- $entityTagDAO->tag_id = $tag->id;
- $entityTagDAO->find();
- while ($entityTagDAO->fetch()) {
- $entityIds[] = $entityTagDAO->entity_id;
- }
- return $entityIds;
- }
-
/**
* Get contact tags.
*