equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_XmlRpc |
16 * @package Zend_XmlRpc |
17 * @subpackage Generator |
17 * @subpackage Generator |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: GeneratorAbstract.php 20785 2010-01-31 09:43:03Z mikaelkael $ |
20 * @version $Id: GeneratorAbstract.php 24593 2012-01-05 20:35:02Z matthew $ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
24 * Abstract XML generator adapter |
24 * Abstract XML generator adapter |
25 */ |
25 */ |
45 |
45 |
46 /** |
46 /** |
47 * Start XML element |
47 * Start XML element |
48 * |
48 * |
49 * Method opens a new XML element with an element name and an optional value |
49 * Method opens a new XML element with an element name and an optional value |
50 * |
50 * |
51 * @param string $name XML tag name |
51 * @param string $name XML tag name |
52 * @param string $value Optional value of the XML tag |
52 * @param string $value Optional value of the XML tag |
53 * @return Zend_XmlRpc_Generator_Abstract Fluent interface |
53 * @return Zend_XmlRpc_Generator_Abstract Fluent interface |
54 */ |
54 */ |
55 public function openElement($name, $value = null) |
55 public function openElement($name, $value = null) |
84 */ |
84 */ |
85 abstract public function saveXml(); |
85 abstract public function saveXml(); |
86 |
86 |
87 /** |
87 /** |
88 * Return encoding |
88 * Return encoding |
89 * |
89 * |
90 * @return string |
90 * @return string |
91 */ |
91 */ |
92 public function getEncoding() |
92 public function getEncoding() |
93 { |
93 { |
94 return $this->_encoding; |
94 return $this->_encoding; |
141 */ |
141 */ |
142 abstract protected function _writeTextData($text); |
142 abstract protected function _writeTextData($text); |
143 |
143 |
144 /** |
144 /** |
145 * End XML element |
145 * End XML element |
146 * |
146 * |
147 * @param string $name |
147 * @param string $name |
148 */ |
148 */ |
149 abstract protected function _closeElement($name); |
149 abstract protected function _closeElement($name); |
150 } |
150 } |