inherit the class, not the name
This commit is contained in:
parent
50a6013569
commit
45bff3ff31
@ -10,9 +10,12 @@ class UserClass {
|
|||||||
global $_user_classes;
|
global $_user_classes;
|
||||||
|
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
$this->parent = $parent;
|
|
||||||
$this->abilities = $abilities;
|
$this->abilities = $abilities;
|
||||||
|
|
||||||
|
if(!is_null($parent)) {
|
||||||
|
$this->parent = $_user_classes[$parent];
|
||||||
|
}
|
||||||
|
|
||||||
$_user_classes[$name] = $this;
|
$_user_classes[$name] = $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user