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

  • email_new_user
  • federated_logon
  • http_auth
  • quota_manager
  • register_user
  • user_expiry
  • user_groups
  • user_logout_options

Functions

  • printRegisterURL
  • printRegistrationForm
  • printUserLogin_out
  • user_mailing_list_button
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class quota_manager

Option handler class

Package: plugins\users
Author: Stephen Billard (sbillard)
Located at zp-extensions/quota_manager.php
Methods summary
public filter_zenphoto_seo
# __construct( )

class instantiation function

class instantiation function

Returns

filter_zenphoto_seo
public array
# getOptionsSupported( )

Reports the supported options

Reports the supported options

Returns

array
public
# handleOption( $option, $currentValue )
public static boolean
# save_admin( string $updated, object $userobj, string $i, boolean $alter )

Saves admin custom data Called when an admin is saved

Saves admin custom data Called when an admin is saved

Parameters

$updated
true if data has changed
$userobj
admin user object
$i
prefix for the admin
$alter
will be true if critical admin data may be altered

Returns

boolean
public static string
# edit_admin( string $html, $userobj, string $i, string $background, boolean $current, $local_alterrights )

Returns table row(s) for edit of an admin user's custom data

Returns table row(s) for edit of an admin user's custom data

Parameters

$html
always empty
$userobj
user object
$i
prefix for the admin
$background
background color for the admin row
$current
true if this admin row is the logged in admin
$local_alterrights

Returns

string
public static integer
# getCurrentUse( $userobj )

Returns current image useage

Returns current image useage

Parameters

$userobj
user object

Returns

integer
public static object
# new_image( string $image )

Assigns owner to new image

Assigns owner to new image

Parameters

$image

Returns

object
public static object
# image_refresh( unknown_type $image )

checks to see if the filesize is set and sets it if not

checks to see if the filesize is set and sets it if not

Parameters

$image

Returns

object
public static integer
# getUploadQuota( integer $quota )

Returns the user's quota

Returns the user's quota

Parameters

$quota

Returns

integer
public static integer
# getUploadLimit( integer $uploadlimit )

Returns the upload limit

Returns the upload limit

Parameters

$uploadlimit

Returns

integer
public static integer
# checkQuota( integer $error, string $image )

Checks if upload should be allowed

Checks if upload should be allowed

Parameters

$error
$image

Returns

integer
public static string
# get_header( string $default )

Returns quota text for header, etc.

Returns quota text for header, etc.

Parameters

$default

Returns

string
public static string
# upload_helper_js( string $defaultJS )

Returns Javascript needed to support quota system

Returns Javascript needed to support quota system

Parameters

$defaultJS

Returns

string
public static array
# upload_filetypes( array $types )

Removes ZIP from list of upload suffixes

Removes ZIP from list of upload suffixes

Parameters

$types

Returns

array
Zenphoto doc API documentation generated by ApiGen