IXR_Base64 WordPress Class
The IXR_Base64 class is used to encode and decode data in the Base64 format. This is a convenient way to transfer data between different applications or systems.
IXR_Base64 #
Source
File: wp-includes/IXR/class-IXR-base64.php
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>';
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Methods
- __construct— PHP5 constructor.
- getXml
- IXR_Base64— PHP4 constructor.
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |