Class Hook_pointstore_permission

Description

Located in /sources/hooks/modules/pointstore/permission.php (line 21)


	
			
Method Summary
tempcode action ()
tempcode action_done ()
boolean bought (array $row)
?array config ()
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 = ''])
array get_map (array $row)
array info ()
void init ()
void save_config ()
Methods
action (line 248)

Standard interface stage of pointstore item purchase.

  • return: The UI
tempcode action ()
action_done (line 277)

Standard actualisation stage of pointstore item purchase.

  • return: The UI
tempcode action_done ()
bought (line 355)

Standard actualisation stage of pointstore item purchase.

  • return: Whether the current member has bought it already
boolean bought (array $row)
  • array $row: Map row
config (line 123)

Standard pointstore item configuration function.

  • return: A tuple: list of [fields to shown, hidden fields], title for add form, add form (NULL: disabled)
?array config ()
get_fields (line 52)

Get fields for adding/editing one of these.

  • return: The fields
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_map (line 322)

Get a database map for our permission row.

  • return: Permission map row
array get_map (array $row)
  • array $row: Map row of item
info (line 225)

Standard pointstore item initialisation function.

  • return: The "shop fronts"
array info ()
init (line 27)

Standard pointstore item initialisation function.

void init ()
save_config (line 146)

Standard pointstore item configuration save function.

void save_config ()

Documentation generated on Sun, 02 Jan 2011 23:20:57 +0000 by phpDocumentor 1.4.3