getUserPermissions() public method

Returns an array of all user permissions on this object.
public getUserPermissions ( integer $perm = null ) : array
$perm integer List only users with this permission level. Defaults to all users.
return array All user permissions for this object, indexed by user.
Ejemplo n.º 1
0
 /**
  * Returns an array of all user permissions on this object.
  *
  * @param integer $perm  List only users with this permission level.
  *                       Defaults to all users.
  *
  * @return array  All user permissions for this object, indexed by user.
  */
 public function getUserPermissions($perm = null)
 {
     $users = parent::getUserPermissions($perm);
     unset($users[$this->_storage->getOwner()]);
     return $users;
 }