Overview

Namespaces

  • Peach
    • DF
    • DT
    • Http
      • Body
      • Header
    • Markup
    • Util

Classes

  • Base64Codec
  • CodecChain
  • JsonCodec
  • SerializationCodec
  • Utf8Codec

Interfaces

  • Codec
  • Overview
  • Namespace
  • Class

Class Base64Codec

MIME base64 方式の文字列のエンコードおよびデコードを行うクラスです.

このクラスは base64_encode および base64_decode のラッパーとして機能します.

Peach\DF\Base64Codec implements Peach\DF\Codec
Namespace: Peach\DF
Located at Peach/DF/Base64Codec.php
Methods summary
public static Peach\DF\Base64Codec
# getInstance( boolean $strict = false )

このクラスのインスタンスを返します.

このクラスのインスタンスを返します.

Parameters

$strict
base64_decode() の第 2 引数に相当する bool 値

Returns

Peach\DF\Base64Codec
public string
# decode( string $text )

指定された base64 形式の文字列をデコードします.

指定された base64 形式の文字列をデコードします.

Parameters

$text
base64 でエンコードされた文字列

Returns

string
変換結果

Implementation of

Peach\DF\Codec::decode()
public string
# encode( string $var )

指定された文字列を base64 でエンコードします.

指定された文字列を base64 でエンコードします.

Parameters

$var
エンコード対象の文字列

Returns

string
base64 形式の文字列

Implementation of

Peach\DF\Codec::encode()
PEACH2 API documentation generated by ApiGen