think\console\Input::isInteractive PHP Method

isInteractive() public method

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

Usage Example

Esempio n. 1
0
 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