Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • DeleteBlock
  • DeleteOperation
  • EditBlock
  • Hooks
  • ManageBlock
  • Model
  • Module
  • PermissionsOperation
  • Role
  • SaveOperation

Class Role

A user role.

ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
Extended by ICanBoogie\ActiveRecord
Extended by Icybee\Modules\Users\Roles\Role
Namespace: Icybee\Modules\Users\Roles
Located at vendor/icanboogie-modules/users.roles/lib/activerecords/role.php

Methods summary

public
# __construct( string|Icybee\Modules\Users\Roles\Model $model = 'users.roles' )

Initializes the $model and ICanBoogie\ActiveRecord::$model_id properties.

Initializes the $model and ICanBoogie\ActiveRecord::$model_id properties.

Parameters

$model
string|Icybee\Modules\Users\Roles\Model
$model The model managing the active record. A Icybee\Modules\Users\Roles\Model instance can be specified as well as a model identifier. If a model identifier is specified, the model is resolved when the $model property is accessed.

Throws

InvalidArgumentException
if $model is neither a model identifier nor a Icybee\Modules\Users\Roles\Model instance.

Overrides

ICanBoogie\ActiveRecord::__construct
public array
# to_array( )

TODO-20130121: This is a workaround to include perms in the array so that is is same by the model. What we should do is map perms to serialized perms, and maybe create a Permissions object for this purpose.

TODO-20130121: This is a workaround to include perms in the array so that is is same by the model. What we should do is map perms to serialized perms, and maybe create a Permissions object for this purpose.

Returns

array

Overrides

ICanBoogie\Object::to_array
protected
# lazy_get_perms( )
public
# has_permission( mixed $access, mixed $module = null )

Methods inherited from ICanBoogie\ActiveRecord

__sleep(), alter_persistent_properties(), delete(), get_model(), get_model_id(), save()

Methods inherited from ICanBoogie\Object

from(), resolve_facade_properties(), resolve_private_properties(), to_json()

Methods inherited from ICanBoogie\ToArrayRecursive

to_array_recursive()

Methods used from ICanBoogie\ToArrayRecursiveTrait

to_array_recursive()

Methods used from ICanBoogie\PrototypeTrait

__call(), __get(), __set(), __wakeup(), get_prototype(), has_method(), has_property(), last_chance_get(), last_chance_set()

Magic methods summary

Constants summary

string RID 'rid'
#
string NAME 'name'
#
string PERMS 'perms'
#
string SERIALIZED_PERMS 'serialized_perms'
#
integer GUEST_RID 1
#
integer USER_RID 2
#

Properties summary

public static array $permission_levels
#
public mixed $rid
#
public mixed $name
#
public mixed $serialized_perms
#

Properties inherited from ICanBoogie\ActiveRecord

$model_id

Magic properties inherited from ICanBoogie\ActiveRecord

$model, $model_id

Magic properties inherited from ICanBoogie\Object

$prototype

Autodoc API documentation generated by ApiGen 2.8.0