khanat-opennel-code/code/web/public_php/api/server/scripts/achievement_script/class/Callback_class.php
Laszlo Kis-Adam 0876456a22 Merged in dfighter1985/ryzomcore/dfighter-tools (pull request #93)
Further GUI Editor improvements
2014-10-13 20:17:57 +02:00

18 lines
No EOL
333 B
PHP

<?php
/*
* Callback container that handles doing the actual callback
*/
class Callback {
private $who;
private $func;
function Callback($who,$func) {
$this->who = $who;
$this->func = $func;
}
function call($what) { // now call it
eval(''.$this->func.'($what,$this->who,$this);');
}
}
?>