コード例 #1
0
ファイル: AmfFormat.php プロジェクト: Samara94/dolibarr
 public function encode($data, $humanReadable = false)
 {
     $stream = new OutputStream();
     $serializer = new Serializer($stream);
     $serializer->writeTypeMarker($data);
     return $stream->getStream();
 }
コード例 #2
0
ファイル: StreamResponse.php プロジェクト: bojaspus/zendamf
 /**
  * Return the output stream content
  *
  * @return string The contents of the output stream
  */
 public function getResponse()
 {
     return $this->_outputStream->getStream();
 }