Class Zenphoto_Authority
Provides the methods used for user authorization and management
store an instantiation of this class in $_zp_authority
.
public
lib_auth_options
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public static
|
|
public static
string
|
#
passwordHash( string $user, string $pass, $hash_type = NULL )
Returns the hash of the zenphoto password |
public
array
|
#
getAdministrators( string $what = 'users' )
Returns an array of admin users, indexed by the userid and ordered by "privileges" |
public static
|
|
public
bit
|
#
checkAuthorization( string $authCode, integer $id )
Retuns the administration rights of a saved authorization code Will promote an admin to ADMIN_RIGHTS if he is the most privileged admin |
public
object
|
|
public
array
|
#
getAdminEmail( bit $rights = NULL )
Returns the email addresses of the Admin with ADMIN_USERS rights |
public
|
|
public static
mixed
|
#
updateAdminField( string $update, mixed $value, array $constraints )
Updates a field in admin record(s) |
public static
object
|
|
public static
|
|
public static
|
|
public
|
|
public static
|
|
public
|
|
public static
|
|
public static
|
|
public
|
|
public
|
#
printLoginForm( string $redirect = null, boolean $logo = true, boolean $showUserField = true, boolean $showCaptcha = true, string $hint = '' )
Print the login form for ZP. This will take into account whether mod_rewrite is enabled or not. |
public static
|
|
public static
|
|
public static
string
|
|
public
boolean
|
#
checkUniqueMailaddress( string $email_to_check, type $current_user )
Checks if the email address being set is already used by another user Returns true if it is, false if not |
public
|
$admin_users
|
#
NULL
|
public
|
$admin_groups
|
#
NULL
|
public
|
$admin_other
|
#
NULL
|
public
|
$admin_all
|
#
NULL
|
public
|
$rightsset
|
#
NULL
|
protected
|
$master_user
|
#
NULL
|
public static
integer
|
$preferred_version
|
#
4
|
public static
integer
|
$supports_version
|
#
4
|
public static
array
|
$hashList
|
#
array('pbkdf2' => 3, 'pbkdf2*' => 2, 'sha1' => 1, 'md5' => 0)
|