Overview

Namespaces

  • Sleepy
  • Module
    • Authentication
    • CSV
    • DB
    • FormBuilder
    • FSDB
    • IP2Country
    • Mailer
    • MobiDetect
    • Navigation
    • StaticCache
  • PHP

Classes

  • Permission
  • Role
  • User
  • UserMeta
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class Role

The users role

Module\DB\Record
Extended by Module\Authentication\Role
Namespace: Module\Authentication
Located at class.user.php
Methods summary
public mixed
# getPermission( string $key )

The the permission for the role

The the permission for the role

Parameters

$key
The permission key

Returns

mixed
The role data, e.g. True/False, etc.
public
# load( integer $id = 0 )

Loads the role

Loads the role

Parameters

$id
role_id

Overrides

Module\DB\Record::load()
public
# setPermission( string $key, $value )

Sets a permission for this role

Sets a permission for this role

Parameters

$key
The permission key
$value
Methods inherited from Module\DB\Record
__construct(), delete(), form(), save()
Properties summary
public string $table

string The name of the table

string The name of the table

# 'roles'
private $_permissions
#
Properties inherited from Module\DB\Record
$columns, $db, $meta, $primaryKey
sleepyMUSTACHE v.0.8 API documentation generated by ApiGen