You are here

function phpexcel_invoke in PHPExcel 6.2

Same name and namespace in other branches
  1. 8.3 phpexcel.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.api.inc
Simple API function that will load an Excel file from $path and parse it as a multidimensional array.
_phpexcel_set_columns in ./phpexcel.api.inc
Adds the data to the Excel file.
_phpexcel_set_headers in ./phpexcel.api.inc
Sets the Excel file headers.

File

./phpexcel.api.inc, line 338
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);
  }
}