private function checkout_git(Dog_Repo $repo) { $calldata = array($repo->getGDOData()); $callback = array($this, 'after_checkout'); $callargs = array($repo->getID()); $includes = array($this->getPath() . 'workers/Dog_CVS_Git_Worker.php'); if (!Dog::getWorker()->async_method('Dog_CVS_Git_Worker', 'checkout', $calldata, $callback, $callargs, $includes)) { $this->rply('err_worker'); } else { $this->rply('msg_checking_out', array($repo->getType(), $repo->getURL(), $repo->getName())); } }
<?php Dog::getWorker()->async('call', array('trim', array('..slap gizmore..', '.')), array('Dog', 'processFakeMessage')); // Dog::getWorker()->async_function('trim', array('xxslap petexx', 'x'), array('Dog','processFakeMessage')); // Dog::getWorker()->async_method('Common', 'regex', array('/(slap \w+)/', 'xxslap horst'), array('Dog','processFakeMessage'));