⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 array.php

📁 Bug tracker, and reporter.
💻 PHP
字号:
<?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 license@zend.com so we can send you a copy immediately. * * @category   Zend * @package    Zend_XmlRpc * @subpackage Value * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) * @license    http://framework.zend.com/license/new-bsd     New BSD License *//** * Zend_XmlRpc_Value_Collection */require_once 'Zend/XmlRpc/Value/Collection.php';/** * @category   Zend * @package    Zend_XmlRpc * @subpackage Value * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) * @license    http://framework.zend.com/license/new-bsd     New BSD License */class Zend_XmlRpc_Value_Array extends Zend_XmlRpc_Value_Collection{    /**     * Set the value of an array native type     *     * @param array $value     */    public function __construct($value)    {        $this->_type = self::XMLRPC_TYPE_ARRAY;        parent::__construct($value);    }    /**     * Return the XML code that represent an array native MXL-RPC value     *     * @return string     */    public function saveXML()    {        if (!$this->_as_xml) {   // The XML code was not calculated yet            $dom   = new DOMDocument('1.0');            $value = $dom->appendChild($dom->createElement('value'));            $array = $value->appendChild($dom->createElement('array'));            $data  = $array->appendChild($dom->createElement('data'));            if (is_array($this->_value)) {                foreach ($this->_value as $val) {                    /* @var $val Zend_XmlRpc_Value */                    $data->appendChild($dom->importNode($val->getAsDOM(), true));                }            }            $this->_as_dom = $value;            $this->_as_xml = $this->_stripXmlDeclaration($dom);        }        return $this->_as_xml;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -