| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Inheritance diagram for ilCourseFile:
 Collaboration diagram for ilCourseFile:Public Member Functions | |
| __construct (int $a_file_id=0) | |
| setFileId (int $a_id) | |
| getFileId () | |
| getCourseId () | |
| setCourseId (int $a_course_id) | |
| setFileName (string $a_name) | |
| getFileName () | |
| setFileType (string $a_type) | |
| getFileType () | |
| setFileSize (int $a_size) | |
| getFileSize () | |
| setTemporaryName (string $a_name) | |
| getTemporaryName () | |
| setErrorCode (int $a_code) | |
| getErrorCode () | |
| getAbsolutePath () | |
| getInfoDirectory () | |
| validate () | |
| create (bool $a_upload=true) | |
| delete () | |
| __read () | |
Static Public Member Functions | |
| static | _cloneFiles (int $a_source_id, int $a_target_id) | 
| static | _deleteByCourse (int $a_course_id) | 
| static | _readFilesByCourse (int $a_course_id) | 
Protected Attributes | |
| ilDBInterface | $db | 
| ilLanguage | $lng | 
| ilErrorHandling | $error | 
| ilFSStorageCourse | $fss_storage = null | 
Private Attributes | |
| int | $course_id = 0 | 
| int | $file_id = 0 | 
| string | $file_name = '' | 
| string | $file_type = '' | 
| int | $file_size = 0 | 
| string | $tmp_name = '' | 
| int | $error_code = 0 | 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 25 of file class.ilCourseFile.php.
| ilCourseFile::__construct | ( | int | $a_file_id = 0 | ) | 
Definition at line 40 of file class.ilCourseFile.php.
References $DIC, __read(), and ILIAS\Repository\lng().
 Here is the call graph for this function:| ilCourseFile::__read | ( | ) | 
Definition at line 270 of file class.ilCourseFile.php.
References $res, getCourseId(), setCourseId(), setFileName(), setFileSize(), and setFileType().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 51 of file class.ilCourseFile.php.
References _readFilesByCourse().
Referenced by ilObjCourse\cloneObject().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 238 of file class.ilCourseFile.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjCourse\delete().
 Here is the caller graph for this function:
      
  | 
  static | 
| int | $a_course_id | obj_id of course | 
Definition at line 254 of file class.ilCourseFile.php.
References $DIC, $ilDB, and $res.
Referenced by _cloneFiles(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilObjCourseGUI\editInfoObject(), ilAppointmentCourseFileHandler\getFiles(), and ilObjCourseGUI\infoScreen().
 Here is the caller graph for this function:| ilCourseFile::create | ( | bool | $a_upload = true | ) | 
Definition at line 194 of file class.ilCourseFile.php.
References $res, getCourseId(), getErrorCode(), getFileId(), getFileName(), getFileSize(), getFileType(), getTemporaryName(), ilFileUtils\moveUploadedFile(), and setFileId().
 Here is the call graph for this function:| ilCourseFile::delete | ( | ) | 
Definition at line 225 of file class.ilCourseFile.php.
References $res, getAbsolutePath(), and getFileId().
 Here is the call graph for this function:| ilCourseFile::getAbsolutePath | ( | ) | 
Definition at line 142 of file class.ilCourseFile.php.
References getFileId().
Referenced by delete().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilCourseFile::getCourseId | ( | ) | 
Definition at line 82 of file class.ilCourseFile.php.
References $course_id.
Referenced by __read(), and create().
 Here is the caller graph for this function:| ilCourseFile::getErrorCode | ( | ) | 
Definition at line 137 of file class.ilCourseFile.php.
References $error_code.
Referenced by create(), and validate().
 Here is the caller graph for this function:| ilCourseFile::getFileId | ( | ) | 
Definition at line 77 of file class.ilCourseFile.php.
References $file_id.
Referenced by create(), delete(), and getAbsolutePath().
 Here is the caller graph for this function:| ilCourseFile::getFileName | ( | ) | 
Definition at line 97 of file class.ilCourseFile.php.
References $file_name.
Referenced by create().
 Here is the caller graph for this function:| ilCourseFile::getFileSize | ( | ) | 
Definition at line 117 of file class.ilCourseFile.php.
References $file_size.
Referenced by create().
 Here is the caller graph for this function:| ilCourseFile::getFileType | ( | ) | 
Definition at line 107 of file class.ilCourseFile.php.
References $file_type.
Referenced by create().
 Here is the caller graph for this function:| ilCourseFile::getInfoDirectory | ( | ) | 
Definition at line 159 of file class.ilCourseFile.php.
| ilCourseFile::getTemporaryName | ( | ) | 
Definition at line 127 of file class.ilCourseFile.php.
References $tmp_name.
Referenced by create().
 Here is the caller graph for this function:| ilCourseFile::setCourseId | ( | int | $a_course_id | ) | 
Definition at line 87 of file class.ilCourseFile.php.
Referenced by __read().
 Here is the caller graph for this function:| ilCourseFile::setErrorCode | ( | int | $a_code | ) | 
Definition at line 132 of file class.ilCourseFile.php.
| ilCourseFile::setFileId | ( | int | $a_id | ) | 
Definition at line 72 of file class.ilCourseFile.php.
Referenced by create().
 Here is the caller graph for this function:| ilCourseFile::setFileName | ( | string | $a_name | ) | 
Definition at line 92 of file class.ilCourseFile.php.
Referenced by __read().
 Here is the caller graph for this function:| ilCourseFile::setFileSize | ( | int | $a_size | ) | 
Definition at line 112 of file class.ilCourseFile.php.
Referenced by __read().
 Here is the caller graph for this function:| ilCourseFile::setFileType | ( | string | $a_type | ) | 
Definition at line 102 of file class.ilCourseFile.php.
Referenced by __read().
 Here is the caller graph for this function:| ilCourseFile::setTemporaryName | ( | string | $a_name | ) | 
Definition at line 122 of file class.ilCourseFile.php.
| ilCourseFile::validate | ( | ) | 
Definition at line 167 of file class.ilCourseFile.php.
References getErrorCode(), and ILIAS\Repository\lng().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 27 of file class.ilCourseFile.php.
Referenced by getCourseId().
      
  | 
  protected | 
Definition at line 35 of file class.ilCourseFile.php.
      
  | 
  protected | 
Definition at line 37 of file class.ilCourseFile.php.
      
  | 
  private | 
Definition at line 33 of file class.ilCourseFile.php.
Referenced by getErrorCode().
      
  | 
  private | 
Definition at line 28 of file class.ilCourseFile.php.
Referenced by getFileId().
      
  | 
  private | 
Definition at line 29 of file class.ilCourseFile.php.
Referenced by getFileName().
      
  | 
  private | 
Definition at line 31 of file class.ilCourseFile.php.
Referenced by getFileSize().
      
  | 
  private | 
Definition at line 30 of file class.ilCourseFile.php.
Referenced by getFileType().
      
  | 
  protected | 
Definition at line 38 of file class.ilCourseFile.php.
      
  | 
  protected | 
Definition at line 36 of file class.ilCourseFile.php.
      
  | 
  private | 
Definition at line 32 of file class.ilCourseFile.php.
Referenced by getTemporaryName().