PHPDaemon\XMLStream\XMLStream::feed PHP Method

feed() public method

Feed stream
public feed ( string $buf ) : void
$buf string
return void
    public function feed($buf)
    {
        xml_parse($this->parser, $buf, false);
    }

Usage Example

Beispiel #1
0
 /**
  * Called when new data received
  * @return void
  */
 public function onRead()
 {
     Timer::setTimeout($this->keepaliveTimer);
     if (isset($this->xml)) {
         $this->xml->feed($this->readUnlimited());
     }
 }