[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/kissifrot/php-ixr/src/DataType/ -> Base64.php (source)

   1  <?php
   2  namespace IXR\DataType;
   3  
   4  /**
   5   * IXR_Base64
   6   *
   7   * @package IXR
   8   * @since 1.5.0
   9   */
  10  class Base64
  11  {
  12      private $data;
  13  
  14      public function __construct($data)
  15      {
  16          $this->data = $data;
  17      }
  18  
  19      public function getXml()
  20      {
  21          return '<base64>' . base64_encode($this->data) . '</base64>';
  22      }
  23  }