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 zpFunctions

Package: core
Located at functions.php
Methods summary
public static
# LanguageSubdomains( )

creates an SEO language prefix list

public static string
# getLanguageText( string $loc = NULL, string $separator = NULL )

Returns a canonical language name string for the location

Returns a canonical language name string for the location

Parameters

$loc
the location. If NULL use the current cookie
$separator
will be used between the major and qualifier parts, e.g. en_US

Returns

string
public static
# setexifvars( )

initializes the $_zp_exifvars array display state

initializes the $_zp_exifvars array display state

public static
# hasPrimaryScripts( )

Returns true if the install is not a "clone"

public static boolean
# removeDir( string $path, $within = false )

Recursively clears and removes a folder

Parameters

$path
$within

Returns

boolean
public static
# tagURLs( string $text )

inserts location independent WEB path tags in place of site path tags

inserts location independent WEB path tags in place of site path tags

Parameters

$text
public static string
# unTagURLs( string $text )

reverses tagURLs()

reverses tagURLs()

Parameters

$text

Returns

string
public static string
# updateImageProcessorLink( string $text )

Searches out i.php image links and replaces them with cache links if image is cached

Searches out i.php image links and replaces them with cache links if image is cached

Parameters

$text

Returns

string
public static
# pluginDebug( $extension, $priority, $start )
public static string
# removeTrailingSlash( string $string )

Removes a trailing slash from a string if one exists, otherwise just returns the string Used primarily within date and tag searches and news date archive results

Removes a trailing slash from a string if one exists, otherwise just returns the string Used primarily within date and tag searches and news date archive results

Parameters

$string

Returns

string

Since

1.4.12
public static string
# tidyHTML( string $html, string $shortenindicator,… )

Wrapper for the native PHP tidy() to balance out invalid html if existing on the server Covers newer HTML5 elements

Wrapper for the native PHP tidy() to balance out invalid html if existing on the server Covers newer HTML5 elements

Parameters

$html
The html to tidy, typical from a description or content field of items
$shortenindicator,…
If you are using this on truncated text

Returns

string

Since

1.4.12
Zenphoto doc API documentation generated by ApiGen