function _background_process_callback_name in Background Process 7
Same name and namespace in other branches
- 8 background_process.module \_background_process_callback_name()
- 6 background_process.module \_background_process_callback_name()
- 7.2 background_process.module \_background_process_callback_name()
Get string name of callback.
Parameters
callback $callback: Callback can be either a string or an array.
Return value
string The name of the callback, e.g. 'myfunction', 'myclass::mystaticmethod' or 'myclass->mymethod'.
3 calls to _background_process_callback_name()
- BackgroundProcess::dispatch in ./
BackgroundProcess.class.php - background_process_overview_page in ./
background_process.admin.inc - Overview of background processes.
- background_process_service_execute in ./
background_process.module - Execute the service.
File
- ./
background_process.module, line 1518
Code
function _background_process_callback_name($callback) {
if (is_array($callback)) {
if (is_object($callback[0])) {
$callback = get_class($callback[0]) . '->' . $callback[1];
}
else {
$callback = $callback[0] . '::' . $callback[1];
}
}
return $callback;
}