Guest User

Untitled

a guest
Nov 17th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <?php
  2. $child = $this->getRbac()->getChild($identityRole);
  3. $children = $child->getChildren();
  4.  
  5. echo 'child',PHP_EOL;
  6. var_dump($child);
  7. echo 'children',PHP_EOL;
  8. var_dump($children);exit;
  9.  
  10. //child
  11. //
  12. //object(SpiffySecurity\Rbac\Role)[269]
  13. // protected 'name' => string 'administrator' (length=13)
  14. // protected 'permissions' =>
  15. // array
  16. // empty
  17. // protected 'index' => int 1
  18. // protected 'children' =>
  19. // array
  20. // 0 =>
  21. // object(SpiffySecurity\Rbac\Role)[270]
  22. // protected 'name' => string 'moderator' (length=9)
  23. // protected 'permissions' =>
  24. // array
  25. // ...
  26. // protected 'index' => int 1
  27. // protected 'children' =>
  28. // array
  29. // ...
  30. //children
  31. //
  32. //array
  33. // empty
Add Comment
Please, Sign In to add comment