You are here

function crumbs_PluginEngine::invokeAll_find in Crumbs, the Breadcrumbs suite 6.2

Same name and namespace in other branches
  1. 7 lib/PluginEngine.php \crumbs_PluginEngine::invokeAll_find()

Invoke the invoke action for all plugins, starting with the plugin with highest priority. The function will stop when it has

Parameters

$invokeAction: an object that does the method call, and can maintain a state between different plugins' method calls.

File

./crumbs.plugin_engine.inc, line 212

Class

crumbs_PluginEngine

Code

function invokeAll_find(crumbs_InvokeActionInterface_find $invoke_action) {
  foreach ($this->_pluginOrder_find as $plugin_key => $plugin) {
    $weight_keeper = $this->_weightKeeper
      ->prefixedWeightKeeper($plugin_key);
    $found = $invoke_action
      ->invoke($plugin, $plugin_key, $weight_keeper);
    if ($found) {
      return $found;
    }
  }
}