public static function OpignoTincanQuestionTypeQuestion::getPackageName in Opigno TinCan Question Type 7
Gives the package name, after being renamed by the system if it happened.
Parameters
object $file: The package file.
Return value
string The package name.
2 calls to OpignoTincanQuestionTypeQuestion::getPackageName()
- OpignoTincanQuestionTypeQuestion::getAnsweringForm in includes/
opigno_tincan_question_type.question.inc - Get the form through which the user will answer the question.
- OpignoTincanQuestionTypeQuestion::getExtractPath in includes/
opigno_tincan_question_type.question.inc - This method gives the path to the extracted package.
File
- includes/
opigno_tincan_question_type.question.inc, line 410 - This file contains the class OpignoTincanQuestionTypeQuestion.
Class
- OpignoTincanQuestionTypeQuestion
- This class goal is to provide specific TinCan question information.
Code
public static function getPackageName($file) {
return pathinfo($file->uri, PATHINFO_FILENAME);
}