You are here

function phpexcel_invoke in PHPExcel 7.2

Same name and namespace in other branches
  1. 8.3 phpexcel.inc \phpexcel_invoke()
  2. 6.2 phpexcel.api.inc \phpexcel_invoke()
  3. 6 phpexcel.api.inc \phpexcel_invoke()
  4. 7.3 phpexcel.inc \phpexcel_invoke()
  5. 7 phpexcel.api.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
Simple API function that will load an Excel file from $path and parse it as a multidimensional array.
_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 364
Defines the phpexcel api functions that other modules can use.

Code

function phpexcel_invoke($hook, $op, &$data, $phpexcel, $options, $column = NULL, $row = NULL) {
  foreach (module_implements('phpexcel_' . $hook) as $module) {
    $function = $module . '_phpexcel_' . $hook;
    $function($op, $data, $phpexcel, $options, $column, $row);
  }
}