예제 #1
0
 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()));
     }
 }
예제 #2
0
파일: tt_Pb.php 프로젝트: sinfocol/gwf3
<?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'));