ZenphotoCMS 1.6.3

quota_manager

Option handler class

Table of Contents

Methods

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

Methods

__construct()

class instantiation function

public __construct() : filter_zenphoto_seo
Return values
filter_zenphoto_seo

checkQuota()

Checks if upload should be allowed

public static checkQuota(int $error, string $image) : int
Parameters
$error : int
$image : string
Return values
int

edit_admin()

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

public static edit_admin(string $html,  $userobj, string $i, string $background, bool $current, mixed $local_alterrights) : string
Parameters
$html : string

always empty

$userobj :

Admin user object

$i : string

prefix for the admin

$background : string

background color for the admin row

$current : bool

true if this admin row is the logged in admin

$local_alterrights : mixed
Return values
string

get_header()

Returns quota text for header, etc.

public static get_header(string $default) : string
Parameters
$default : string
Return values
string

getCurrentUse()

Returns current image useage

public static getCurrentUse( $userobj) : int
Parameters
$userobj :

Admin user object

Return values
int

getOptionsSupported()

Reports the supported options

public getOptionsSupported() : array<string|int, mixed>
Return values
array<string|int, mixed>

getUploadLimit()

Returns the upload limit

public static getUploadLimit(int $uploadlimit) : int
Parameters
$uploadlimit : int
Return values
int

getUploadQuota()

Returns the user's quota

public static getUploadQuota(int $quota) : int
Parameters
$quota : int
Return values
int

handleOption()

public handleOption(mixed $option, mixed $currentValue) : mixed
Parameters
$option : mixed
$currentValue : mixed

image_refresh()

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

public static image_refresh(unknown_type $image) : object
Parameters
$image : unknown_type
Return values
object

new_image()

Assigns owner to new image

public static new_image(string $image) : object
Parameters
$image : string
Return values
object

save_admin()

Saves admin custom data Called when an admin is saved

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

true if data has changed

$userobj : object

admin user object

$i : string

prefix for the admin

$alter : bool

will be true if critical admin data may be altered

Return values
bool

upload_filetypes()

Removes ZIP from list of upload suffixes

public static upload_filetypes(array<string|int, mixed> $types) : array<string|int, mixed>
Parameters
$types : array<string|int, mixed>
Return values
array<string|int, mixed>

upload_helper_js()

Returns Javascript needed to support quota system

public static upload_helper_js(string $defaultJS) : string
Parameters
$defaultJS : string
Return values
string

        
On this page

Search results