2 namespace Civi\Angular
;
4 interface ChangeSetInterface
{
7 * Get the symbolic name of the changeset.
11 public function getName();
14 * Declare that $module requires additional dependencies.
16 * @param string $module
17 * @param string|array $dependencies
20 public function requires($module, $dependencies);
23 * Declare a change to HTML.
26 * A file name, wildcard, or regex.
27 * Ex: '~/crmHello/intro.html' (filename)
28 * Ex: '~/crmHello/*.html' (wildcard)
29 * Ex: ';(Edit|List)Ctrl\.html$;' (regex)
30 * @param callable $callback
31 * Function which accepts up to two parameters:
32 * - phpQueryObject $doc
36 public function alterHtml($file, $callback);