wp/wp-includes/IXR/class-IXR-base64.php
changeset 7 cf61fcea0001
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
       
     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 }