Lines Matching full:input
23 * The input data
27 protected $input; variable in Sabre\\VObject\\Parser\\Json
39 * If the input was not supplied during construction, it's possible to pass
42 * If either input or options are not supplied, the defaults will be used.
44 * @param resource|string|array|null $input
48 public function parse($input = null, $options = null) { argument
50 if (!is_null($input)) {
51 $this->setInput($input);
53 if (is_null($this->input)) {
54 throw new EofException('End of input stream, or no input supplied');
61 switch($this->input[0]) {
72 foreach($this->input[1] as $prop) {
75 if (isset($this->input[2])) foreach($this->input[2] as $comp) {
79 // Resetting the input so we can throw an feof exception the next time.
80 $this->input = null;
177 * Sets the input data
179 * @param resource|string|array $input
182 public function setInput($input) { argument
184 if (is_resource($input)) {
185 $input = stream_get_contents($input);
187 if (is_string($input)) {
188 $input = json_decode($input);
190 $this->input = $input;