You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
414 B

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