Horde_ActiveSync_Wbxml_Encoder::_content PHP Method

_content() private method

Outputs data
private _content ( mixed $content )
$content mixed A string or stream resource to write to the output
    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);
    }