Skip to content

Ilias11 version update #5

Merged
Saaweel merged 21 commits into
surlabs:ilias11_devfrom
albertoagreda:ilias11_dev
May 20, 2026
Merged

Ilias11 version update #5
Saaweel merged 21 commits into
surlabs:ilias11_devfrom
albertoagreda:ilias11_dev

Conversation

@albertoagreda
Copy link
Copy Markdown

Pull Request: Migration and Compatibility with ILIAS 11

Description

This Pull Request adapts the Panopto plugin for ILIAS 11 and PHP 8.x. The focus was on refactoring UI components, ensuring robust class loading, and migrating frontend logic to the new native APIs.


Changes Performed

1. Configuration and Metadata

  • Version Bump: Updated the plugin version to 11.0.5.
  • Compatibility Range: Defined support for ILIAS versions 11.0 to 11.999 within plugin.php.

2. Backend & Robustness (PHP)

  • Class Loading: Implemented a physical file check (file_exists) for PanoptoSortingTableGUI.php. This ensures compatibility with both the legacy naming convention (class.Name.php) and the modern standard.
  • Namespaces: Utilized absolute namespaces for component instantiation to prevent resolution failures within the ILIAS autoloader.
  • Strict Typing: Added strict typing to key class properties such as $lng, $ui_renderer, and $refinery.

3. User Interface (UI Framework)

  • Ordering Tables: Implemented the ILIAS\UI\Component\Table\OrderingRetrieval interface, replacing generic methods and adapting the ordering() method signature to comply with the ILIAS 11 contract.
  • Modals: Refactored getModalPlayer() to utilize the roundtrip and Legacy components from the UI Factory.
  • Internationalization (i18n): The modal title now utilizes the language service ($lng) via the rep_robj_xpnt_player_modal_title identifier.

4. Frontend & Styles (JS/CSS)

  • New Modal API: Migrated the video launch logic to il.UI.modal.showModal, correctly passing the required arguments for the ILIAS 11 native API.
  • Responsiveness:
    • Added aspect-ratio: 16/9 and width: 100% to the player iframe.
    • Adjusted global CSS to allow modals to occupy up to 70vw (viewport width) for an improved viewing experience.
  • LTI Automation: Added a script to automate the submission of the #lti_form upon loading the video container.

Verification Tests

  • Successful installation and activation in an ILIAS 11 environment.
  • Verified "Drag & Drop" functionality in the sorting table.
  • Confirmed video loads automatically in the modal upon object interaction.
  • Validated responsive display across various screen widths.

Notes for Reviewer

Special attention was given to the class loading logic to prevent fatal errors during the transition between naming conventions. The frontend migration follows the latest ILIAS 11 UI guidelines for modal management.

@albertoagreda albertoagreda requested a review from Saaweel May 14, 2026 08:47
@Saaweel Saaweel merged commit e12c4c9 into surlabs:ilias11_dev May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants