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

Class: quota_manager

Source Location: /zp-extensions/quota_manager.php

Class quota_manager

Method Summary
static int   checkQuota()   Checks if upload should be allowed
static string   edit_admin()   Returns table row(s) for edit of an admin user's custom data
static int   getCurrentUse()   Returns current image useage
static int   getUploadLimit()   Returns the upload limit
static int   getUploadQuota()   Returns the user's quota
static string   get_header()   Returns quota text for header, etc.
static object   image_refresh()   checks to see if the filesize is set and sets it if not
static object   new_image()   Assigns owner to new image
static bool   save_admin()   Saves admin custom data Called when an admin is saved
static array   upload_filetypes()   Removes ZIP from list of upload suffixes
static string   upload_helper_js()   Returns Javascript needed to support quota system
filter_zenphoto_seo   __construct()   class instantiation function
array   getOptionsSupported()   Reports the supported options
void   handleOption()  

[ Top ]
Methods
static method checkQuota  [line 216]

  static int checkQuota( int $error, string $image  )

Checks if upload should be allowed

Parameters:
int   $error: 
string   $image: 


[ Top ]
static method edit_admin  [line 115]

  static string edit_admin( string $html, $userobj $userobj, string $i, string $background, bool $current, $local_alterrights  )

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

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


[ Top ]
static method getCurrentUse  [line 145]

  static int getCurrentUse( $userobj $userobj  )

Returns current image useage

Parameters:
$userobj   $userobj:  Admin user object


[ Top ]
static method getUploadLimit  [line 203]

  static int getUploadLimit( int $uploadlimit  )

Returns the upload limit

Parameters:
int   $uploadlimit: 


[ Top ]
static method getUploadQuota  [line 186]

  static int getUploadQuota( int $quota  )

Returns the user's quota

Parameters:
int   $quota: 


[ Top ]
static method get_header  [line 242]

  static string get_header( string $default  )

Returns quota text for header, etc.

Parameters:
string   $default: 


[ Top ]
static method image_refresh  [line 175]

  static object image_refresh( unknown_type $image  )

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

Parameters:
unknown_type   $image: 


[ Top ]
static method new_image  [line 160]

  static object new_image( string $image  )

Assigns owner to new image

Parameters:
string   $image: 


[ Top ]
static method save_admin  [line 94]

  static bool save_admin( string $updated, object $userobj, string $i, bool $alter  )

Saves admin custom data Called when an admin is saved

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


[ Top ]
static method upload_filetypes  [line 281]

  static array upload_filetypes( array $types  )

Removes ZIP from list of upload suffixes

Parameters:
array   $types: 


[ Top ]
static method upload_helper_js  [line 262]

  static string upload_helper_js( string $defaultJS  )

Returns Javascript needed to support quota system

Parameters:
string   $defaultJS: 


[ Top ]
Constructor __construct  [line 62]

  filter_zenphoto_seo __construct( )

class instantiation function



[ Top ]
getOptionsSupported  [line 72]

  array getOptionsSupported( )

Reports the supported options



[ Top ]
handleOption  [line 80]

  void handleOption( $option, $currentValue  )

Parameters:
   $option: 
   $currentValue: 


[ Top ]

Documentation generated on Sat, 07 Jun 2014 18:03:42 +0200 by phpDocumentor 1.4.3