think\console\Input::isInteractive PHP 메소드

isInteractive() 공개 메소드

检查输入是否是交互的
public isInteractive ( ) : boolean
리턴 boolean
    public function isInteractive()
    {
        return $this->interactive;
    }

Usage Example

예제 #1
0
파일: Ask.php 프로젝트: top-think/framework
 public function run()
 {
     if (!$this->input->isInteractive()) {
         return $this->question->getDefault();
     }
     if (!$this->question->getValidator()) {
         return $this->doAsk();
     }
     $that = $this;
     $interviewer = function () use($that) {
         return $that->doAsk();
     };
     return $this->validateAttempts($interviewer);
 }
All Usage Examples Of think\console\Input::isInteractive