* @return void
*/
static function searchProfile($name) {
- return self::singleton()->invoke(1, $name, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, 'civicrm_searchProfile');
+ return self::singleton()->invoke(1, $name, self::$_nullObject, self::$_nullObject, self::$_nullObject,
+ self::$_nullObject, 'civicrm_searchProfile');
+ }
+
+ /**
+ * This hook is called before encoding data in barcode
+ *
+ * @param array $data associated array of values available for encoding
+ * @param string $type type of barcode, classic barcode or QRcode
+ * @param string $context where this hooks is invoked.
+ *
+ * @return void
+ */
+ static function alterBarcode( &$data, $type = 'barcode', $context = 'name_badge' ) {
+ return self::singleton()->invoke(3, $data, $type, $context, self::$_nullObject,
+ self::$_nullObject, 'civicrm_alterBarcode');
}
+
+ /**
+ * This hook is called while building the core search query,
+ * so hook implementers can provide their own query objects which alters/extends core search.
+ *
+ * @param Array $queryObjects
+ * @return void
+ */
+ static function queryObjects(&$queryObjects) {
+ return self::singleton()->invoke(1, $queryObjects, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, 'civicrm_queryObjects');
+ }
}