|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilObjFileImplementationLegacy. More...
Inheritance diagram for ilObjFileImplementationLegacy:
Collaboration diagram for ilObjFileImplementationLegacy:Public Member Functions | |
| __construct (int $obj_id, int $version, string $file_name) | |
| ilObjFileImplementationAbstract constructor. More... | |
| getDirectory ($a_version=0) | |
| @inheritDoc More... | |
| handleChangedObjectTitle (string $new_title) | |
| createDirectory () | |
| @inheritDoc More... | |
| clearDataDirectory () | |
| @inheritDoc More... | |
| deleteVersions ($a_hist_entry_ids=null) | |
| @inheritDoc More... | |
| getFileExtension () | |
| @inheritDoc More... | |
| export (string $target_dir) | |
| @depracated More... | |
| getVersions ($version_ids=null) | |
| @inheritDoc array ( 0 => array ( 'date' => '2020-11-05 09:49:18', 'user_id' => '6', 'obj_id' => '297', 'obj_type' => 'file', 'action' => 'create', 'info_params' => 'Version 1.docx,1,1', 'user_comment' => '', 'hist_entry_id' => '1', 'title' => NULL, 'filename' => 'Version 1.docx', 'version' => '1', 'max_version' => '1', 'rollback_version' => '', 'rollback_user_id' => '', ), ) More... | |
| getSpecificVersion ($version_id) | |
| @inheritDoc More... | |
| getFile ($a_hist_entry_id=null) | |
| @inheritDoc More... | |
| getVersion () | |
| getFileType () | |
| @inheritDoc More... | |
| getStorageID () | |
Public Member Functions inherited from ilObjFileImplementationAbstract | |
| createDirectory () | |
| @inheritDoc More... | |
| replaceFile ($a_upload_file, $a_filename) | |
| @inheritDoc More... | |
| addFileVersion ($a_upload_file, $a_filename) | |
| @inheritDoc More... | |
| clearDataDirectory () | |
| @inheritDoc More... | |
| setFileType ($a_type) | |
| @inheritDoc More... | |
| setFileSize ($a_size) | |
| @inheritDoc More... | |
| getFileSize () | |
| setVersion ($a_version) | |
| @inheritDoc More... | |
| getVersion () | |
| setMaxVersion ($a_max_version) | |
| @inheritDoc More... | |
| getMaxVersion () | |
| storeUnzipedFile ($a_upload_file, $a_filename) | |
| @inheritDoc More... | |
| getSpecificVersion ($version_id) | |
| @inheritDoc More... | |
Public Member Functions inherited from ilObjFileImplementationInterface | |
| getDirectory ($a_version=0) | |
| createDirectory () | |
| replaceFile ($a_upload_file, $a_filename) | |
| clearDataDirectory () | |
| deleteVersions ($a_hist_entry_ids=null) | |
| Deletes the specified history entries or all entries if no ids are specified. More... | |
| setFileType ($a_type) | |
| getFileType () | |
| getStorageID () | |
| setFileSize ($a_size) | |
| handleChangedObjectTitle (string $new_title) | |
| getFileSize () | |
| getFile ($a_hist_entry_id=null) | |
| setVersion ($a_version) | |
| getVersion () | |
| setMaxVersion ($a_max_version) | |
| getMaxVersion () | |
| sendFile ($a_hist_entry_id=null) | |
| getFileExtension () | |
| Returns the extension of the file name converted to lower-case. More... | |
| storeUnzipedFile ($a_upload_file, $a_filename) | |
| getVersions ($version_ids=null) | |
| Gets the file versions for this object. More... | |
| export (string $target_dir) | |
| @depracated More... | |
Static Public Member Functions | |
| static | parseInfoParams ($entry) |
| Parses the info parameters ("info_params") of the specified history entry. More... | |
Protected Member Functions | |
| compareVersions ($v1, $v2) | |
| Compares two file versions. More... | |
Protected Attributes | |
| $obj_id | |
| $version | |
| $file_name | |
Private Member Functions | |
| getFileName () | |
| isInline () | |
Private Attributes | |
| $file_storage | |
Class ilObjFileImplementationLegacy.
Definition at line 10 of file class.ilObjFileImplementationLegacy.php.
| ilObjFileImplementationLegacy::__construct | ( | int | $obj_id, |
| int | $version, | ||
| string | $file_name | ||
| ) |
ilObjFileImplementationAbstract constructor.
| int | $obj_id | |
| int | $version | |
| string | $file_name |
Definition at line 33 of file class.ilObjFileImplementationLegacy.php.
References $file_name, $obj_id, and $version.
| ilObjFileImplementationLegacy::clearDataDirectory | ( | ) |
@inheritDoc
Reimplemented from ilObjFileImplementationAbstract.
Definition at line 72 of file class.ilObjFileImplementationLegacy.php.
References createDirectory(), ilUtil\delDir(), and getDirectory().
Referenced by deleteVersions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Compares two file versions.
| array | $v1 | First file version to compare. |
| array | $v2 | Second file version to compare. |
Definition at line 195 of file class.ilObjFileImplementationLegacy.php.
| ilObjFileImplementationLegacy::createDirectory | ( | ) |
@inheritDoc
Reimplemented from ilObjFileImplementationAbstract.
Definition at line 64 of file class.ilObjFileImplementationLegacy.php.
References getDirectory(), and ilUtil\makeDirParents().
Referenced by clearDataDirectory().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFileImplementationLegacy::deleteVersions | ( | $a_hist_entry_ids = null | ) |
@inheritDoc
Implements ilObjFileImplementationInterface.
Definition at line 81 of file class.ilObjFileImplementationLegacy.php.
References $index, $version, ilHistory\_removeEntriesForObject(), ilHistory\_removeEntryByHistoryID(), clearDataDirectory(), ilUtil\delDir(), getDirectory(), ilObjFileImplementationAbstract\getMaxVersion(), getVersion(), and getVersions().
Here is the call graph for this function:| ilObjFileImplementationLegacy::export | ( | string | $target_dir | ) |
@depracated
Implements ilObjFileImplementationInterface.
Definition at line 201 of file class.ilObjFileImplementationLegacy.php.
References getDirectory(), getVersion(), IL_INST_ID, ilUtil\makeDir(), and ilUtil\rCopy().
Here is the call graph for this function:| ilObjFileImplementationLegacy::getDirectory | ( | $a_version = 0 | ) |
@inheritDoc
Implements ilObjFileImplementationInterface.
Definition at line 45 of file class.ilObjFileImplementationLegacy.php.
Referenced by clearDataDirectory(), createDirectory(), deleteVersions(), export(), getFile(), and getVersions().
Here is the caller graph for this function:| ilObjFileImplementationLegacy::getFile | ( | $a_hist_entry_id = null | ) |
@inheritDoc
Implements ilObjFileImplementationInterface.
Definition at line 361 of file class.ilObjFileImplementationLegacy.php.
References $data, ilHistory\_getEntryByHistoryID(), getDirectory(), getFileName(), getVersion(), and parseInfoParams().
Here is the call graph for this function:| ilObjFileImplementationLegacy::getFileExtension | ( | ) |
@inheritDoc
Implements ilObjFileImplementationInterface.
Definition at line 182 of file class.ilObjFileImplementationLegacy.php.
References ilObjFileAccess\_getFileExtension().
Here is the call graph for this function:
|
private |
Definition at line 385 of file class.ilObjFileImplementationLegacy.php.
References $file_name.
Referenced by getFile(), and isInline().
Here is the caller graph for this function:| ilObjFileImplementationLegacy::getFileType | ( | ) |
@inheritDoc
Implements ilObjFileImplementationInterface.
Definition at line 402 of file class.ilObjFileImplementationLegacy.php.
| ilObjFileImplementationLegacy::getSpecificVersion | ( | $version_id | ) |
@inheritDoc
Reimplemented from ilObjFileImplementationAbstract.
Definition at line 337 of file class.ilObjFileImplementationLegacy.php.
References $version, ilHistory\_getEntryByHistoryID(), and parseInfoParams().
Here is the call graph for this function:| ilObjFileImplementationLegacy::getStorageID | ( | ) |
Implements ilObjFileImplementationInterface.
Definition at line 407 of file class.ilObjFileImplementationLegacy.php.
| ilObjFileImplementationLegacy::getVersion | ( | ) |
Reimplemented from ilObjFileImplementationAbstract.
Definition at line 380 of file class.ilObjFileImplementationLegacy.php.
References $version.
Referenced by deleteVersions(), export(), and getFile().
Here is the caller graph for this function:| ilObjFileImplementationLegacy::getVersions | ( | $version_ids = null | ) |
@inheritDoc array ( 0 => array ( 'date' => '2020-11-05 09:49:18', 'user_id' => '6', 'obj_id' => '297', 'obj_type' => 'file', 'action' => 'create', 'info_params' => 'Version 1.docx,1,1', 'user_comment' => '', 'hist_entry_id' => '1', 'title' => NULL, 'filename' => 'Version 1.docx', 'version' => '1', 'max_version' => '1', 'rollback_version' => '', 'rollback_user_id' => '', ), )
Implements ilObjFileImplementationInterface.
Definition at line 237 of file class.ilObjFileImplementationLegacy.php.
References $index, $version, ilHistory\_getEntriesForObject(), getDirectory(), and parseInfoParams().
Referenced by deleteVersions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFileImplementationLegacy::handleChangedObjectTitle | ( | string | $new_title | ) |
Implements ilObjFileImplementationInterface.
Definition at line 56 of file class.ilObjFileImplementationLegacy.php.
|
private |
Definition at line 394 of file class.ilObjFileImplementationLegacy.php.
References ilObjFileAccess\_isFileInline(), and getFileName().
Here is the call graph for this function:
|
static |
Parses the info parameters ("info_params") of the specified history entry.
| array | $entry | The history entry. |
Definition at line 275 of file class.ilObjFileImplementationLegacy.php.
References $data, $n, and $result.
Referenced by getFile(), ilFileObjectToStorageDirectory\getHistoryData(), getSpecificVersion(), and getVersions().
Here is the caller graph for this function:
|
protected |
Definition at line 25 of file class.ilObjFileImplementationLegacy.php.
Referenced by __construct(), and getFileName().
|
private |
Definition at line 21 of file class.ilObjFileImplementationLegacy.php.
|
protected |
Definition at line 15 of file class.ilObjFileImplementationLegacy.php.
Referenced by __construct().
|
protected |
Definition at line 17 of file class.ilObjFileImplementationLegacy.php.
Referenced by __construct(), deleteVersions(), getSpecificVersion(), getVersion(), and getVersions().