1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98:
<?php
/*
* These are the Zenpage functions which have been deprecated
*/
class Zenpage_internal_deprecations {
/**
* @deprecated Zenphoto 2.0
* @since Zenphoto 1.5.5
*/
public static function visibleCategory() {
deprecated_functions::notify(gettext('Use the method isPublic() of the ZenpageCategory class instead.'));
}
/**
* @deprecated Zenphoto 2.0 Use if($obj->isPublic() || zp_loggedin(ALL_NEWS_RIGHTS)) { … } for a equivalent check instead.
* @since Zenphoto 1.5.5
*/
public static function categoryIsVisible() {
deprecated_functions::notify(gettext('Use <code>if($obj->isPublic() || zp_loggedin(ALL_NEWS_RIGHTS)) { … }</code> for a equivalent check instead.'));
}
/**
* @deprecated Zenphoto 2.0 Use Zenpage::processScheduledPublishing('expiredate') instead
*/
public static function expiry() {
deprecated_functions::notify(gettext('Use Zenpage::processScheduledPublishing("expiredate") instead.'));
}
}
/**
* Wrapper function to get the author of a news article or page: Used by getNewsAuthor() and getPageAuthor().
*
* @deprecated Zenphoto 1.6 - Use getOwnerAuthor() instead
* @since Zenphoto 1.5.2
*
* @param bool $fullname False for the user name, true for the full name. If the author has no user account on this site the author name is returned
* @return string
*/
function getAuthor($fullname = false) {
deprecated_functions::notify(gettext('Use getOwnerAuthor() instead'));
return getOwnerAuthor($fullname);
}
/**
* Gets the author of a news article (if in Combinews mode for gallery items the owner)
*
* @deprecated Zenphoto 1.6 - Use getOwnerAuthor() instead
* @since Zenphoto 1.5.2
*
* @return string
*/
function getNewsAuthor($fullname = false) {
deprecated_functions::notify(gettext('Use getOwnerAuthor() instead'));
return getOwnerAuthor($fullname);
}
/**
* Prints the author of the current news article
*
* @deprecated Zenphoto 1.6 - Use printOwnerAuthor() instead
* @since Zenphoto 1.5.2
*/
function printNewsAuthor($fullname = false) {
deprecated_functions::notify(gettext('Use printOwnerAuthor() instead'));
echo html_encode(getOwnerAuthor($fullname));
}
/**
* Returns the author of the current page
*
* @deprecated Zenphoto 1.6 - Use getOwnerAuthor() instead
* @since Zenphoto 1.5.2
*
* @param bool $fullname True if you want to get the full name if set, false if you want the login/screenname
* @return string
*/
function getPageAuthor($fullname = false) {
deprecated_functions::notify(gettext('Use getOwnerAuthor() instead'));
return getOwnerAuthor($fullname);
}
/**
* Prints the author of the current page
*
* @deprecated Zenphoto 1.6 – Use printOwnerAuthor() instead
* @since Zenphoto 1.5.2
*
* @param bool $fullname True if you want to get the full name if set, false if you want the login/screenname
* @return string
*/
function printPageAuthor($fullname = false) {
deprecated_functions::notify(gettext('Use printOwnerAuthor() instead'));
echo html_encode(getOwnerAuthor($fullname));
}