class Role extends UserRole (View source)

Properties

protected AbstractDao $dao from AbstractModel
int $id from AbstractUser
int $parentId from AbstractUser
string $name from AbstractUser
string $type
array $permissions from UserRole
array $workspacesAsset from UserRole
array $workspacesObject from UserRole
array $workspacesDocument from UserRole
array $classes from UserRole
array $docTypes from UserRole
array $perspectives from UserRole
array $websiteTranslationLanguagesView from UserRole
array $websiteTranslationLanguagesEdit from UserRole

Methods

Dao
getDao()

No description

setDao($dao)

No description

getResource() deprecated

No description

initDao(null $key = null, bool $forceDetection = false)

No description

static string|null
locateDaoClass(string $modelClass)

No description

$this
setValues(array $data = [])

No description

$this
setValue($key, $value)

No description

array
__sleep()

No description

mixed
__call($method, $args)

No description

__clone()

No description

array
getObjectVars()

returns object values without the dao

array
__debugInfo()

No description

void
beginTransaction()

No description

void
commit()

No description

void
rollBack()

No description

void
configure()

No description

array
getValidTableColumns(string $table, bool $cache)

No description

void
resetValidTableColumnsCache(string $table)

No description

static AbstractUser
getById(int $id)

No description

static AbstractUser
create(array $values = [])

No description

static AbstractUser
getByName(string $name)

No description

int
getId()

No description

$this
setId(int $id)

No description

int
getParentId()

No description

$this
setParentId(int $parentId)

No description

string
getName()

No description

$this
setName(string $name)

No description

string
getType()

No description

$this
save()

No description

delete()

No description

$this
setType($type)

No description

update()

No description

from UserRole
setAllAclToFalse()

No description

from UserRole
$this
setPermission($permissionName, null $value = null)

No description

from UserRole
array
getPermissions()

No description

from UserRole
bool
getPermission($permissionName)

No description

from UserRole
array
generatePermissionList()

Generates the permission list required for frontend display

from UserRole
$this
setPermissions($permissions)

No description

from UserRole
$this
setWorkspacesAsset($workspacesAsset)

No description

from UserRole
Asset[]
getWorkspacesAsset()

No description

from UserRole
$this
setWorkspacesDocument($workspacesDocument)

No description

from UserRole
getWorkspacesDocument()

No description

from UserRole
$this
setWorkspacesObject($workspacesObject)

No description

from UserRole
getWorkspacesObject()

No description

from UserRole
setClasses(array $classes)

No description

from UserRole
array
getClasses()

No description

from UserRole
setDocTypes(array $docTypes)

No description

from UserRole
array
getDocTypes()

No description

from UserRole
mixed
getPerspectives()

No description

from UserRole
setPerspectives(mixed $perspectives)

No description

from UserRole
array
from UserRole
setWebsiteTranslationLanguagesView(array $websiteTranslationLanguagesView)

No description

from UserRole
array
from UserRole
setWebsiteTranslationLanguagesEdit(array $websiteTranslationLanguagesEdit)

No description

from UserRole
array|string
prepareArray($array)

checks if given parameter is string and if so splits it creates array returns empty array if empty parameter is given

from UserRole

Details

Dao getDao()

Return Value

Dao

AbstractModel setDao($dao)

Parameters

$dao

Return Value

AbstractModel

AbstractDao getResource() deprecated

deprecated

Return Value

AbstractDao

initDao(null $key = null, bool $forceDetection = false)

Parameters

null $key
bool $forceDetection

Exceptions

Exception

static string|null locateDaoClass(string $modelClass)

Parameters

string $modelClass

Return Value

string|null

$this setValues(array $data = [])

Parameters

array $data

Return Value

$this

$this setValue($key, $value)

Parameters

$key
$value

Return Value

$this

array __sleep()

Return Value

array

mixed __call($method, $args)

Parameters

$method
$args

Return Value

mixed

Exceptions

Exception

__clone()

array getObjectVars()

returns object values without the dao

Return Value

array

array __debugInfo()

Return Value

array

void beginTransaction()

Return Value

void

void commit()

Return Value

void

void rollBack()

Return Value

void

void configure()

Return Value

void

array getValidTableColumns(string $table, bool $cache)

Parameters

string $table
bool $cache

Return Value

array

void resetValidTableColumnsCache(string $table)

Parameters

string $table

Return Value

void

static AbstractUser getById(int $id)

Parameters

int $id

Return Value

AbstractUser

static AbstractUser create(array $values = [])

Parameters

array $values

Return Value

AbstractUser

static AbstractUser getByName(string $name)

Parameters

string $name

Return Value

AbstractUser

int getId()

Return Value

int

$this setId(int $id)

Parameters

int $id

Return Value

$this

int getParentId()

Return Value

int

$this setParentId(int $parentId)

Parameters

int $parentId

Return Value

$this

string getName()

Return Value

string

$this setName(string $name)

Parameters

string $name

Return Value

$this

string getType()

Return Value

string

$this save()

Return Value

$this

Exceptions

Exception

delete()

$this setType($type)

Parameters

$type

Return Value

$this

update()

setAllAclToFalse()

$this setPermission($permissionName, null $value = null)

Parameters

$permissionName
null $value

Return Value

$this

array getPermissions()

Return Value

array

bool getPermission($permissionName)

Parameters

$permissionName

Return Value

bool

array generatePermissionList()

Generates the permission list required for frontend display

Return Value

array

$this setPermissions($permissions)

Parameters

$permissions

Return Value

$this

$this setWorkspacesAsset($workspacesAsset)

Parameters

$workspacesAsset

Return Value

$this

Asset[] getWorkspacesAsset()

Return Value

Asset[]

$this setWorkspacesDocument($workspacesDocument)

Parameters

$workspacesDocument

Return Value

$this

Document[] getWorkspacesDocument()

Return Value

Document[]

$this setWorkspacesObject($workspacesObject)

Parameters

$workspacesObject

Return Value

$this

DataObject[] getWorkspacesObject()

Return Value

DataObject[]

setClasses(array $classes)

Parameters

array $classes

array getClasses()

Return Value

array

setDocTypes(array $docTypes)

Parameters

array $docTypes

array getDocTypes()

Return Value

array

mixed getPerspectives()

Return Value

mixed

setPerspectives(mixed $perspectives)

Parameters

mixed $perspectives

array getWebsiteTranslationLanguagesView()

Return Value

array

setWebsiteTranslationLanguagesView(array $websiteTranslationLanguagesView)

Parameters

array $websiteTranslationLanguagesView

array getWebsiteTranslationLanguagesEdit()

Return Value

array

setWebsiteTranslationLanguagesEdit(array $websiteTranslationLanguagesEdit)

Parameters

array $websiteTranslationLanguagesEdit

protected array|string prepareArray($array)

checks if given parameter is string and if so splits it creates array returns empty array if empty parameter is given

Parameters

$array

Return Value

array|string