xplo.re Medusa Core Framework 3.1
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • ascii
  • iso88591
  • iso885915
  • macroman
  • sjis
  • utf16
  • utf16be
  • utf16le
  • utf32
  • utf32be
  • utf32le
  • utf8

Class utf8

UTF-8 character set.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Charset
Extended by Core\Charset\MultiByte
Extended by Core\Charset\Driver\utf8
Namespace: Core\Charset\Driver
Package: Core\Charset
Link: http://en.wikipedia.org/wiki/UTF-8
Since: 3.0
Requires: PHP 5.3, MBString
Located at Charset/Driver/utf8.inc.php

Methods summary

public string
# convertFromUTF8( string $string )

Converts a string encoded in UTF-8 to the current character set.

Converts a string encoded in UTF-8 to the current character set.

Parameters

$string
UTF-8 encoded source string.

Returns

string
Converted string in character set of current instance.

Since

3.1

Overrides

Core\Charset\MultiByte::convertFromUTF8
public string
# convertToUTF8( string $string )

Converts a string encoded in the character set of this instance to UTF-8.

Converts a string encoded in the character set of this instance to UTF-8.

Parameters

$string
String encoded in this character set.

Returns

string
String converted from this character set to UTF-8.

Since

3.1

Overrides

Core\Charset\MultiByte::convertToUTF8
public string
# xmlSpecials( $string, integer $quotes = null )

Encodes all special XML characters in provided string with respect to this character set instance.

Encodes all special XML characters in provided string with respect to this character set instance.

Parameters

$string
to encode.
$quotes

Optional bit mask to control encoding of quotation marks. Allows a combination of the following flags:

  • Core\Charset::NoQuotesFlag

    Default. Quotation marks are not encoded. Ignored if combined with other flags.

  • Core\Charset::SingleQuotesFlag

    Encodes single quotation marks as their respective XML entities.

  • Core\Charset::DoubleQuotesFlag

    Encodes double quotation marks as their respective XML entities.

Returns

string

String where all special XML characters were replaced by their corresponding XML entity.

Since

3.1

Methods inherited from Core\Charset\MultiByte

__construct(), len(), pad(), sub(), toLower(), toUpper(), truncate(), width()

Methods inherited from Core\Charset

_restoreEnvironment(), _setupEnvironment(), activate(), active(), alias(), all(), convertFrom(), convertFromActive(), convertTo(), convertToActive(), convertUCS2ToUTF8(), convertUTF8ToUCS2(), format(), get(), hash(), iterator(), registerAlias(), sizeof(), vformat()

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

__autocreateFactory(), __call(), __processParameters(), __toString(), attachMethod(), chain(), getValueForKey(), getValueForKeyPath(), getValueForUndefinedKey(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

Constants inherited from Core\Charset

ACK, BEL, BS, CAN, CR, CRLF, DEL, DLE, DoubleQuotesFlag, EM, ENQ, EOT, ESC, ETB, ETX, FF, FS, GS, LF, LeftPadFlag, NAK, NUL, NoQuotesFlag, RS, RightPadFlag, SI, SO, SOH, STX, SUB, SYN, SingleQuotesFlag, TAB, TruncatePadFlag, US, VT

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

protected string $_v_displayName
# 'UTF-8'
protected string $_v_name
# 'utf-8'

Properties inherited from Core\Charset

$_activeInstance, $_aliasMap, $_instances

Magic properties inherited from Core\Charset

$displayName, $name

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.1 API documentation generated by ApiGen