7
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
8
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
10
* Licensed under The MIT License
11
* Redistributions of files must retain the above copyright notice.
13
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
14
* @link http://cakephp.org CakePHP(tm) Project
15
* @package Cake.Console
16
* @since CakePHP(tm) v 2.0
17
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20
* Object wrapper for interacting with stdin
22
* @package Cake.Console
36
* @param string $handle The location of the stream to use as input.
38
public function __construct($handle = 'php://stdin') {
39
$this->_input = fopen($handle, 'r');
43
* Read a value from the stream
45
* @return mixed The value of the stream
47
public function read() {
48
return fgets($this->_input);