private function _content($content) { if (!is_resource($content)) { if ($this->_logLevel == self::LOG_PROTOCOL && ($l = Horde_String::length($content)) > self::LOG_MAXCONTENT) { $this->_logContent(sprintf('[%d bytes of content]', $l)); } else { $this->_logContent($content); } } else { if ($this->_logLevel == self::LOG_DETAILED) { rewind($content); $this->_logContent(stream_get_contents($content)); rewind($content); } else { $this->_logContent('[STREAM]'); } } $this->_outByte(self::STR_I); $this->_outTermStr($content); }