prompt() 공개 정적인 메소드

public static prompt ( $inc = true )
예제 #1
0
파일: jaxl_cli.php 프로젝트: jaxl/JAXL
 public function on_read_ready($in)
 {
     $raw = @fread($in, $this->recv_chunk_size);
     if (ord($raw) == 10) {
         // enter key
         JAXLCli::prompt(false);
         return;
     } elseif (trim($raw) == 'quit') {
         $this->stop();
         $this->in = null;
         if ($this->quit_cb) {
             call_user_func($this->quit_cb);
         }
         return;
     }
     if ($this->recv_cb) {
         call_user_func($this->recv_cb, $raw);
     }
 }
예제 #2
0
 protected function enable_debug_shell()
 {
     $this->cli = new JAXLCli(array(&$this, 'handle_debug_shell'));
     JAXLCli::prompt();
 }
예제 #3
0
파일: jaxlctl.php 프로젝트: jaxl/JAXL
 public function onDebugResponse($raw)
 {
     $ret = unserialize($raw);
     print_r($ret);
     echo PHP_EOL;
     JAXLCli::prompt();
 }