You are here

interface TincanServiceInterface in Opigno module 3.x

Same name and namespace in other branches
  1. 8 ActivityTypes/opigno_tincan_activity/src/TincanServiceInterface.php \Drupal\opigno_tincan_activity\TincanServiceInterface

Interface TincanServiceInterface.

Hierarchy

Expanded class hierarchy of TincanServiceInterface

All classes that implement TincanServiceInterface

File

ActivityTypes/opigno_tincan_activity/src/TincanServiceInterface.php, line 10

Namespace

Drupal\opigno_tincan_activity
View source
interface TincanServiceInterface {

  /**
   * Save tincan package.
   *
   * @param \Drupal\file\Entity\File $file
   *   File object.
   *
   * @return int
   *   Downloaded file $fid.
   */
  public function saveTincanPackageInfo(File $file);

  /**
   * Get the maximum possible score for this question.
   */
  public function getMaximumScore();

  /**
   * Implementation of deleteTincanPackage().
   */
  public function deleteTincanPackage();

  /**
   * Get Tincan data by it's file id.
   *
   * @param object \Drupal\file\Entity\File $file
   *   File entity.
   */
  public function tincanLoadByFileEntity(File $file);

}

Members

Namesort descending Modifiers Type Description Overrides
TincanServiceInterface::deleteTincanPackage public function Implementation of deleteTincanPackage(). 1
TincanServiceInterface::getMaximumScore public function Get the maximum possible score for this question. 1
TincanServiceInterface::saveTincanPackageInfo public function Save tincan package. 1
TincanServiceInterface::tincanLoadByFileEntity public function Get Tincan data by it's file id. 1