concrete/src/Permission/Key/Key.php
public static function getList($pkCategoryHandle, $filters = [])
    {
        $app = Application::getFacadeApplication();
        $db = $app->make(Connection::class);
        $q = 'select pkID from PermissionKeys inner join PermissionKeyCategories on PermissionKeys.pkCategoryID = PermissionKeyCategories.pkCategoryID where pkCategoryHandle = ?';
        foreach ($filters as $key => $value) {
            $q .= ' and ' . $key . ' = ' . $value . ' ';
        }
        $r = $db->executeQuery($q, [$pkCategoryHandle]);
        $list = [];
        while (($pkID = $r->fetchColumn()) !== false) {
            $pk = self::load($pkID);
            if ($pk) {
                $list[] = $pk;
            }
        }

        return $list;
    }
public static function getList($pkCategoryHandle, $filters = [])
    {
        $app = Application::getFacadeApplication();
        $db = $app->make(Connection::class);
        $q = 'select pkID from PermissionKeys inner join PermissionKeyCategories on PermissionKeys.pkCategoryID = PermissionKeyCategories.pkCategoryID where pkCategoryHandle = ?';
        foreach ($filters as $key => $value) {
            $q .= ' and ' . $key . ' = ' . $value . ' ';
        }
        $r = $db->executeQuery($q, [$pkCategoryHandle]);
        $list = [];
        while (($pkID = $r->fetchColumn()) !== false) {
            $pk = self::load($pkID);
            if ($pk) {
                $list[] = $pk;
            }
        }

        return $list;
    }
public static function getList ( $ pkCategoryHandle , $ filters = [ ] ) { $ app = Application :: getFacadeApplication ( ) ; $ db = $ app -> make ( Connection :: class ) ; $ q = 'select pkID from PermissionKeys inner join PermissionKeyCategories on PermissionKeys.pkCategoryID = PermissionKeyCategories.pkCategoryID where pkCategoryHandle = ?' ; foreach ( $ filters as $ key => $ value ) { $ q .= ' and ' . $ key . ' = ' . $ value . ' ' ; } $ r = $ db -> executeQuery ( $ q , [ $ pkCategoryHandle ] ) ; $ list = [ ] ; while ( ( $ pkID = $ r -> fetchColumn ( ) ) !== false ) { $ pk = self :: load ( $ pkID ) ; if ( $ pk ) { $ list [ ] = $ pk ; } } return $ list ; }
Returns the list of all permissions of this category.

@param string $pkCategoryHandle
@param array $filters An array containing of field name => value (to be used directly in the SQL query)

@return \Concrete\Core\Permission\Key\Key[]
Returns the list of all permissions of this category .