ZenphotoCMS 1.6.3

misc

Table of Contents

Interfaces

CacheException
Interface used for all types of exceptions thrown by the implementing library.
CacheInterface
InvalidArgumentException
Exception interface for invalid cache arguments.

Classes

getid3_lib
getID3
getid3_handler
getid3_exception
getid3_mpeg
getid3_quicktime
getid3_aac
getid3_mp3
getid3_apetag
getid3_id3v1
getid3_id3v2
getid3_lyrics3
JSMin_UnterminatedStringException
JSMin_UnterminatedCommentException
JSMin_UnterminatedRegExpException
OAuthExcept
OAuthConsumer
OAuthToken
OAuthSignatureMethod
A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec
OAuthSignatureMethod_HMAC_SHA1
The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104] where the Signature Base String is the text and the key is the concatenated values (each first encoded per Parameter Encoding) of the Consumer Secret and Token Secret, separated by an '&' character (ASCII code 38) even if empty.
OAuthSignatureMethod_PLAINTEXT
The PLAINTEXT method does not provide any security protection and SHOULD only be used over a secure channel such as HTTPS. It does not use the Signature Base String.
OAuthSignatureMethod_RSA_SHA1
The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in [RFC3447] section 8.2 (more simply known as PKCS#1), using SHA-1 as the hash function for EMSA-PKCS1-v1_5. It is assumed that the Consumer has provided its RSA public key in a verified way to the Service Provider, in a manner which is beyond the scope of this specification.
OAuthRequest
OAuthServer
OAuthDataStore
OAuthUtil
elFinderEditor
Abstract class of editor plugins.
elFinderEditorOnlineConvert
Abstract class of editor plugins.
elFinderEditorZipArchive
Abstract class of editor plugins.
elFinderEditorZohoOffice
Abstract class of editor plugins.
elFinderConnector
Default elFinder connector
elFinderVolumeFlysystemGoogleDriveCache
elFinderVolumeFlysystemGoogleDriveNetmount
elFinderVolumeBox
Simple elFinder driver for BoxDrive Box.com API v2.0.
elFinderVolumeDriver
Base class for elFinder volume.
elFinderVolumeDropbox
Simple elFinder driver for FTP
elFinderVolumeDropbox2
Simple elFinder driver for Dropbox kunalvarma05/dropbox-php-sdk:0.1.5 or above.
elFinderVolumeFTP
Simple elFinder driver for FTP
elFinderVolumeGoogleDrive
Simple elFinder driver for GoogleDrive google-api-php-client-2.x or above.
elFinderVolumeGroup
elFinder driver for Volume Group.
RecursiveCallbackFilterIterator
elFinderVolumeLocalFileSystem
elFinder driver for local filesystem.
elFinderVolumeMySQL
Simple elFinder driver for MySQL.
elFinderVolumeOneDrive
Simple elFinder driver for OneDrive onedrive api v5.0.
elFinderVolumeSFTPphpseclib
Simple elFinder driver for SFTP using phpseclib 1
elFinderVolumeTrash
elFinder driver for trash bin at local filesystem.
elFinderVolumeTrashMySQL
elFinder driver for trash bin at MySQL Database
elFinderLibGdBmp
elFinderPluginWinRemoveTailDots
This class describes elFinder plugin window remove tail dots.
ComposerAutoloaderInitd5350eb3a139c07c29d30a628169cbde
ComposerStaticInitd5350eb3a139c07c29d30a628169cbde
ClassLoader
ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
InstalledVersions
This class is copied in every Composer installed project and available to all
Cache
CacheException
CacheItem
Simple cache item (key, value, ttl) that is being used by all the detection methods of Mobile Detect class.
MobileDetectException
MobileDetect
Auto-generated isXXXX() magic methods.
Exception
PHPMailer exception handler.
PHPMailer
PHPMailer - PHP email creation and transport class.
POP3
PHPMailer POP-Before-SMTP Authentication Class.
SMTP
PHPMailer RFC821 SMTP email transport class.
UploadHandler

Constants

ELFINDER_PHP_ROOT_PATH  = \dirname(__FILE__)
ENT_SUBSTITUTE  = \defined('ENT_IGNORE') ? \ENT_IGNORE : 8
GD_FREETYPE  = (bool) $this->info['FreeType']
GD_FREETYPE_SAMPLE  = 'The quick brown fox jumps over the lazy dog'
GD_FREETYPE_SAMPLE_CHARS  = strlen('GD_FREETYPE_SAMPLE')
GETID3_HELPERAPPSDIR  = $helperappsdir . DIRECTORY_SEPARATOR
GETID3_INCLUDEPATH  = \dirname(__FILE__) . \DIRECTORY_SEPARATOR
GETID3_LIBXML_OPTIONS  = \LIBXML_NOENT | \LIBXML_NONET | \LIBXML_NOWARNING
GETID3_OS_ISWINDOWS  = \stripos(\PHP_OS, 'WIN') === 0
GETID3_TEMP_DIR  = $temp_dir
NEWS_POSITION_NORMAL  = 0
NEWS_POSITION_STICK_TO_TOP  = 9
NEWS_POSITION_STICKY  = 1
OFFSET_PATH  = 1
OFFSET_PATH  = 3
OFFSET_PATH  = 3
OFFSET_PATH  = 3
PHP_INT_MAX  = 2147483647
PHP_INT_MIN  = ~PHP_INT_MAX
RECORD_LIMIT  = 5
SERVERPATH  = $_zp_setup_serverpath
SETUPLOG  = $_zp_setup_serverpath . '/' . \DATA_FOLDER . '/setup.log'
SITE_LOCALE  = 'en_US'
ZENPAGE_COMBINEWS  = \false
Some global variable setup
ZP_ARTICLES_PER_PAGE  = \getOption("zenpage_articles_per_page") >= 1 ? \getOption("zenpage_articles_per_page") : 1
ZP_COMBINEWS  = \false
ZP_READ_MORE  = \getOption("zenpage_read_more")
ZP_SHORTEN_LENGTH  = \getOption('zenpage_text_length')
ZP_SHORTENINDICATOR  = $shortenindicator = \getOption('zenpage_textshorten_indicator')

Functions

generateLanguageList()  : array<string|int, mixed>
Returns an array of available language locales.
setMainDomain()  : mixed
Sets the locale, etc. to the zenphoto domain details.
gettext_th()  : string
Gettext replacement function for separate translations of third party themes.
ngettext_th()  : string
ngettext replacement function for separate translations of third party themes.
gettext_pl()  : string
Gettext replacement function for separate translations of third party plugins within the root plugins folder.
ngettext_pl()  : string
ngettext replacement function for separate translations of third party plugins within the root plugins folder.
i18nSetLocale()  : string
Wrapper function for setLocale() so that all the proper permutations are used Returns the result from the setLocale call
setupDomain()  : mixed
Sets the translation domain and type for optional theme or plugin based translations
setupCurrentLocale()  : mixed
Setup code for gettext translation Returns the result of the setlocale call
getLangAttributeLocale()  : string
Converts underscore locales like "en_US" to valid IANA/BCP 47 hyphen locales like "en-US" Needed for example in JS or HTML "lang" attributes.
parseHttpAcceptLanguage()  : array<string|int, mixed>
This function will parse a given HTTP Accepted language instruction (or retrieve it from $_SERVER if not provided) and will return a sorted array. For example, it will parse fr;en-us;q=0.8
validateLocale()  : mixed
checks a "supplied" locale against the valid locales.
getUserLocale()  : mixed
Returns a saved (or posted) locale. Posted locales are stored as a cookie.
get_language_string()  : string
Returns the sring for the current language from a serialized set of language strings Defaults to the string for the current locale, the en_US string, or the first string which ever is present
getTimezones()  : unknown
Returns a list of timezones
timezoneDiff()  : int
Returns the difference between the server timez one and the local (users) time zone
getAllTranslations()  : mixed
returns a serialized "multilingual array" of translations Used for setting default options with multi-lingual strings.
getLanguageSubdomains()  : mixed
creates an SEO language prefix list
getLanguageText()  : string
Returns a canonical language name string for the location
getSystemLocales()  : array<string|int, mixed>
Gets all locales suppported on the current server as a multidimensional array
getLanguageDisplayName()  : string
Returns the real language name to the locale passed.
printLangAttribute()  : mixed
Prints the lang="" attribute for the main <html> element.
getFormattedLocaleDate()  : string
Returns a locale aware - e.g. translated day and month names - formatted date. Requires the PHP intl extension to work properly Otherwise returns standard formatted date.
imageError()  : mixed
imageDebug()  : mixed
Prints debug information from the arguments to i.php.
propSizes()  : array<string|int, mixed>
Calculates proprotional width and height Used internally by cacheImage
iptc_make_tag()  : mixed
iptc_make_tag() function by Thies C. Arntzen
cacheImage()  : mixed
Creates the cache folder version of the image, including watermarking
getImageRotation()  : array<string|int, mixed>|false
Determines the rotation of the image by looking at EXIF information.
addWatermark()  : resource|object
Adds a watermark to a resized image. If no watermark is set it just returns the image
isGDImage()  : bool
Checks if an processed image is a GD library image
getRules()  : mixed
bind_textdomain_codeset()  : mixed
textdomain()  : mixed
gettext()  : mixed
ngettext()  : mixed
dgettext()  : mixed
dngettext()  : mixed
mb_strtolower()  : mixed
mb_strtoupper()  : mixed
mb_strlen()  : mixed
mb_substr()  : mixed
mb_strrpos()  : mixed
mb_strpos()  : mixed
mb_substr_count()  : mixed
elFinderAutoloader()  : mixed
imagecreatefrombmp()  : mixed
printFullAlbumsList()  : string
Prints all albums of the Zenphoto gallery as a partial drop down menu (<option></option> parts).
printSubLevelAlbums()  : string
Recursive helper function for printFullAlbumsList() to get all sub albums of each top level album
unpublishedZenphotoItemCheck()  : string
checks if a album or image is un-published and returns a '*'
shortentitle()  : string
shortens a string, truncate_string() was not exact enough.
printImageslist()  : string
Prints the images and/or albums as thumbnails of the selected album
getImageType()  : string
Returns the object "type" of the "image".
printNewsArticlesList()  : string
Prints all available articles in Zenpage
checkAlbumForImages()  : bool
Checks if an album has images for display on the form
showZenphotoOptions()  : bool
Checks if the full Zenphoto include form options should be shown
printTinyPageNav()  : string
Prints the page navigation for albums or Zenpage news articles
printZenpageItems()  : string
Prints the Zenpage items as a partial dropdown (pages, news articles, categories)
printAllNestedList()  : string
Prints all available pages or categories in Zenpage
unpublishedZenpageItemCheck()  : string
checks if a news article or page is un-published and/or protected and returns a '*'
setTinyZenpageLocale()  : mixed
Set the locale for gettext translation of this plugin. Somehow ZenPhoto's setupDomain() does not work here.
printTinyZenpageCategorySelector()  : mixed
Prints the dropdown menu for the category selector for the news articles list
upload_extra()  : mixed
upload_form()  : mixed
RSS_Channel()  : mixed
RSS_Retrieve()  : mixed

Constants

ELFINDER_PHP_ROOT_PATH

public mixed ELFINDER_PHP_ROOT_PATH = \dirname(__FILE__)

ENT_SUBSTITUTE

public mixed ENT_SUBSTITUTE = \defined('ENT_IGNORE') ? \ENT_IGNORE : 8

GD_FREETYPE_SAMPLE

public mixed GD_FREETYPE_SAMPLE = 'The quick brown fox jumps over the lazy dog'

GD_FREETYPE_SAMPLE_CHARS

public mixed GD_FREETYPE_SAMPLE_CHARS = strlen('GD_FREETYPE_SAMPLE')

GETID3_HELPERAPPSDIR

public mixed GETID3_HELPERAPPSDIR = $helperappsdir . DIRECTORY_SEPARATOR

GETID3_INCLUDEPATH

public mixed GETID3_INCLUDEPATH = \dirname(__FILE__) . \DIRECTORY_SEPARATOR

GETID3_LIBXML_OPTIONS

public mixed GETID3_LIBXML_OPTIONS = \LIBXML_NOENT | \LIBXML_NONET | \LIBXML_NOWARNING

GETID3_OS_ISWINDOWS

public mixed GETID3_OS_ISWINDOWS = \stripos(\PHP_OS, 'WIN') === 0

GETID3_TEMP_DIR

public mixed GETID3_TEMP_DIR = $temp_dir

OFFSET_PATH

public mixed OFFSET_PATH = 1

OFFSET_PATH

public mixed OFFSET_PATH = 3

OFFSET_PATH

public mixed OFFSET_PATH = 3

PHP_INT_MIN

public mixed PHP_INT_MIN = ~PHP_INT_MAX

SERVERPATH

public mixed SERVERPATH = $_zp_setup_serverpath

SETUPLOG

public mixed SETUPLOG = $_zp_setup_serverpath . '/' . \DATA_FOLDER . '/setup.log'

ZENPAGE_COMBINEWS

Some global variable setup

public mixed ZENPAGE_COMBINEWS = \false

ZP_ARTICLES_PER_PAGE

public mixed ZP_ARTICLES_PER_PAGE = \getOption("zenpage_articles_per_page") >= 1 ? \getOption("zenpage_articles_per_page") : 1

ZP_READ_MORE

public mixed ZP_READ_MORE = \getOption("zenpage_read_more")

ZP_SHORTEN_LENGTH

public mixed ZP_SHORTEN_LENGTH = \getOption('zenpage_text_length')

ZP_SHORTENINDICATOR

public mixed ZP_SHORTENINDICATOR = $shortenindicator = \getOption('zenpage_textshorten_indicator')

Functions

generateLanguageList()

Returns an array of available language locales.

generateLanguageList([mixed $all = false ]) : array<string|int, mixed>
Parameters
$all : mixed = false
Return values
array<string|int, mixed>

setMainDomain()

Sets the locale, etc. to the zenphoto domain details.

setMainDomain() : mixed

Returns the result of setupCurrentLocale()

gettext_th()

Gettext replacement function for separate translations of third party themes.

gettext_th(string $string[, string $theme = Null ]) : string
Parameters
$string : string

The string to be translated

$theme : string = Null

The name of the plugin. Only required for strings on the 'theme_description.php' file like the general theme description. If the theme is the current theme the function sets it automatically.

Return values
string

ngettext_th()

ngettext replacement function for separate translations of third party themes.

ngettext_th(string $msgid1, string $msgid2, int $n[, string $theme = NULL ]) : string
Parameters
$msgid1 : string
$msgid2 : string
$n : int
$theme : string = NULL
Return values
string

gettext_pl()

Gettext replacement function for separate translations of third party plugins within the root plugins folder.

gettext_pl(string $string, string $plugin) : string
Parameters
$string : string

The string to be translated

$plugin : string

The name of the plugin. Required.

Return values
string

ngettext_pl()

ngettext replacement function for separate translations of third party plugins within the root plugins folder.

ngettext_pl(string $msgid1, string $msgid2, int $n, string $plugin) : string
Parameters
$msgid1 : string
$msgid2 : string
$n : int
$plugin : string
Return values
string

i18nSetLocale()

Wrapper function for setLocale() so that all the proper permutations are used Returns the result from the setLocale call

i18nSetLocale( $locale) : string
Parameters
$locale :

the local desired

Return values
string

setupDomain()

Sets the translation domain and type for optional theme or plugin based translations

setupDomain([mixed $domain = NULL ][,  $type = NULL ]) : mixed
Parameters
$domain : mixed = NULL
$type : = NULL

NULL (Zenphoto main translation), "theme" or "plugin"

setupCurrentLocale()

Setup code for gettext translation Returns the result of the setlocale call

setupCurrentLocale([string $override = NULL ]) : mixed
Parameters
$override : string = NULL

force locale to this

getLangAttributeLocale()

Converts underscore locales like "en_US" to valid IANA/BCP 47 hyphen locales like "en-US" Needed for example in JS or HTML "lang" attributes.

getLangAttributeLocale([string $locale = NULL ]) : string
Parameters
$locale : string = NULL

a locale like "en_US", if empty the current locale is used

Tags
since
1.5.7
Return values
string

parseHttpAcceptLanguage()

This function will parse a given HTTP Accepted language instruction (or retrieve it from $_SERVER if not provided) and will return a sorted array. For example, it will parse fr;en-us;q=0.8

parseHttpAcceptLanguage([string $str = NULL ]) : array<string|int, mixed>

Thanks to Fredbird.org for this code.

Parameters
$str : string = NULL

optional language string

Return values
array<string|int, mixed>

validateLocale()

checks a "supplied" locale against the valid locales.

validateLocale(string $userlocale, mixed $source) : mixed

Returns a valid locale if one exists else returns NULL

Parameters
$userlocale : string
$source : mixed

getUserLocale()

Returns a saved (or posted) locale. Posted locales are stored as a cookie.

getUserLocale() : mixed

Sets the 'locale' option to the result (non-persistent)

get_language_string()

Returns the sring for the current language from a serialized set of language strings Defaults to the string for the current locale, the en_US string, or the first string which ever is present

get_language_string(string $dbstring[, string $locale = NULL ]) : string
Parameters
$dbstring : string

either a serialized languag string array or a single string

$locale : string = NULL

optional locale of the translation desired

Return values
string

getTimezones()

Returns a list of timezones

getTimezones() : unknown
Return values
unknown

timezoneDiff()

Returns the difference between the server timez one and the local (users) time zone

timezoneDiff(string $server, string $local) : int
Parameters
$server : string
$local : string
Return values
int

getAllTranslations()

returns a serialized "multilingual array" of translations Used for setting default options with multi-lingual strings.

getAllTranslations(string $text) : mixed
Parameters
$text : string

to be translated

getLanguageSubdomains()

creates an SEO language prefix list

getLanguageSubdomains() : mixed

getLanguageText()

Returns a canonical language name string for the location

getLanguageText([string $loc = NULL ][, mixed $separator = NULL ]) : string
Parameters
$loc : string = NULL

the location. If NULL use the current cookie

$separator : mixed = NULL
Return values
string

getSystemLocales()

Gets all locales suppported on the current server as a multidimensional array

getSystemLocales([bool $plainarray = false ]) : array<string|int, mixed>
Parameters
$plainarray : bool = false

Default false for a multidimensial array grouped by locale base. Set to true to generate a single dimensional array with all locales.

Tags
author

Stephen Billard (sbillard), Malte Müller (acrylian) - adapted from the old former unsupported tool list_locales.php

since
1.5.2
Return values
array<string|int, mixed>

getLanguageDisplayName()

Returns the real language name to the locale passed.

getLanguageDisplayName(string $locale) : string

If available it will use the native PHP Locale class. It returns the name in the language/locale currently set. Otherwise the far more limited internal Zenphoto catalogue stored in getLanguageArray() will be used.

Parameters
$locale : string

A vaild locale.

Tags
since
1.5.2
Return values
string

printLangAttribute()

Prints the lang="" attribute for the main <html> element.

printLangAttribute([string $locale = null ]) : mixed
Parameters
$locale : string = null

Default null so the current locale is used. Or a locale like "en_US" which will get the underscores replaced by hyphens to be valid

Tags
since
1.5.7

getFormattedLocaleDate()

Returns a locale aware - e.g. translated day and month names - formatted date. Requires the PHP intl extension to work properly Otherwise returns standard formatted date.

getFormattedLocaleDate([string $format = 'Y-m-dd' ][, string|int $datetime = '' ]) : string
Parameters
$format : string = 'Y-m-dd'

An ICU dateformat string

$datetime : string|int = ''

A date() compatible string or a timestamp. If empty "now" is used

Tags
since
1.6
since
1.6.1

Parameter value requirements changed

Return values
string

imageError()

imageError(string $status_text, string $errormessage[, string $errorimg = 'err-imagegeneral.png' ][, string $image = '' ][, string $album = '' ][, string $newfilename = '' ]) : mixed
Parameters
$status_text : string
$errormessage : string

the error message to print if $_GET['debug'] is set.

$errorimg : string = 'err-imagegeneral.png'

the filename of the error image to display for production. Defaults to 'err-imagegeneral.png'. Images should be located in /zp-core/images_errors .

$image : string = ''
$album : string = ''
$newfilename : string = ''
Tags
global

string $newfilename

global

string $album

global

string $image

imageDebug()

Prints debug information from the arguments to i.php.

imageDebug(string $album, string $image, array<string|int, mixed> $args, string $imgfile) : mixed
Parameters
$album : string

alubm name

$image : string

image name

$args : array<string|int, mixed>

size/crop arguments

$imgfile : string

the filename of the image

propSizes()

Calculates proprotional width and height Used internally by cacheImage

propSizes(int $size, int $width, int $height, int $w, int $h, int $thumb, int $image_use_side, int $dim) : array<string|int, mixed>

Returns array containing the new width and height

Parameters
$size : int
$width : int
$height : int
$w : int
$h : int
$thumb : int
$image_use_side : int
$dim : int
Return values
array<string|int, mixed>

iptc_make_tag()

iptc_make_tag() function by Thies C. Arntzen

iptc_make_tag( $rec,  $data,  $value) : mixed
Parameters
$rec :
$data :
$value :

cacheImage()

Creates the cache folder version of the image, including watermarking

cacheImage(string $newfilename, string $imgfile, array<string|int, mixed> $args[, bool $allow_watermark = false ][, string $theme = null ][, string $album = null ]) : mixed
Parameters
$newfilename : string

the name of the file when it is in the cache

$imgfile : string

the image name

$args : array<string|int, mixed>

the cropping arguments

$allow_watermark : bool = false

set to true if image may be watermarked

$theme : string = null

the current theme

$album : string = null

the album containing the image

getImageRotation()

Determines the rotation of the image by looking at EXIF information.

getImageRotation(string $imgfile) : array<string|int, mixed>|false

Returns an array with two indexes "rotate" (= degree to rotate) and "flip" ("horizontal" or "vertical") or false if nothing applies

Parameters
$imgfile : string

the image name

Tags
since
1.6.1

Return values changed from string|false to array|false

Return values
array<string|int, mixed>|false

addWatermark()

Adds a watermark to a resized image. If no watermark is set it just returns the image

addWatermark(resource|object $newim, string $watermark_image[, string $imgfile = null ]) : resource|object
Parameters
$newim : resource|object

GD image resource or Imagick object

$watermark_image : string

The path to the watermark to use

$imgfile : string = null

Path to the image being processed (optionally for debugging only)

Tags
since
1.5.3
  • consolidated from cacheImage() and full-image.php
Return values
resource|object

isGDImage()

Checks if an processed image is a GD library image

isGDImage(mixed $image) : bool
Parameters
$image : mixed

And Image resource (PHP < 8) or GDImage object (PHP 8+)

Tags
since
1.6
Return values
bool

bind_textdomain_codeset()

bind_textdomain_codeset(mixed $domain, mixed $codeset) : mixed
Parameters
$domain : mixed
$codeset : mixed

ngettext()

ngettext(mixed $msgid1, mixed $msgid2, mixed $n) : mixed
Parameters
$msgid1 : mixed
$msgid2 : mixed
$n : mixed

dgettext()

dgettext(mixed $plugin, mixed $string) : mixed
Parameters
$plugin : mixed
$string : mixed

dngettext()

dngettext(mixed $theme, mixed $msgid1, mixed $msgid2, mixed $n) : mixed
Parameters
$theme : mixed
$msgid1 : mixed
$msgid2 : mixed
$n : mixed

mb_strtolower()

mb_strtolower(mixed $str) : mixed
Parameters
$str : mixed

mb_strtoupper()

mb_strtoupper(mixed $str) : mixed
Parameters
$str : mixed

mb_strlen()

mb_strlen(mixed $str) : mixed
Parameters
$str : mixed

mb_substr()

mb_substr(mixed $str, mixed $start[, mixed $length = NULL ]) : mixed
Parameters
$str : mixed
$start : mixed
$length : mixed = NULL

mb_strrpos()

mb_strrpos(mixed $haystack, mixed $needle) : mixed
Parameters
$haystack : mixed
$needle : mixed

mb_strpos()

mb_strpos(mixed $haystack, mixed $needle[, mixed $offset = 0 ]) : mixed
Parameters
$haystack : mixed
$needle : mixed
$offset : mixed = 0

mb_substr_count()

mb_substr_count(mixed $haystack, mixed $needle) : mixed
Parameters
$haystack : mixed
$needle : mixed

elFinderAutoloader()

elFinderAutoloader(mixed $name) : mixed
Parameters
$name : mixed

imagecreatefrombmp()

imagecreatefrombmp(mixed $filename_or_stream_or_binary) : mixed
Parameters
$filename_or_stream_or_binary : mixed

printFullAlbumsList()

Prints all albums of the Zenphoto gallery as a partial drop down menu (<option></option> parts).

printFullAlbumsList() : string
Return values
string

printSubLevelAlbums()

Recursive helper function for printFullAlbumsList() to get all sub albums of each top level album

printSubLevelAlbums(mixed &$albumobj) : string
Parameters
$albumobj : mixed
Return values
string

unpublishedZenphotoItemCheck()

checks if a album or image is un-published and returns a '*'

unpublishedZenphotoItemCheck(mixed $obj[, mixed $dropdown = true ]) : string
Parameters
$obj : mixed
$dropdown : mixed = true
Return values
string

shortentitle()

shortens a string, truncate_string() was not exact enough.

shortentitle( $title,  $length) : string
Parameters
$title :

int Title of the image

$length :

int The desired length

Return values
string

printImageslist()

Prints the images and/or albums as thumbnails of the selected album

printImageslist( $number) : string
Parameters
$number :

int The number of images per page

Return values
string

getImageType()

Returns the object "type" of the "image".

getImageType(mixed $imageobj) : string

Note: If the root object is a video object then If a mediaplayer is enabled a sub-type of video or audio will be determined from the suffix. If it is not one of the known suffixes or if the mediaplayer is not enabled then 'other' is returned as the object type.

Pure images return empty for an object type.

Parameters
$imageobj : mixed
Return values
string

printNewsArticlesList()

Prints all available articles in Zenpage

printNewsArticlesList(mixed $number) : string
Parameters
$number : mixed
Return values
string

checkAlbumForImages()

Checks if an album has images for display on the form

checkAlbumForImages() : bool
Return values
bool

showZenphotoOptions()

Checks if the full Zenphoto include form options should be shown

showZenphotoOptions() : bool
Return values
bool

printTinyPageNav()

Prints the page navigation for albums or Zenpage news articles

printTinyPageNav([ $pagestotal = "" ][,  $currentpage = "" ][,  $mode = 'images' ]) : string
Parameters
$pagestotal : = ""

int The number page in total

$currentpage : = ""

int Number of the current page

$mode : = 'images'

string 'images' or 'articles'

Return values
string

printZenpageItems()

Prints the Zenpage items as a partial dropdown (pages, news articles, categories)

printZenpageItems() : string
Return values
string

printAllNestedList()

Prints all available pages or categories in Zenpage

printAllNestedList() : string
Return values
string

unpublishedZenpageItemCheck()

checks if a news article or page is un-published and/or protected and returns a '*'

unpublishedZenpageItemCheck(mixed $page) : string
Parameters
$page : mixed
Return values
string

setTinyZenpageLocale()

Set the locale for gettext translation of this plugin. Somehow ZenPhoto's setupDomain() does not work here.

setTinyZenpageLocale() : mixed

..

printTinyZenpageCategorySelector()

Prints the dropdown menu for the category selector for the news articles list

printTinyZenpageCategorySelector([mixed $currentpage = '' ]) : mixed
Parameters
$currentpage : mixed = ''

upload_extra()

upload_extra(mixed $uploadlimit, mixed $passedalbum) : mixed
Parameters
$uploadlimit : mixed
$passedalbum : mixed

upload_form()

upload_form(mixed $uploadlimit, mixed $passedalbum) : mixed
Parameters
$uploadlimit : mixed
$passedalbum : mixed

RSS_Channel()

RSS_Channel(mixed $channel) : mixed
Parameters
$channel : mixed

RSS_Retrieve()

RSS_Retrieve(mixed $url) : mixed
Parameters
$url : mixed

        
On this page

Search results