Skip to content

Commit

Permalink
Update SRF_SlideShow.php
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Feb 20, 2025
1 parent 54851df commit 06a57a2
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions formats/slideshow/SRF_SlideShow.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php

use SMW\DataValues\PropertyValue;
use SMW\Query\QueryResult;
use SMW\Query\ResultPrinters\ResultPrinter;

/**
* File holding the SRF_SlideShow class
*
Expand All @@ -12,7 +17,7 @@
*
* @ingroup SemanticResultFormats
*/
class SRFSlideShow extends SMWResultPrinter {
class SRFSlideShow extends ResultPrinter {

/**
* Get a human readable label for this printer.
Expand All @@ -27,7 +32,7 @@ public function getName() {
* Return serialised results in specified format.
* Implemented by subclasses.
*/
protected function getResultText( SMWQueryResult $res, $outputmode ) {
protected function getResultText( QueryResult $res, $outputmode ) {
$html = '';
$id = uniqid();

Expand All @@ -44,7 +49,7 @@ protected function getResultText( SMWQueryResult $res, $outputmode ) {
$printrequests = [];
foreach ( $res->getPrintRequests() as $key => $printrequest ) {
$data = $printrequest->getData();
if ( $data instanceof SMWPropertyValue ) {
if ( $data instanceof PropertyValue ) {
$name = $data->getDataItem()->getKey();
} else {
$name = null;
Expand Down Expand Up @@ -107,16 +112,16 @@ protected function getResultText( SMWQueryResult $res, $outputmode ) {
* Check whether a "further results" link would normally be generated for this
* result set with the given parameters.
*
* @param SMWQueryResult $results
* @param QueryResult $results
*
* @return bool
*/
protected function linkFurtherResults( SMWQueryResult $results ) {
protected function linkFurtherResults( QueryResult $results ) {
return false;
}

/**
* @see SMWResultPrinter::getParamDefinitions
* @see ResultPrinter::getParamDefinitions
*
* @since 1.8
*
Expand Down

0 comments on commit 06a57a2

Please sign in to comment.