示例#1
0
 public function requireLog()
 {
     $this->_log = $this->positionalArgValue(0);
     if ($this->_log === null) {
         $log = new UserPrompt("Which log do you wish to access?");
         $log->addValidator(Validator::VALIDATE_LENGTH, [1, 100]);
         $this->_log = $log->show();
     }
 }