ILIAS
eassessment Revision 61809
|
This class handles all operations of archive files for the course object. More...
Public Member Functions | |
ilFileDataCourse ($a_course_id) | |
Constructor call base constructors checks if directory is writable and sets the optional obj_id. | |
getArchiveFile ($a_rel_name) | |
getMemberExportFiles () | |
Get all member export files. | |
deleteMemberExportFile ($a_name) | |
getMemberExportFile ($a_name) | |
deleteArchive ($a_rel_name) | |
deleteZipFile ($a_abs_name) | |
deleteDirectory ($a_abs_name) | |
deletePdf ($a_abs_name) | |
copy ($a_from, $a_to) | |
rCopy ($a_from, $a_to) | |
addDirectory ($a_rel_name) | |
writeToFile ($a_data, $a_rel_name) | |
zipFile ($a_rel_name, $a_zip_name) | |
getCoursePath () | |
get exercise path public | |
createOnlineVersion ($a_rel_name) | |
getOnlineLink ($a_rel_name) | |
createImportFile ($a_tmp_name, $a_name) | |
unpackImportFile () | |
validateImportFile () | |
getImportFile () | |
__checkPath () | |
__checkImportPath () | |
__checkReadWrite () | |
check if directory is writable overwritten method from base class private | |
__initDirectory () | |
init directory overwritten method public | |
Public Member Functions inherited from ilFileData | |
ilFileData () | |
Constructor class bas constructor and read path of directory from ilias.ini setup an mail object public. | |
checkPath ($a_path) | |
check if path exists and is writable | |
getPath () | |
get Path public | |
Public Member Functions inherited from ilFile | |
ilFile () | |
Constructor get ilias object public. | |
deleteTrailingSlash ($a_path) | |
delete trailing slash of path variables |
Data Fields | |
$course_path |
Private Attributes | |
$course_id |
This class handles all operations of archive files for the course object.
Definition at line 34 of file class.ilFileDataCourse.php.
ilFileDataCourse::__checkImportPath | ( | ) |
Definition at line 304 of file class.ilFileDataCourse.php.
References getCoursePath(), and ilUtil\makeDir().
Referenced by ilFileDataCourse().
ilFileDataCourse::__checkPath | ( | ) |
Definition at line 287 of file class.ilFileDataCourse.php.
References __checkReadWrite(), getCoursePath(), and ilUtil\makeDir().
Referenced by ilFileDataCourse().
ilFileDataCourse::__checkReadWrite | ( | ) |
check if directory is writable overwritten method from base class private
Definition at line 323 of file class.ilFileDataCourse.php.
Referenced by __checkPath().
ilFileDataCourse::__initDirectory | ( | ) |
init directory overwritten method public
Definition at line 340 of file class.ilFileDataCourse.php.
References ilFileData\getPath(), and ilUtil\makeDir().
Referenced by ilFileDataCourse().
ilFileDataCourse::addDirectory | ( | $a_rel_name | ) |
Definition at line 193 of file class.ilFileDataCourse.php.
References getCoursePath(), and ilUtil\makeDir().
ilFileDataCourse::copy | ( | $a_from, | |
$a_to | |||
) |
Definition at line 174 of file class.ilFileDataCourse.php.
References getCoursePath().
ilFileDataCourse::createImportFile | ( | $a_tmp_name, | |
$a_name | |||
) |
Definition at line 245 of file class.ilFileDataCourse.php.
References getCoursePath(), ilUtil\makeDir(), and ilUtil\moveUploadedFile().
ilFileDataCourse::createOnlineVersion | ( | $a_rel_name | ) |
Definition at line 230 of file class.ilFileDataCourse.php.
References getCoursePath(), ilUtil\makeDir(), and rCopy().
ilFileDataCourse::deleteArchive | ( | $a_rel_name | ) |
Definition at line 134 of file class.ilFileDataCourse.php.
References deleteDirectory(), deletePdf(), and deleteZipFile().
ilFileDataCourse::deleteDirectory | ( | $a_abs_name | ) |
Definition at line 153 of file class.ilFileDataCourse.php.
References ilUtil\delDir().
Referenced by deleteArchive().
ilFileDataCourse::deleteMemberExportFile | ( | $a_name | ) |
Definition at line 115 of file class.ilFileDataCourse.php.
References $file_name.
ilFileDataCourse::deletePdf | ( | $a_abs_name | ) |
Definition at line 163 of file class.ilFileDataCourse.php.
Referenced by deleteArchive().
ilFileDataCourse::deleteZipFile | ( | $a_abs_name | ) |
Definition at line 143 of file class.ilFileDataCourse.php.
Referenced by deleteArchive().
ilFileDataCourse::getArchiveFile | ( | $a_rel_name | ) |
Definition at line 68 of file class.ilFileDataCourse.php.
ilFileDataCourse::getCoursePath | ( | ) |
get exercise path public
Definition at line 225 of file class.ilFileDataCourse.php.
References $course_path.
Referenced by __checkImportPath(), __checkPath(), addDirectory(), copy(), createImportFile(), createOnlineVersion(), getImportFile(), rCopy(), unpackImportFile(), validateImportFile(), writeToFile(), and zipFile().
ilFileDataCourse::getImportFile | ( | ) |
Definition at line 276 of file class.ilFileDataCourse.php.
References getCoursePath().
ilFileDataCourse::getMemberExportFile | ( | $a_name | ) |
Definition at line 124 of file class.ilFileDataCourse.php.
References $file_name.
ilFileDataCourse::getMemberExportFiles | ( | ) |
Get all member export files.
public
Definition at line 87 of file class.ilFileDataCourse.php.
ilFileDataCourse::getOnlineLink | ( | $a_rel_name | ) |
Definition at line 238 of file class.ilFileDataCourse.php.
References ilUtil\getWebspaceDir().
ilFileDataCourse::ilFileDataCourse | ( | $a_course_id | ) |
Constructor call base constructors checks if directory is writable and sets the optional obj_id.
integereger | obj_id public |
Definition at line 52 of file class.ilFileDataCourse.php.
References __checkImportPath(), __checkPath(), __initDirectory(), ilFileData\getPath(), and ilFileData\ilFileData().
ilFileDataCourse::rCopy | ( | $a_from, | |
$a_to | |||
) |
Definition at line 185 of file class.ilFileDataCourse.php.
References getCoursePath().
Referenced by createOnlineVersion().
ilFileDataCourse::unpackImportFile | ( | ) |
Definition at line 256 of file class.ilFileDataCourse.php.
References getCoursePath(), and ilUtil\unzip().
ilFileDataCourse::validateImportFile | ( | ) |
Definition at line 261 of file class.ilFileDataCourse.php.
References getCoursePath().
ilFileDataCourse::writeToFile | ( | $a_data, | |
$a_rel_name | |||
) |
Definition at line 200 of file class.ilFileDataCourse.php.
References getCoursePath().
ilFileDataCourse::zipFile | ( | $a_rel_name, | |
$a_zip_name | |||
) |
Definition at line 211 of file class.ilFileDataCourse.php.
References getCoursePath(), and ilUtil\zip().
|
private |
Definition at line 43 of file class.ilFileDataCourse.php.
ilFileDataCourse::$course_path |
Definition at line 41 of file class.ilFileDataCourse.php.
Referenced by getCoursePath().