protected function populatePermission($permission_inherit, $permission_allow, $permission_deny)
    {
        $permissions = [];
        
        // Add Deny permission
        $permissions = $this->retreivePermission($permissions, $permission_deny, -1);
        
        // Add Allow permission
        $permissions = $this->retreivePermission($permissions, $permission_allow, 1);
        
        // Add Allow permission
        $permissions = $this->retreivePermission($permissions, $permission_inherit, 0);
        
        return $permissions;
    }
protected function populatePermission($permission_inherit, $permission_allow, $permission_deny)
    {
        $permissions = [];
        
        // Add Deny permission
        $permissions = $this->retreivePermission($permissions, $permission_deny, -1);
        
        // Add Allow permission
        $permissions = $this->retreivePermission($permissions, $permission_allow, 1);
        
        // Add Allow permission
        $permissions = $this->retreivePermission($permissions, $permission_inherit, 0);
        
        return $permissions;
    }
protected function populatePermission ( $ permission_inherit , $ permission_allow , $ permission_deny ) { $ permissions = [ ] ; // Add Deny permission $ permissions = $ this -> retreivePermission ( $ permissions , $ permission_deny , - 1 ) ; // Add Allow permission $ permissions = $ this -> retreivePermission ( $ permissions , $ permission_allow , 1 ) ; // Add Allow permission $ permissions = $ this -> retreivePermission ( $ permissions , $ permission_inherit , 0 ) ; return $ permissions ; }
Returns an array of permissions based on given inherit, allow and deny list
@param array Inherit Permission
@param array Allow Permission
@param array Deny Permission
@return array Permission list
Returns an array of permissions based on given inherit allow and deny list