public static function OpignoTincanQuestionTypeQuestion::getExtractPath in Opigno TinCan Question Type 7
This method gives the path to the extracted package.
Parameters
object $file: The extracted file.
Return value
string The path to the extracted package.
3 calls to OpignoTincanQuestionTypeQuestion::getExtractPath()
- OpignoTincanQuestionTypeQuestion::getInfoFromExtractedPackage in includes/
opigno_tincan_question_type.question.inc - This method will return the Activity ID and the launch file.
- OpignoTincanQuestionTypeQuestion::unzipPackage in includes/
opigno_tincan_question_type.question.inc - This method will unzip the package to the public extracted folder.
- opigno_tincan_question_type_file_delete in ./
opigno_tincan_question_type.module - Implements hook_file_delete().
File
- includes/
opigno_tincan_question_type.question.inc, line 396 - This file contains the class OpignoTincanQuestionTypeQuestion.
Class
- OpignoTincanQuestionTypeQuestion
- This class goal is to provide specific TinCan question information.
Code
public static function getExtractPath($file) {
$filename = self::getPackageName($file);
return self::PATH_PUBLIC_EXTRACTED_PACKAGE_FOLDER . $filename . '/';
}