extends |
Module_Skeleton |
---|
Copyright (C) Apis Networks, Inc - All Rights Reserved.
Unauthorized copying of this file, via any medium, is strictly prohibited without consent. Any dissemination of material herein is prohibited.
For licensing inquiries email licensing@apisnetworks.com
Written by Matt Saladna matt@apisnetworks.com, July 2017
Methods | ||
---|---|---|
public
|
amnesty(string $site = null): bool
|
# |
public
|
amnesty_active(): bool
|
# |
public
|
project_supported(): bool
|
# |
public
|
project_get(string $name): array
|
# |
public
|
project_set(string $name, int $bhard, int $ihard, int $bsoft = 0, int $isoft = 0): bool
|
# |
public
|
projects(): array
|
# |
public
|
project_delete(string $name): bool
|
# |
public
|
project_create(string $name): bool
|
# |
Constants | ||
---|---|---|
public
|
DEPENDENCY_MAP = ['siteinfo']
|
# |
public
|
MIN_STORAGE_AMNESTY = QUOTA_STORAGE_WAIT
|
# |
public
|
AMNESTY_DURATION = QUOTA_STORAGE_DURATION
|
# |
public
|
AMNESTY_MULTIPLIER = QUOTA_STORAGE_BOOST
|
# |
public
|
AMNESTY_JOB_MARKER = 'amnesty'
|
# |
public
|
ERR_PROJECT_NAME_RESERVED = [':err_project_name_reserved', "Project name begins with reserved prefix"]
|
# |
Properties | |||
---|---|---|---|
public
|
|
$exportedFunctions = [
'*' => PRIVILEGE_SITE,
'amnesty' => PRIVILEGE_SITE | PRIVILEGE_ADMIN,
'project_create' => PRIVILEGE_ADMIN,
'projects' => PRIVILEGE_ADMIN,
'project_delete' => PRIVILEGE_ADMIN,
'project_get' => PRIVILEGE_ADMIN,
'project_supported' => PRIVILEGE_ADMIN,
'project_set' => PRIVILEGE_ADMIN,
]
|
# |