public startWBXML ( boolean $multipart = false ) | ||
$multipart | boolean | Indicates we need to output mulitpart binary binary data. See MS-ASCMD 2.2.1.8.1 |
public function startWBXML($multipart = false)
{
$this->multipart = $multipart;
if ($multipart) {
$this->_tempStream = $this->_stream;
$this->_stream = new Horde_Stream_Temp();
}
$this->outputWbxmlHeader();
}
/** * Send WBXML to indicate provisioning is required. * * @param string $requestType The type of request we are handling. * @param integer $status The reason we need to provision. */ protected function _requireProvisionWbxml($requestType, $status) { $this->_encoder->startWBXML(); $this->_encoder->startTag($requestType); $this->_encoder->startTag(Horde_ActiveSync::SYNC_STATUS); $this->_encoder->content($status); $this->_encoder->endTag(); $this->_encoder->endTag(); }