Airship\Cabin\Bridge\Landing\Ajax::getPermissionDataForURL PHP Method

getPermissionDataForURL() protected method

protected getPermissionDataForURL ( string $url, string $cabin )
$url string
$cabin string
    protected function getPermissionDataForURL(string $url, string $cabin)
    {
        $perm_bp = $this->blueprint('Permissions');
        if (IDE_HACKS) {
            $db = \Airship\get_database();
            $perm_bp = new Permissions($db);
        }
        $actions = $perm_bp->getActionNames($cabin);
        $contexts = $perm_bp->getContextsForURI($url, $cabin);
        $contextIds = $perm_bp->getContextIds($url, $cabin);
        $tree = $perm_bp->buildMultiContextGroupTree($cabin, $contextIds, $actions);
        $list = $perm_bp->buildMultiContextUserList($cabin, $contextIds, $actions);
        $this->lens('perms/test', ['cabin' => $cabin, 'actions' => $actions, 'contexts' => $contexts, 'permissions' => $tree, 'userlist' => $list]);
    }