Cake\Console\ConsoleIo::outputAs PHP 메소드

outputAs() 공개 메소드

Change the output mode of the stdout stream
또한 보기: Cake\Console\ConsoleOutput::outputAs()
public outputAs ( integer $mode ) : void
$mode integer The output mode.
리턴 void
    public function outputAs($mode)
    {
        $this->_out->outputAs($mode);
    }

Usage Example

예제 #1
0
파일: Shell.php 프로젝트: a53ali/CakePhP
 /**
  * Display the help in the correct format
  *
  * @param string $command The command to get help for.
  * @return int|bool
  */
 protected function _displayHelp($command)
 {
     $format = 'text';
     if (!empty($this->args[0]) && $this->args[0] === 'xml') {
         $format = 'xml';
         $this->_io->outputAs(ConsoleOutput::RAW);
     } else {
         $this->_welcome();
     }
     return $this->out($this->OptionParser->help($command, $format));
 }