You are here

function phpexcel_invoke in PHPExcel 8.3

Same name and namespace in other branches
  1. 6.2 phpexcel.api.inc \phpexcel_invoke()
  2. 6 phpexcel.api.inc \phpexcel_invoke()
  3. 7.3 phpexcel.inc \phpexcel_invoke()
  4. 7 phpexcel.api.inc \phpexcel_invoke()
  5. 7.2 phpexcel.inc \phpexcel_invoke()

Invokes phpexcel hooks.

We need a custom hook-invoke method, because we need to pass parameters by reference.

3 calls to phpexcel_invoke()
phpexcel_import in ./phpexcel.inc
Import an Excel file.
_phpexcel_set_columns in ./phpexcel.inc
Adds the data to the Excel file.
_phpexcel_set_headers in ./phpexcel.inc
Sets the Excel file headers.

File

./phpexcel.inc, line 538
Defines the phpexcel api functions that other modules can use.

Code

function phpexcel_invoke($hook, $op, &$data, $phpexcel, $options, $column = NULL, $row = NULL) {
  foreach (\Drupal::moduleHandler()
    ->getImplementations('phpexcel_' . $hook) as $module) {
    $function = $module . '_phpexcel_' . $hook;
    $function($op, $data, $phpexcel, $options, $column, $row);
  }
}