mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-09 04:11:10 +01:00
33 lines
414 B
PHP
33 lines
414 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* IXR_Base64
|
||
|
*
|
||
|
* @package IXR
|
||
|
* @since 1.5.0
|
||
|
*/
|
||
|
class IXR_Base64
|
||
|
{
|
||
|
var $data;
|
||
|
|
||
|
/**
|
||
|
* PHP5 constructor.
|
||
|
*/
|
||
|
function __construct( $data )
|
||
|
{
|
||
|
$this->data = $data;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* PHP4 constructor.
|
||
|
*/
|
||
|
public function IXR_Base64( $data ) {
|
||
|
self::__construct( $data );
|
||
|
}
|
||
|
|
||
|
function getXml()
|
||
|
{
|
||
|
return '<base64>'.base64_encode($this->data).'</base64>';
|
||
|
}
|
||
|
}
|