BEdita API doc | 4-cactus
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Download

Namespaces

  • BEdita
    • API
      • Auth
      • Controller
        • Admin
        • Component
        • Model
      • Error
      • Event
      • Exception
      • Middleware
      • Model
        • Action
      • Network
        • Exception
      • Shell
      • TestSuite
      • Utility
    • Core
      • Configure
        • Engine
      • Database
        • Type
      • Exception
      • Filesystem
        • Adapter
        • Exception
        • Thumbnail
      • I18n
      • Job
        • Service
      • Mailer
        • Preview
        • Transport
      • Model
        • Action
        • Behavior
        • Entity
        • Table
        • Validation
      • ORM
        • Inheritance
        • Locator
        • Rule
      • Shell
        • Task
      • State
      • TestSuite
        • Fixture
      • Utility

Classes

  • AnnotationsTable
  • ApplicationsTable
  • AsyncJobsTable
  • AuthProvidersTable
  • CategoriesTagsBaseTable
  • EndpointsTable
  • FoldersTable
  • HistoryTable
  • LocationsTable
  • MediaTable
  • ObjectCategoriesTable
  • ObjectPermissionsTable
  • ObjectPropertiesTable
  • ObjectRelationsTable
  • ObjectsBaseTable
  • ObjectTagsTable
  • ObjectTypesTable
  • PropertiesTable
  • PropertyTypesTable
  • RelationTypesTable
  • RolesTable
  • RolesUsersTable
  • StaticPropertiesTable
  • StreamsTable
  • TagsTable
  • TranslationsTable
  • TreesTable
  • UserTokensTable

Class RolesTable

Roles Model

Cake\ORM\Table
Extended by BEdita\Core\Model\Table\RolesTable
Namespace: BEdita\Core\Model\Table
Since: 4.0.0
Located at Core/src/Model/Table/RolesTable.php

Methods summary

public
# initialize( array $config )

Codecoverageignore

public
# validationDefault( Cake\Validation\Validator $validator )

Codecoverageignore

public
# buildRules( Cake\ORM\RulesChecker $rules )

Codecoverageignore

protected Cake\ORM\Query
# findMine( Cake\ORM\Query $query )

Finder for my roles (i.e.: roles of currently logged users).

Finder for my roles (i.e.: roles of currently logged users).

Parameters

$query
Query object instance.

Returns

Cake\ORM\Query
public
# beforeDelete( Cake\Event\Event $event, Cake\Datasource\EntityInterface $entity )

Before delete checks: if record is not deletable, raise a ImmutableResourceException

Before delete checks: if record is not deletable, raise a ImmutableResourceException

Parameters

$event
The beforeSave event that was fired
$entity
the entity that is going to be saved

Throws

BEdita\Core\Exception\ImmutableResourceException
if entity is not deletable

Magic methods summary

public BEdita\Core\Model\Entity\Role
# get( $primaryKey, $options = [] )

Parameters

$primaryKey
$options

Returns

BEdita\Core\Model\Entity\Role
public BEdita\Core\Model\Entity\Role
# newEntity( $data = null, array $options = [] )

Parameters

$data
$options

Returns

BEdita\Core\Model\Entity\Role
public BEdita\Core\Model\Entity\Role[]
# newEntities( array $data, array $options = [] )

Parameters

$data
$options

Returns

BEdita\Core\Model\Entity\Role[]
public BEdita\Core\Model\Entity\Role|boolean
# save( Cake\Datasource\EntityInterface $entity, $options = [] )

Parameters

$entity
$options

Returns

BEdita\Core\Model\Entity\Role|boolean
public BEdita\Core\Model\Entity\Role
# patchEntity( Cake\Datasource\EntityInterface $entity, array $data, array $options = [] )

Parameters

$entity
$data
$options

Returns

BEdita\Core\Model\Entity\Role
public BEdita\Core\Model\Entity\Role[]
# patchEntities( $entities, array $data, array $options = [] )

Parameters

$entities
$data
$options

Returns

BEdita\Core\Model\Entity\Role[]
public BEdita\Core\Model\Entity\Role
# findOrCreate( $search, callable $callback = null, $options = [] )

Parameters

$search
$callback
$options

Returns

BEdita\Core\Model\Entity\Role

Constants summary

integer ADMIN_ROLE

Administrator role id

Administrator role id

# 1

Properties summary

Magic properties

public Cake\ORM\Association\BelongsToMany $Users
BEdita API doc | 4-cactus API documentation generated by ApiGen