[ class tree: plugins ] [ index: plugins ] [ all elements ]

Procedural File: deprecated-functions.php

Source Location: /zp-extensions/deprecated-functions.php

Page Details

These functions have been removed from mainstream Zenphoto as they have been supplanted.

They are not maintained and they are not guarentted to function correctly with the current version of Zenphoto.

Functions
getAlbumPlace  [line 222]

Returns the Location of the album.


string getAlbumPlace( )

[ Top ]
getAllSubalbums  [line 380]
Parameters:
   $param: 


void getAllSubalbums( [ $param = NULL]  )

[ Top ]
getCommentDate  [line 122]

Retrieves the date of the current comment.

Deprecated--use getCommentDateTime()

Returns a formatted date

Parameters:
string   $format:  how to format the result


string getCommentDate( [string $format = NULL]  )

[ Top ]
getCommentTime  [line 148]

Retrieves the time of the current comment.

Deprecated--use getCommentDateTime()

Returns a formatted time

Parameters:
string   $format:  how to format the result


string getCommentTime( [string $format = '%I:%M %p']  )

[ Top ]
getImageEXIFData  [line 210]

Returns the EXIF infromation from the current image


array getImageEXIFData( )

[ Top ]
getNewsImageTags  [line 325]

CombiNews feature: Returns a list of tags of an image.


array getNewsImageTags( )

[ Top ]
getNumSubalbums  [line 375]

void getNumSubalbums( )

[ Top ]
getZenpageHitcounter  [line 24]

THIS FUNCTION IS DEPRECATED! Use getHitcounter()! Gets the hitcount of a page, news article or news category

Parameters:
string   $mode:  Pass "news", "page" or "category" to get the hitcounter of the current page, article or category if one is set
mixed   $obj:  If you want to get the hitcount of a specific page or article you additionally can to pass its object. If you want to get the hitcount of a specific category you need to pass its cat_link. In any case $mode must be set!


int getZenpageHitcounter( [string $mode = ""], [mixed $obj = NULL]  )

[ Top ]
hitcounter  [line 164]

Returns the hitcounter for the page viewed (image.php and album.php only).

Deprecated, use getHitcounter()

Parameters:
string   $option:  "image" for image hit counter (default), "album" for album hit counter
bool   $viewonly:  set to true if you don't want to increment the counter.
int   $id:  Optional record id of the object if not the current image or album

Information Tags:
Since:  1.1.3

string hitcounter( [string $option = 'image'], [bool $viewonly = false], [int $id = NULL]  )

[ Top ]
my_truncate_string  [line 195]

Shortens a string to $length

Deprecated: use truncate_string

Parameters:
string   $string:  the string to be shortened
int   $length:  the desired length for the string


string my_truncate_string( string $string, int $length  )

[ Top ]
printAlbumPlace  [line 236]

Prints the location of the album and make it editable

Parameters:
bool   $editable:  when true, enables AJAX editing in place
string   $editclass:  CSS class applied to element if editable
mixed   $messageIfEmpty:  Either bool or string. If false, echoes nothing when description is empty. If true, echoes default placeholder message if empty. If string, echoes string.

Information Tags:
Author:  Ozh

void printAlbumPlace( [bool $editable = false], [string $editclass = ''], [mixed $messageIfEmpty = true]  )

[ Top ]
printAlbumRating  [line 74]

Prints the album rating information for the current image

Deprecated: Included for forward compatibility--use printRating() directly

Parameters:
   $object: 


void printAlbumRating( [ $object = NULL]  )

[ Top ]
printCustomSizedImageMaxHeight  [line 103]

This function is considered deprecated.

Please use the new replacement get/printCustomSizedImageMaxSpace().

Prints out a sized image up to $maxheight tall (as width the value set in the admin option is taken)

Parameters:
int   $maxheight:  how bif the picture should be


void printCustomSizedImageMaxHeight( int $maxheight  )

[ Top ]
printImageEXIFData  [line 86]

Prints image data.

Deprecated, use printImageMetadata


void printImageEXIFData( )

[ Top ]
printImageRating  [line 62]

Prints the image rating information for the current image

Deprecated: Included for forward compatibility--use printRating() directly

Parameters:
   $object: 


void printImageRating( [ $object = NULL]  )

[ Top ]
printNewsImageTags  [line 346]

CombiNews feature: Prints a list of tags of an image. These tags are not editable.

Parameters:
string   $option:  links by default, if anything else the tags will not link to all other photos with the same tag
string   $preText:  text to go before the printed tags
string   $class:  css class to apply to the UL list
string   $separator:  what charactor shall separate the tags
bool   $editable:  true to allow admin to edit the tags


string printNewsImageTags( [string $option = 'links'], [string $preText = NULL], [string $class = 'taglist'], [string $separator = ', '], [bool $editable = TRUE]  )

[ Top ]
rewrite_path_zenpage  [line 311]

Same as zenphoto's rewrite_path() except it's without WEBPATH, needed for some partial urls

Parameters:
$rewrite   $rewrite:  The path with mod_rewrite
$plain   $plain:  The path without


string rewrite_path_zenpage( [$rewrite $rewrite = ''], [$plain $plain = '']  )

[ Top ]
zenpageHitcounter  [line 261]

THIS FUNCTION IS DEPRECATED! Use getHitcounter()!

Increments (optionally) and returns the hitcounter for a news category (page 1), a single news article or a page Does not increment the hitcounter if the viewer is logged in as the gallery admin. Also does currently not work if the static cache is enabled

Parameters:
string   $option:  "pages" for a page, "news" for a news article, "category" for a news category (page 1 only)
bool   $viewonly:  set to true if you don't want to increment the counter.
int   $id:  Optional record id of the object if not the current image or album


string zenpageHitcounter( [string $option = 'pages'], [bool $viewonly = false], [int $id = NULL]  )

[ Top ]


Documentation generated on Mon, 09 Aug 2010 17:23:56 +0200 by phpDocumentor 1.4.1