Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7058248
Storage.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
774 B
Referenced Files
None
Subscribers
None
Storage.php
View Options
<?php
namespace
App\Handlers
;
class
Storage
extends
\App\Handlers\Base
{
public
const
MAX_ITEMS
=
100
;
public
const
ITEM_UNIT
=
'GB'
;
public
static
function
entitleableClass
():
string
{
return
\App\User
::
class
;
}
public
static
function
preReq
(
$entitlement
,
$object
):
bool
{
if
(!
$entitlement
->
sku
->
active
)
{
\Log
::
error
(
"Sku not active"
);
return
false
;
}
// TODO: The storage can not be modified to below what is already consumed.
return
true
;
}
/**
* The priority that specifies the order of SKUs in UI.
* Higher number means higher on the list.
*
* @return int
*/
public
static
function
priority
():
int
{
return
90
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jun 12, 4:36 AM (6 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
911775
Default Alt Text
Storage.php (774 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment