
Public Member Functions | |
| assignQuotaToGroup ($pQuotaId, $pGroupId) | |
| getDisplayUrl () | |
| getList () | |
| getQuotaGroups () | |
| getQuotaMenu ($pName='quota_menu', $pSelectId=NULL) | |
| getUserQuota ($pUserId) | |
| getUserUsage ($pUserId) | |
| isUserUnderQuota ($pUserId) | |
| isValid () | |
| LibertyQuota ($pQuotaId=NULL, $pContentId=NULL) | |
| load () | |
| store (&$pParamHash) | |
| verify (&$pParamHash) | |
Public Attributes | |
| $mQuotaId | |
Definition at line 33 of file LibertyQuota.php.
| LibertyQuota::assignQuotaToGroup | ( | $ | pQuotaId, | |
| $ | pGroupId | |||
| ) |
| LibertyQuota::getDisplayUrl | ( | ) |
Generates the URL to the quota page
| pExistsHash | the hash that was returned by LibertyContent::pageExists |
Definition at line 234 of file LibertyQuota.php.
References $ret, and BitBase::verifyId().
Here is the call graph for this function:

| LibertyQuota::getList | ( | ) |
| LibertyQuota::getQuotaGroups | ( | ) |
| LibertyQuota::getQuotaMenu | ( | $ | pName = 'quota_menu', |
|
| $ | pSelectId = NULL | |||
| ) |
| LibertyQuota::getUserQuota | ( | $ | pUserId | ) |
Given a user_id, this will return the max quota for the given user. If the user belongs to more than one group, it will chose the max values
| pUserId | user_id of the user for usage to be calculated for |
Definition at line 201 of file LibertyQuota.php.
| LibertyQuota::getUserUsage | ( | $ | pUserId | ) |
Given a user_id, this will return this disk space used for the given user
| pUserId | user_id of the user for usage to be calculated for |
Definition at line 220 of file LibertyQuota.php.
Referenced by isUserUnderQuota().
| LibertyQuota::isUserUnderQuota | ( | $ | pUserId | ) |
returns the quota and consumption if a user is under usage level
Definition at line 175 of file LibertyQuota.php.
References $diskQuota, $query, $ret, $rs, FALSE, getUserUsage(), and mDb.
Here is the call graph for this function:

| LibertyQuota::isValid | ( | ) |
Definition at line 242 of file LibertyQuota.php.
References BitBase::verifyId().
Here is the call graph for this function:

| LibertyQuota::LibertyQuota | ( | $ | pQuotaId = NULL, |
|
| $ | pContentId = NULL | |||
| ) |
During initialisation, be sure to call our base constructors
Definition at line 43 of file LibertyQuota.php.
References LibertyBase::LibertyBase().
Here is the call graph for this function:

| LibertyQuota::load | ( | ) |
| LibertyQuota::store | ( | &$ | pParamHash | ) |
Any method named Store inherently implies data will be written to the database
| pParamHash | be sure to pass by reference in case we need to make modifcations to the hash |
Definition at line 53 of file LibertyQuota.php.
References $pParamHash, $result, load(), mDb, and verify().
Here is the call graph for this function:

| LibertyQuota::verify | ( | &$ | pParamHash | ) |
Make sure the data is safe to store
| pParamHash | be sure to pass by reference in case we need to make modifcations to the hash |
Definition at line 74 of file LibertyQuota.php.
References $pParamHash, description, and title.
Referenced by store().
| LibertyQuota::$mQuotaId |
Primary key for our mythical Quota class object & table
Definition at line 38 of file LibertyQuota.php.
1.5.2