Lines Matching full:input
22 * The input data.
26 protected $input; variable in Sabre\\VObject\\Parser\\Json
38 * If the input was not supplied during construction, it's possible to pass
41 * If either input or options are not supplied, the defaults will be used.
43 * @param resource|string|array|null $input
48 function parse($input = null, $options = 0) { 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;
179 * Sets the input data.
181 * @param resource|string|array $input
185 function setInput($input) { argument
187 if (is_resource($input)) {
188 $input = stream_get_contents($input);
190 if (is_string($input)) {
191 $input = json_decode($input);
193 $this->input = $input;