class UserRole extends AbstractUser (View source)

Properties

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

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

setAllAclToFalse()

No description

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

No description

array
getPermissions()

No description

bool
getPermission($permissionName)

No description

array
generatePermissionList()

Generates the permission list required for frontend display

$this
setPermissions($permissions)

No description

$this
setWorkspacesAsset($workspacesAsset)

No description

Asset[]
getWorkspacesAsset()

No description

$this
setWorkspacesDocument($workspacesDocument)

No description

getWorkspacesDocument()

No description

$this
setWorkspacesObject($workspacesObject)

No description

getWorkspacesObject()

No description

setClasses(array $classes)

No description

array
getClasses()

No description

setDocTypes(array $docTypes)

No description

array
getDocTypes()

No description

mixed
getPerspectives()

No description

setPerspectives(mixed $perspectives)

No description

array
setWebsiteTranslationLanguagesView(array $websiteTranslationLanguagesView)

No description

array
setWebsiteTranslationLanguagesEdit(array $websiteTranslationLanguagesEdit)

No description

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

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