-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bui Sy Nguyen
committed
Apr 30, 2016
1 parent
9f6eaef
commit 6887831
Showing
7 changed files
with
48 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,34 @@ | ||
<?php | ||
/** | ||
* Zend Framework | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://framework.zend.com/license/new-bsd | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend_Amf | ||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @version $Id$ | ||
*/ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// © Copyright f-project.net 2010-present. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
namespace fproject\amf; | ||
|
||
use fproject\amf\value\MessageHeader; | ||
use fproject\amf\value\MessageBody; | ||
use fproject\amf\parse\OutputStream; | ||
use fproject\amf\Constants; | ||
use fproject\amf\parse\Amf0Serializer; | ||
|
||
/** | ||
* Handles converting the PHP object ready for response back into AMF | ||
* | ||
* @package Zend_Amf | ||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
class Zend_Amf_Response | ||
class Response | ||
{ | ||
/** | ||
* @var int Object encoding for response | ||
|
@@ -58,7 +54,7 @@ class Zend_Amf_Response | |
/** | ||
* Instantiate new output stream and start serialization | ||
* | ||
* @return Zend_Amf_Response | ||
* @return Response | ||
*/ | ||
public function finalize() | ||
{ | ||
|
@@ -72,7 +68,7 @@ public function finalize() | |
* create and AMF stream. | ||
* | ||
* @param OutputStream $stream | ||
* @return Zend_Amf_Response | ||
* @return Response | ||
*/ | ||
public function writeMessage(OutputStream $stream) | ||
{ | ||
|
@@ -147,7 +143,7 @@ public function __toString() | |
* Add an AMF body to be sent to the Flash Player | ||
* | ||
* @param MessageBody $body | ||
* @return Zend_Amf_Response | ||
* @return Response | ||
*/ | ||
public function addAmfBody(MessageBody $body) | ||
{ | ||
|
@@ -169,7 +165,7 @@ public function getAmfBodies() | |
* Add an AMF Header to be sent back to the flash player | ||
* | ||
* @param MessageHeader $header | ||
* @return Zend_Amf_Response | ||
* @return Response | ||
*/ | ||
public function addAmfHeader(MessageHeader $header) | ||
{ | ||
|
@@ -191,7 +187,7 @@ public function getAmfHeaders() | |
* Set the AMF encoding that will be used for serialization | ||
* | ||
* @param int $encoding | ||
* @return Zend_Amf_Response | ||
* @return Response | ||
*/ | ||
public function setObjectEncoding($encoding) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters