home *** CD-ROM | disk | FTP | other *** search
/ HTML Examples / WP.iso / wordpress2 / wp-includes / IXR / class-IXR-base64.php next >
Encoding:
PHP Script  |  2016-08-26  |  414 b   |  33 lines

  1. <?php
  2.  
  3. /**
  4.  * IXR_Base64
  5.  *
  6.  * @package IXR
  7.  * @since 1.5.0
  8.  */
  9. class IXR_Base64
  10. {
  11.     var $data;
  12.  
  13.     /**
  14.      * PHP5 constructor.
  15.      */
  16.     function __construct( $data )
  17.     {
  18.         $this->data = $data;
  19.     }
  20.  
  21.     /**
  22.      * PHP4 constructor.
  23.      */
  24.     public function IXR_Base64( $data ) {
  25.         self::__construct( $data );
  26.     }
  27.  
  28.     function getXml()
  29.     {
  30.         return '<base64>'.base64_encode($this->data).'</base64>';
  31.     }
  32. }
  33.