+ /**
+ * This hook fires whenever a record in a case changes.
+ *
+ * @param \Civi\CCase\Analyzer $analyzer
+ */
+ static function caseChange(\Civi\CCase\Analyzer $analyzer) {
+ $event = new \Civi\CCase\Event\CaseChangeEvent($analyzer);
+ \Civi\Core\Container::singleton()->get('dispatcher')->dispatch("hook_civicrm_caseChange", $event);
+
+ return self::singleton()->invoke(1, $angularModules,
+ self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
+ 'civicrm_caseChange'
+ );
+ }
+
+ /**
+ * Generate a default CRUD URL for an entity
+ *
+ * @param array $spec with keys:
+ * - action: int, eg CRM_Core_Action::VIEW or CRM_Core_Action::UPDATE
+ * - entity_table: string
+ * - entity_id: int
+ * @param CRM_Core_DAO $bao
+ * @param array $link to define the link, add these keys to $link:
+ * - title: string
+ * - path: string
+ * - query: array
+ * - url: string (used in lieu of "path"/"query")
+ * Note: if making "url" CRM_Utils_System::url(), set $htmlize=false
+ * @return mixed
+ */
+ static function crudLink($spec, $bao, &$link) {
+ return self::singleton()->invoke(3, $spec, $bao, $link,
+ self::$_nullObject, self::$_nullObject, self::$_nullObject,
+ 'civicrm_crudLink'
+ );
+ }
+
+ /**
+ * @param array<CRM_Core_FileSearchInterface> $fileSearches
+ * @return mixed
+ */
+ static function fileSearches(&$fileSearches) {
+ return self::singleton()->invoke(1, $fileSearches,
+ self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
+ 'civicrm_fileSearches'
+ );
+ }