Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Role.php
Go to the documentation of this file.
1<?php
3
12class Role extends AbstractAclPart {
13
14 public function __construct(?string $name = null, $parents = '') {
15 parent::__construct($name);
16 $this->setParents($parents);
17 }
18
23 protected $parents = '';
24
29 public function getParents() {
30 return $this->parents;
31 }
32
37 public function getParentsArray() {
38 return ($this->parents == null) ? [] : \explode(',', $this->parents);
39 }
40
45 public function setParents($parents) {
46 if (\is_array($parents)) {
47 $parents = \implode(',', $parents);
48 }
49 $this->parents = $parents;
50 }
51}
52
Ubiquity\security\acl\models$AbastractAclElement This class is part of Ubiquity.
$name
@id @column("name"=>"name","nullable"=>false,"dbType"=>"varchar(100)")
Ubiquity\security\acl\models$Role This class is part of Ubiquity.
Definition Role.php:12
__construct(?string $name=null, $parents='')
Definition Role.php:14