$fnSuffix
);
- /**
- * Get a list of modules implementing the given hook.
- * @return Array of module names.
- */
- abstract function moduleImplements($hookName);
-
function commonInvoke($numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5,
$fnSuffix, $fnPrefix
}
}
- /**
- * Get a list of modules implementing the given hook.
- * @return Array of module names.
- */
- function commonModuleImplements($fnSuffix, $fnPrefix) {
- $return = array();
-
- $this->commonBuildModuleList($fnPrefix);
-
- foreach ($this->commonCiviModules as $module) {
- $fnName = "{$module}_{$fnSuffix}";
- if (function_exists($fnName)) {
- $return[] = $module;
- }
- }
- return $return;
- }
-
function runHooks(&$civiModules, $fnSuffix, $numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5
) {
);
}
- /**
- * Get a list of modules implementing the given hook.
- * @return Array of module names.
- */
- function moduleImplements($hook_name) {
- $return = array();
-
- $this->buildModuleList();
-
- // For each module, check if it defines a hook implementation.
- foreach ($this->allModules as $module) {
- $fnName = "{$module}_{$hook_name}";
- if (function_exists($fnName)) {
- $return[] = $module;
- }
- }
- return $return;
- }
-
/**
* Build the list of modules to be processed for hooks.
*/
);
}
- /**
- * Get a list of modules implementing the given hook.
- * @return Array of module names.
- */
- function moduleImplements($hook_name) {
- $return = array();
-
- $this->buildModuleList();
-
- // For each module, check if it defines a hook implementation.
- foreach ($this->allModules as $module) {
- $fnName = "{$module}_{$hook_name}";
- if (function_exists($fnName)) {
- $return[] = $module;
- }
- }
- return $return;
- }
-
/**
* Build the list of modules to be processed for hooks.
*/
return $result;
}
}
-
- /**
- * Get a list of modules implementing the given hook. Does nothing in Joomla.
- * @return Array of module names.
- */
- function moduleImplements($fnSuffix) {
- return array();
- }
}
// suppress all hok calls during soap
return;
}
-
- /**
- * Get a list of modules implementing the given hook.
- *
- * Does nothing in Soap.
- *
- * @return Array of module names.
- */
- function moduleImplements($fnSuffix) {
- return;
- }
}
call_user_func_array($this->adhocHooks[$fnSuffix], $params );
}
}
-
- /**
- * Get a list of modules implementing the given hook.
- *
- * Does nothing in UnitTests.
- *
- * @return Array of module names.
- */
- function moduleImplements($fnSuffix) {
- return;
- }
}
$fnSuffix, 'wordpress'
);
}
-
- function moduleImplements($fnSuffix) {
- return $this->commonModuleImplements($fnSuffix, 'wordpress');
- }
}