Standard interface stage of pointstore item purchase.
tempcode
action
()
Standard actualisation stage of pointstore item purchase.
tempcode
action_done
()
Standard actualisation stage of pointstore item purchase.
boolean
bought
(array $row)
Standard pointstore item configuration function.
?array
config
()
Get fields for adding/editing one of these.
tempcode
get_fields
([string $name_suffix = ''], [SHORT_TEXT $title = ''], [LONG_TEXT $description = ''], [BINARY $enabled = 1], [?integer $cost = NULL], [integer $hours = 24], [ID_TEXT $type = 'msp'], [ID_TEXT $specific_permission = ''], [ID_TEXT $zone = ''], [ID_TEXT $page = ''], [ID_TEXT $module = ''], [ID_TEXT $category = ''])
-
string
$name_suffix: What to place onto the end of the field name
-
SHORT_TEXT
$title: Title
-
LONG_TEXT
$description: Description
-
BINARY
$enabled: Whether it is enabled
-
?integer
$cost: The cost in points (NULL: not set)
-
integer
$hours: Number of hours for it to last for
-
ID_TEXT
$type: Permission scope 'type'
-
ID_TEXT
$specific_permission: Permission scope 'specific_permission'
-
ID_TEXT
$zone: Permission scope 'zone'
-
ID_TEXT
$page: Permission scope 'page'
-
ID_TEXT
$module: Permission scope 'module'
-
ID_TEXT
$category: Permission scope 'category'
Get a database map for our permission row.
array
get_map
(array $row)
-
array
$row: Map row of item
Standard pointstore item initialisation function.
array
info
()
Standard pointstore item initialisation function.
void
init
()
Standard pointstore item configuration save function.
void
save_config
()