Skip to content

Instantly share code, notes, and snippets.

@fprochazka
Created September 2, 2010 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fprochazka/562122 to your computer and use it in GitHub Desktop.
Save fprochazka/562122 to your computer and use it in GitHub Desktop.
<?php
class CallbackBody extends Callback
{
public function __construct($paramList, $code, $param1 = null, $param2 = null, $param3 = null)
{
$params = func_get_args();
$params = array_slice($params, 2);
$this->callback = create_function($paramList, $code);
$this->params = $params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment