Overview

Packages

  • admin
  • classes
    • media
  • CodeIgniter
    • Libraries
  • core
  • functions
  • JSMin
  • None
  • OpenID
  • PHP
  • PHPMailer
  • plugins
    • admin
    • development
    • feed
    • mail
    • media
    • misc
    • seo
    • spam
    • uploader
    • users
    • zenpage
    • zenphoto
      • news
  • Services
    • JSON

Classes

  • _zp_captcha
  • _zp_HTML_cache
  • external_auth
  • lib_GD_Options
  • lib_Imagick_Options
  • lib_NoGraphics
  • utf8
  • zpFunctions

Functions

  • add_context
  • applyMacros
  • byteConvert
  • cacheImage
  • checkAlbumPassword
  • checkObjectsThumb
  • checkPublishDates
  • checkSignature
  • cleanHTML
  • commentsAllowed
  • cron_starter
  • dateTimeConvert
  • db_count
  • db_name
  • debug404
  • debugLogBacktrace
  • debugLogVar
  • dircopy
  • enableExtension
  • extensionEnabled
  • fetchComments
  • filesystemToInternal
  • fix_path_redirect
  • galleryAlbumsPerPage
  • generateLanguageList
  • generateListFromArray
  • generateListFromFiles
  • get_context
  • get_language_string
  • getAllSubAlbumIDs
  • getAllTagsCount
  • getAllTagsUnique
  • getAllTranslations
  • getBare
  • getEnabledPlugins
  • getImageRotation
  • getItemByID
  • getLanguageArray
  • getLanguageFlag
  • getLinkHTML
  • getMacros
  • getManagedAlbumList
  • getNestedAlbumList
  • getNotViewableAlbums
  • getNotViewableImages
  • getOptionFromDB
  • getPlugin
  • getPluginFiles
  • getSerializedArray
  • getSetClause
  • getTagCountByAccess
  • gettext_pl
  • gettext_th
  • getThemeOption
  • getTimezones
  • getUrAlbum
  • getUserIP
  • getUserLocale
  • getWhereClause
  • getXSRFToken
  • handleSearchParms
  • html_decode
  • html_encode
  • html_encodeTagged
  • i18nSetLocale
  • imageDebug
  • imageError
  • in_context
  • internalToFilesystem
  • iptc_make_tag
  • is_connected
  • is_valid_email_zp
  • isImagePhoto
  • isImageVideo
  • isValidURL
  • ksesProcess
  • load_zenpage_news
  • load_zenpage_pages
  • lookupSortKey
  • mb_strlen
  • mb_strpos
  • mb_strrpos
  • mb_strtolower
  • mb_strtoupper
  • mb_substr
  • mb_substr_count
  • mkdir_recursive
  • myts_date
  • ngettext_pl
  • ngettext_th
  • parseAllowedTags
  • parseHttpAcceptLanguage
  • populateManagedObjectsList
  • prefix
  • prepareAlbumPage
  • prepareCustomPage
  • prepareImagePage
  • prepareIndexPage
  • printLinkHTML
  • propSizes
  • rc4
  • read_exif_data_protected
  • readTags
  • reconfigureAction
  • reconfigureCS
  • reconfigurePage
  • rem_context
  • restore_context
  • reveal
  • safe_fnmatch
  • sanitize
  • sanitize_numeric
  • sanitize_path
  • sanitize_script
  • sanitize_string
  • sanitizeRedirect
  • save_context
  • seoFriendly
  • seoFriendlyJS
  • set_context
  • setMainDomain
  • setThemeOption
  • setThemeOptionDefault
  • setupCurrentLocale
  • setupDomain
  • setupTheme
  • shortenContent
  • shuffle_assoc
  • signatureChange
  • sortByKey
  • sortByMultilingual
  • sortMultiArray
  • storeTags
  • timezoneDiff
  • truncate_string
  • validateLocale
  • XSRFToken
  • zp_clearCookie
  • zp_cookieEncode
  • zp_error
  • zp_getCookie
  • zp_handle_password
  • zp_handle_password_single
  • zp_image_types
  • zp_load_album
  • zp_load_gallery
  • zp_load_image
  • zp_load_page
  • zp_load_request
  • zp_load_search
  • zp_loggedin
  • zp_mail
  • zp_setCookie
  • zpErrorHandler
  • zpFormattedDate
  • zpRewriteURL
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class utf8

Package: core
Located at lib-utf8.php
Methods summary
public
# __construct( )
public static
# sanitize( $text )

replaces invalid UTF-8 characters with blanks

public
# convert( $string, $encoding = NULL, $destination = 'UTF-8' )

Convert a foreign charset encoding from or to UTF-8

Convert a foreign charset encoding from or to UTF-8

public static
# detect( $string )

Detect the encoding of the string

Detect the encoding of the string

public static
# strlen( $str )

Determine the number of characters of a string Compatible with mb_strlen(), an UTF-8 friendly replacement for strlen()

Determine the number of characters of a string Compatible with mb_strlen(), an UTF-8 friendly replacement for strlen()

public static
# substr_count( $haystack, $needle )

Count the number of substring occurances Compatible with mb_substr_count(), an UTF-8 friendly replacement for substr_count()

Count the number of substring occurances Compatible with mb_substr_count(), an UTF-8 friendly replacement for substr_count()

public static
# substr( $str, $start, $length = NULL )

Return part of a string, length and offset in characters Compatible with mb_substr(), an UTF-8 friendly replacement for substr()

Return part of a string, length and offset in characters Compatible with mb_substr(), an UTF-8 friendly replacement for substr()

public static
# strcut( $str, $start, $length = NULL )

Return part of a string, length and offset in bytes Compatible with mb_strcut()

Return part of a string, length and offset in bytes Compatible with mb_strcut()

public static
# strwidth( $str )

Determine the width of a string Compatible with mb_strwidth()

Determine the width of a string Compatible with mb_strwidth()

public static
# strimwidth( $str, $start, $width, $trimmarker = '' )

Get truncated string with specified width Compatible with mb_strimwidth()

Get truncated string with specified width Compatible with mb_strimwidth()

public static
# strrpos( $haystack, $needle )

Find position of last occurance of a string in another string Compatible with mb_strrpos(), an UTF-8 friendly replacement for strrpos()

Find position of last occurance of a string in another string Compatible with mb_strrpos(), an UTF-8 friendly replacement for strrpos()

public static
# strpos( $haystack, $needle, $offset = 0 )

Find position of first occurance of a string in another string Compatible with mb_strpos(), an UTF-8 friendly replacement for strpos()

Find position of first occurance of a string in another string Compatible with mb_strpos(), an UTF-8 friendly replacement for strpos()

public static
# strtolower( $str )

Convert a string to lower case Compatible with mb_strtolower(), an UTF-8 friendly replacement for strtolower()

Convert a string to lower case Compatible with mb_strtolower(), an UTF-8 friendly replacement for strtolower()

public static
# strtoupper( $str )

Convert a string to upper case Compatible with mb_strtoupper(), an UTF-8 friendly replacement for strtoupper()

Convert a string to upper case Compatible with mb_strtoupper(), an UTF-8 friendly replacement for strtoupper()

public static
# encode_mimeheader( $str )

Encode a string for use in a MIME header Simplied replacement for mb_encode_mimeheader()

Encode a string for use in a MIME header Simplied replacement for mb_encode_mimeheader()

public static
# send_mail( $to, $subject, $message, $additional_headers = '', $additional_parameter = '' )

Send mail Replacement for mb_send_mail(), an UTF-8 friendly replacement for mail()

Send mail Replacement for mb_send_mail(), an UTF-8 friendly replacement for mail()

public static
# encode_javascript( $string )

Prepare an UTF-8 string for use in JavaScript

Prepare an UTF-8 string for use in JavaScript

public static
# encode_numericentity( $string )

Encode an UTF-8 string with numeric entities Simplied replacement for mb_encode_numericentity()

Encode an UTF-8 string with numeric entities Simplied replacement for mb_encode_numericentity()

Properties summary
public $charsets

Character set translation support

Character set translation support

Return

utf8
#
public $mb_sets
#
public $iconv_sets
#
Zenphoto doc API documentation generated by ApiGen