ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (int $a_id=0) | |
delete () | |
delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More... | |
addMediaItem (ilMediaItem $a_item) | |
& | getMediaItems () |
getMediaItem (string $a_purpose) | |
get item for media purpose More... | |
removeMediaItem (string $a_purpose) | |
removeAllMediaItems () | |
hasFullscreenItem () | |
hasPurposeItem (string $purpose) | |
returns whether object has media item with specific purpose More... | |
read () | |
setAlias (bool $a_is_alias) | |
isAlias () | |
setOriginID (string $a_id) | |
getOriginID () | |
create (bool $a_create_meta_data=false, bool $a_save_media_items=true, int $from_mob_id=0) | |
update (bool $a_upload=false) | |
createDirectory () | |
Create file directory of media object. More... | |
getFilesOfDirectory (string $dir_path="") | |
getXML (int $a_mode=IL_MODE_FULL, int $a_inst=0, bool $a_sign_locals=false, bool $offline=false) | |
get MediaObject XLM Tag More... | |
handleAmps (string $a_str) | |
Replace "&" (if not an "&") with "&". More... | |
exportXML (ilXmlWriter $a_xml_writer, int $a_inst=0) | |
exportFiles (string $a_target_dir) | |
export all media files of object to target directory note: target directory must be the export target directory, "/objects/il_<inst>_mob_<mob_id>/..." will be appended to this directory More... | |
modifyExportIdentifier (string $a_tag, string $a_param, string $a_value) | |
setContainsIntLink (bool $a_contains_link) | |
content parser set this flag to true, if the media object contains internal links (this method should only be called by the import parser) More... | |
containsIntLink () | |
returns true, if mob was marked as containing an intern link (via setContainsIntLink) (this method should only be called by the import parser) More... | |
getUsages (bool $a_include_history=true) | |
get all usages of current media object More... | |
getDataDirectory () | |
addMediaItemFromLegacyUpload (string $purpose, string $tmp_name, string $name, int $resize_width=0, int $resize_height=0, bool $constrain_proportions=true, bool $deduce_size=false) | |
addMediaItemFromUpload (string $purpose, UploadResult $result, string $upload_hash="",) | |
addMediaItemFromLocalFile (string $purpose, string $tmp_name, string $name) | |
replaceMediaItemFromUpload (string $purpose, UploadResult $result, string $upload_hash="",) | |
uploadAdditionalFile (string $a_name, string $tmp_name, string $a_subdir="", string $a_mode="move_uploaded") | |
Create new media object and update page in db and return new media object. More... | |
addAdditionalFileFromUpload (UploadResult $result, string $subdir) | |
uploadSrtFile (string $a_tmp_name, string $a_language, string $a_mode="move_uploaded") | |
getSrtFiles (bool $vtt_only=false) | |
makeThumbnail (string $source, string $thumbname,) | |
Make thumbnail. More... | |
removeAdditionalFile (string $a_file) | |
getLinkedMediaObjects (array $a_ignore=[]) | |
Get all media objects linked in map areas of this media object. More... | |
duplicate () | |
Duplicate media object, return new media object. More... | |
uploadVideoPreviewPic (array $a_prevpic) | |
getVideoPreviewPic (bool $a_filename_only=false) | |
getMultiSrtUploadDir () | |
Get directory for multi srt upload. More... | |
uploadMultipleSubtitleFile (array $a_file) | |
Upload multi srt file. More... | |
clearMultiSrtDirectory () | |
Clear multi srt directory. More... | |
getMultiSrtFiles () | |
Get all srt files of srt multi upload. More... | |
getExternalMetadata () | |
getStandardSrc () | |
getFullscreenSrc () | |
![]() | |
getObjectProperties () | |
flushObjectProperties () | |
withReferences () | |
determines whether objects are referenced or not (got ref ids or not) More... | |
processAutoRating () | |
read () | |
getId () | |
setId (int $id) | |
setRefId (int $ref_id) | |
getRefId () | |
getType () | |
setType (string $type) | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
getUntranslatedTitle () | |
Get untranslated object title WebDAV needs to access the untranslated title of an object. More... | |
setTitle (string $title) | |
getDescription () | |
setDescription (string $description) | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
setImportId (string $import_id) | |
setOfflineStatus (bool $status) | |
getOfflineStatus () | |
supportsOfflineHandling () | |
getOwner () | |
getOwnerName () | |
get full name of object owner More... | |
setOwner (int $usr_id) | |
getCreateDate () | |
Get create date in YYYY-MM-DD HH-MM-SS format. More... | |
getLastUpdateDate () | |
Get last update date in YYYY-MM-DD HH-MM-SS format. More... | |
create () | |
note: title, description and type should be set when this function is called More... | |
update () | |
MDUpdateListener (string $element) | |
Metadata update listener. More... | |
createMetaData () | |
updateMetaData () | |
deleteMetaData () | |
updateOwner () | |
update owner of object in db More... | |
putInTree (int $parent_ref_id) | |
maybe this method should be in tree object!? More... | |
setPermissions (int $parent_ref_id) | |
setParentRolePermissions (int $parent_ref_id) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
delete () | |
delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More... | |
initDefaultRoles () | |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More... | |
applyDidacticTemplate (int $tpl_id) | |
getXMLZip () | |
getHTMLDirectory () | |
appendCopyInfo (int $target_id, int $copy_id, int $new_obj_id) | |
Prepend Copy info if object with same name exists in that container. More... | |
cloneDependencies (int $target_id, int $copy_id) | |
Clone object dependencies. More... | |
cloneMetaData (ilObject $target_obj) | |
Copy meta data. More... | |
selfOrParentWithRatingEnabled () | |
getPossibleSubObjects (bool $filter=true) | |
get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More... | |
Static Public Member Functions | |
static | _exists (int $id, bool $reference=false, ?string $type=null) |
checks if an object exists in object_data More... | |
static | _getDirectory (int $a_mob_id) |
Get absolute directory. More... | |
static | _getRelativeDirectory (int $a_mob_id) |
Get relative (to webspace dir) directory. More... | |
static | _getURL (int $a_mob_id) |
get directory for files of media object More... | |
static | _lookupItemPath (int $a_mob_id, bool $a_url_encode=false, bool $a_web=true, string $a_purpose="") |
Get path for item with specific purpose. More... | |
static | _deleteAllUsages (string $a_type, int $a_id, ?int $a_usage_hist_nr=0, string $a_lang="-") |
static | _getMobsOfObject (string $a_type, int $a_id, int $a_usage_hist_nr=0, string $a_lang="-") |
static | _saveUsage (int $a_mob_id, string $a_type, int $a_id, int $a_usage_hist_nr=0, string $a_lang="-") |
Save usage of mob within another container (e.g. More... | |
static | _removeUsage (int $a_mob_id, string $a_type, int $a_id, int $a_usage_hist_nr=0, string $a_lang="-") |
Remove usage of mob in another container. More... | |
static | lookupUsages (int $a_id, bool $a_include_history=true) |
Lookup usages of media object. More... | |
static | getParentObjectIdForUsage (array $a_usage, bool $a_include_all_access_obj_ids=false) |
Get's the repository object ID of a parent object, if possible see ilWebAccessChecker. More... | |
static | _resizeImage (string $a_file, int $a_width, int $a_height, bool $a_constrain_prop=false) |
Resize image and return new image file ("_width_height" string appended) More... | |
static | getMimeType (string $a_file, bool $a_external=false) |
get mime type for file More... | |
static | _determineWidthHeight (string $a_format, string $a_type, string $a_file, string $a_reference, bool $a_constrain_proportions, bool $a_use_original, ?int $a_user_width=null, ?int $a_user_height=null) |
static | _saveTempFileAsMediaObject (string $name, string $tmp_name, bool $upload=true) |
static | isTypeAllowed (string $a_type) |
static | fixFilename (string $a_name) |
Fix filename of uploaded file. More... | |
static | renameExecutables (string $a_dir) |
![]() | |
static | _lookupObjIdByImportId (string $import_id) |
Get (latest) object id for an import id. More... | |
static | _lookupImportId (int $obj_id) |
static | _lookupOwnerName (int $owner_id) |
Lookup owner name for owner id. More... | |
static | _getIdForImportId (string $import_id) |
static | _getAllReferences (int $id) |
get all reference ids for object ID More... | |
static | _lookupTitle (int $obj_id) |
static | lookupOfflineStatus (int $obj_id) |
Lookup offline status using objectDataCache. More... | |
static | _lookupOwner (int $obj_id) |
Lookup owner user ID for object ID. More... | |
static | _getIdsForTitle (string $title, string $type='', bool $partial_match=false) |
static | _lookupDescription (int $obj_id) |
static | _lookupLastUpdate (int $obj_id, bool $formatted=false) |
static | _getLastUpdateOfObjects (array $obj_ids) |
static | _lookupObjId (int $ref_id) |
static | _setDeletedDate (int $ref_id, int $deleted_by) |
static | setDeletedDates (array $ref_ids, int $user_id) |
static | _resetDeletedDate (int $ref_id) |
static | _lookupDeletedDate (int $ref_id) |
static | _writeTitle (int $obj_id, string $title) |
write title to db (static) More... | |
static | _writeDescription (int $obj_id, string $desc) |
write description to db (static) More... | |
static | _writeImportId (int $obj_id, string $import_id) |
write import id to db (static) More... | |
static | _lookupType (int $id, bool $reference=false) |
static | _isInTrash (int $ref_id) |
static | _hasUntrashedReference (int $obj_id) |
checks whether an object has at least one reference that is not in trash More... | |
static | _lookupObjectId (int $ref_id) |
static | _getObjectsDataForType (string $type, bool $omit_trash=false) |
get all objects of a certain type More... | |
static | _exists (int $id, bool $reference=false, ?string $type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType (string $obj_type="", ?int $owner=null) |
static | _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true) |
Prepare copy wizard object selection. More... | |
static | getIconForType (string $type) |
static | _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false) |
Get icon for repository item. More... | |
static | collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies (int $obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $obj_ids) |
static | getAllOwnedRepositoryObjects (int $user_id) |
static | fixMissingTitles ($type, array &$obj_title_map) |
Try to fix missing object titles. More... | |
static | _lookupCreationDate (int $obj_id) |
static | _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null) |
Data Fields | |
const | DEFAULT_PREVIEW_SIZE = 80 |
bool | $is_alias |
string | $origin_id |
array | $media_items |
bool | $contains_int_link |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
Protected Member Functions | |
beforeMDUpdateListener (string $a_element) | |
beforeCreateMetaData () | |
beforeUpdateMetaData () | |
beforeDeleteMetaData () | |
escapeProperty (string $a_value) | |
Escape property (e.g. More... | |
getLocationSrc (string $purpose) | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
Static Protected Member Functions | |
static | handleQuotaUpdate (ilObjMediaObject $a_mob) |
Protected Attributes | |
ThumbsManager | $thumbs |
MediaObjectManager | $manager |
InternalDomainService | $domain |
ilObjUser | $user |
![]() | |
ilLogger | $obj_log |
ILIAS | $ilias |
ilObjectDefinition | $obj_definition |
ilDBInterface | $db |
ilLogger | $log |
ilErrorHandling | $error |
ilTree | $tree |
ilAppEventHandler | $app_event_handler |
ilRbacAdmin | $rbac_admin |
ilRbacReview | $rbac_review |
ilObjUser | $user |
ilLanguage | $lng |
LOMServices | $lom_services |
bool | $call_by_reference |
int | $max_title = self::TITLE_LENGTH |
int | $max_desc = self::DESC_LENGTH |
bool | $add_dots = true |
int | $ref_id = null |
string | $type = "" |
string | $title = "" |
string | $desc = "" |
string | $long_desc = "" |
int | $owner = 0 |
string | $create_date = "" |
string | $last_update = "" |
string | $import_id = "" |
bool | $register = false |
Private Attributes | |
LegacyImages | $image_converter |
Definition at line 36 of file class.ilObjMediaObject.php.
ilObjMediaObject::__construct | ( | int | $a_id = 0 | ) |
Definition at line 49 of file class.ilObjMediaObject.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
|
static |
Definition at line 770 of file class.ilObjMediaObject.php.
References $ilDB.
Referenced by ilPageObject\delete().
|
static |
Definition at line 1240 of file class.ilObjMediaObject.php.
References ilMediaImageUtil\getImageSize().
Referenced by ilObjMediaObjectGUI\savePropertiesObject().
|
static |
checks if an object exists in object_data
integer | $id | object id or reference id |
bool | $reference | true if id is a reference, else false (default) |
string | null | $type | string restrict on a certain type. |
Reimplemented from ilObject.
Definition at line 68 of file class.ilObjMediaObject.php.
References $id, and ilInternalLink\_extractObjIdOfTarget().
Referenced by ilRTE\_cleanupMediaObjectUsage(), ilInternalLink\_exists(), ilRTE\_getMediaObjects(), assQuestionExport\addQTIMaterial(), ilObjTest\addQTIMaterial(), ilObjForumGUI\createThread(), assQuestion\delete(), ilForumDraftsHistory\deleteMobs(), ilForumPostDraft\deleteMobsOfDraft(), ilObjForumGUI\deleteMobsOfDraft(), ilForum\deletePost(), ilObjTest\deleteTest(), ILIAS\Test\ExportImport\Export\exportXHTMLMediaObjects(), ilQuestionpoolExport\exportXHTMLMediaObjects(), ilObjTest\exportXMLMediaObjects(), ilObjQuestionPool\exportXMLMediaObjects(), ilObjForumGUI\savePostObject(), ilForumXMLWriter\start(), and ilObjForumGUI\viewThreadObject().
|
static |
Get absolute directory.
Definition at line 375 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastAccess\_lookupDiskUsage(), createDirectory(), ilObjMediaCastGUI\determinePlaytimeObject(), ilMediaItem\getDirectory(), ilBlogPostingGUI\getFirstMediaObjectAsTag(), ilObjMediaObjectGUI\getFullscreenSizeObject(), ilDclMobRecordRepresentation\getHTML(), getMultiSrtUploadDir(), ilObjMediaObjectGUI\getStandardSizeObject(), ilPCMediaObject\modifyPageContentPostXsl(), ilDclMobRecordFieldModel\parseValue(), ilObjMediaObjectGUI\resizeImagesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilMediaCreationGUI\saveUrl(), and ilPCInteractiveImageGUI\update().
|
static |
Definition at line 810 of file class.ilObjMediaObject.php.
References $ilDB.
Referenced by ilRTE\_cleanupMediaObjectUsage(), assQuestionExport\addQTIMaterial(), ilObjTest\addQTIMaterial(), ilPCMediaObject\afterPageUpdate(), assQuestion\cloneXHTMLMediaObjectsOfQuestion(), ilObjForumGUI\createThread(), ilPageObject\delete(), SurveyQuestion\delete(), assQuestion\delete(), ilForumDraftsHistory\deleteMobs(), ilForumPostDraft\deleteMobsOfDraft(), ilObjForumGUI\deleteMobsOfDraft(), ilForum\deletePost(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ILIAS\Test\ExportImport\Export\exportXHTMLMediaObjects(), ilQuestionpoolExport\exportXHTMLMediaObjects(), ilPageObject\getLastUpdateOfIncludedElements(), ilLMMultiSrt\getMobIds(), ilMepMultiSrt\getMobIds(), ilSoapUtils\getMobsOfObject(), ilCOPageExporter\getXmlExportHeadDependencies(), ilTestExporter\getXmlExportHeadDependencies(), ilPCMediaObject\modifyPageContentPostXsl(), ilObjForumGUI\publishDraftObject(), ILIAS\COPage\PC\MediaObject\MediaObjectManager\resolveMediaAliases(), ilObjForumGUI\savePostObject(), ilForumXMLWriter\start(), assClozeTest\toJSON(), assErrorText\toJSON(), assKprimChoice\toJSON(), assLongMenu\toJSON(), assMatchingQuestion\toJSON(), assMultipleChoice\toJSON(), assOrderingHorizontal\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assTextSubset\toJSON(), ilObjForumGUI\updateDraftObject(), and ilObjForumGUI\viewThreadObject().
|
static |
Get relative (to webspace dir) directory.
Definition at line 384 of file class.ilObjMediaObject.php.
|
static |
get directory for files of media object
Definition at line 392 of file class.ilObjMediaObject.php.
Referenced by ilDclMobRecordRepresentation\getHTML(), and ILIAS\MediaObjects\MediaObjectManager\getLocalSrc().
|
static |
Get path for item with specific purpose.
Definition at line 401 of file class.ilObjMediaObject.php.
Referenced by ilObjectFeedWriter\__construct(), ilMediaCastManageTableGUI\fillRow(), ilMediaCastTableGUI\fillRow(), and ilMediaCastManageTableGUI\getRows().
|
static |
Remove usage of mob in another container.
Definition at line 877 of file class.ilObjMediaObject.php.
Referenced by ilRTE\_cleanupMediaObjectUsage(), ilObjForumGUI\createThread(), SurveyQuestion\delete(), assQuestion\delete(), ilForumDraftsHistory\deleteMobs(), ilForumPostDraft\deleteMobsOfDraft(), ilObjForumGUI\deleteMobsOfDraft(), ilForum\deletePost(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilForumAutoSaveAsyncDraftAction\handleMedia(), ilObjForumGUI\publishDraftObject(), ilDclMobRecordFieldModel\removeData(), ilObjForumGUI\savePostObject(), ilObjForumGUI\updateDraftObject(), and ilObjForumGUI\viewThreadObject().
|
static |
Resize image and return new image file ("_width_height" string appended)
Definition at line 1197 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaObjectGUI\resizeImagesObject(), and ilObjMediaObjectGUI\savePropertiesObject().
|
static |
Definition at line 1340 of file class.ilObjMediaObject.php.
Referenced by ilForumXMLParser\handlerEndTag(), ilObjTest\retrieveMobsFromLegacyImports(), ilNewsTimelineGUI\save(), ilNewsItemGUI\saveNewsItem(), ilSoapUtils\saveTempFileAsMediaObject(), ilNewsTimelineGUI\update(), and ilNewsItemGUI\updateNewsItem().
|
static |
Save usage of mob within another container (e.g.
page)
Definition at line 848 of file class.ilObjMediaObject.php.
Referenced by ilRTE\_cleanupMediaObjectUsage(), assQuestion\cloneXHTMLMediaObjectsOfQuestion(), SurveyQuestion\copyXHTMLMediaObjectsOfQuestion(), ilObjForumGUI\createThread(), ilForumAutoSaveAsyncDraftAction\handleMedia(), ilForumXMLParser\handlerEndTag(), ilDclMobRecordFieldModel\parseValue(), ilObjForumGUI\publishDraftObject(), ilObjTest\replaceMobsInPageImports(), ilObjTest\retrieveMobsFromLegacyImports(), ilForumUtil\saveMediaObjects(), and ilObjForumGUI\updateDraftObject().
ilObjMediaObject::addAdditionalFileFromUpload | ( | UploadResult | $result, |
string | $subdir | ||
) |
Definition at line 1550 of file class.ilObjMediaObject.php.
ilObjMediaObject::addMediaItem | ( | ilMediaItem | $a_item | ) |
Definition at line 185 of file class.ilObjMediaObject.php.
Referenced by ilMediaItem\_getMediaItemsOfMOb().
ilObjMediaObject::addMediaItemFromLegacyUpload | ( | string | $purpose, |
string | $tmp_name, | ||
string | $name, | ||
int | $resize_width = 0 , |
||
int | $resize_height = 0 , |
||
bool | $constrain_proportions = true , |
||
bool | $deduce_size = false |
||
) |
Definition at line 1401 of file class.ilObjMediaObject.php.
ilObjMediaObject::addMediaItemFromLocalFile | ( | string | $purpose, |
string | $tmp_name, | ||
string | $name | ||
) |
Definition at line 1476 of file class.ilObjMediaObject.php.
ilObjMediaObject::addMediaItemFromUpload | ( | string | $purpose, |
UploadResult | $result, | ||
string | $upload_hash = "" |
||
) |
Definition at line 1450 of file class.ilObjMediaObject.php.
|
protected |
Reimplemented from ilObject.
Definition at line 143 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId(), and ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle().
|
protected |
Reimplemented from ilObject.
Definition at line 175 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId().
|
protected |
Reimplemented from ilObject.
Definition at line 123 of file class.ilObjMediaObject.php.
References ilObject\_writeDescription(), ilObject\_writeTitle(), and ILIAS\Survey\Mode\getId().
|
protected |
Reimplemented from ilObject.
Definition at line 156 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId().
ilObjMediaObject::clearMultiSrtDirectory | ( | ) |
Clear multi srt directory.
Definition at line 1791 of file class.ilObjMediaObject.php.
References ilFileUtils\delDir().
ilObjMediaObject::containsIntLink | ( | ) |
returns true, if mob was marked as containing an intern link (via setContainsIntLink) (this method should only be called by the import parser)
Definition at line 765 of file class.ilObjMediaObject.php.
ilObjMediaObject::create | ( | bool | $a_create_meta_data = false , |
bool | $a_save_media_items = true , |
||
int | $from_mob_id = 0 |
||
) |
Definition at line 285 of file class.ilObjMediaObject.php.
ilObjMediaObject::createDirectory | ( | ) |
Create file directory of media object.
ilMediaObjectsException |
Definition at line 430 of file class.ilObjMediaObject.php.
References $path, _getDirectory(), ILIAS\Survey\Mode\getId(), and ilFileUtils\makeDirParents().
ilObjMediaObject::delete | ( | ) |
delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!!
Reimplemented from ilObject.
Definition at line 83 of file class.ilObjMediaObject.php.
References ilMediaItem\deleteAllItemsOfMob(), ILIAS\Survey\Mode\getId(), and ilLoggerFactory\getLogger().
ilObjMediaObject::duplicate | ( | ) |
Duplicate media object, return new media object.
Definition at line 1648 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId(), and ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle().
|
protected |
Escape property (e.g.
title, caption) to XSLT -> HTML output
Definition at line 690 of file class.ilObjMediaObject.php.
ilObjMediaObject::exportFiles | ( | string | $a_target_dir | ) |
export all media files of object to target directory note: target directory must be the export target directory, "/objects/il_<inst>_mob_<mob_id>/..." will be appended to this directory
ILIAS\Filesystem\Exception\DirectoryNotFoundException
ILIAS\Filesystem\Exception\FileNotFoundException
ILIAS\Filesystem\Exception\IOException
Definition at line 724 of file class.ilObjMediaObject.php.
ilObjMediaObject::exportXML | ( | ilXmlWriter | $a_xml_writer, |
int | $a_inst = 0 |
||
) |
Definition at line 708 of file class.ilObjMediaObject.php.
|
static |
Fix filename of uploaded file.
Definition at line 1748 of file class.ilObjMediaObject.php.
ilObjMediaObject::getDataDirectory | ( | ) |
Definition at line 1330 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId(), and ilFileUtils\getWebspaceDir().
ilObjMediaObject::getExternalMetadata | ( | ) |
Definition at line 1834 of file class.ilObjMediaObject.php.
References Vendor\Package\$e, $url, ilExternalMediaAnalyzer\extractVimeoParameters(), ILIAS\Survey\Mode\getId(), ilLoggerFactory\getLogger(), ilExternalMediaAnalyzer\getVimeoMetadata(), ilExternalMediaAnalyzer\getYoutubeMetadata(), and ilExternalMediaAnalyzer\isVimeo().
Referenced by ilObjMediaCast\addMobToCast().
ilObjMediaObject::getFilesOfDirectory | ( | string | $dir_path = "" | ) |
Definition at line 439 of file class.ilObjMediaObject.php.
Referenced by ILIAS\COPage\PC\InteractiveImage\IIMManager\getOverlays().
ilObjMediaObject::getFullscreenSrc | ( | ) |
Definition at line 1897 of file class.ilObjMediaObject.php.
ilObjMediaObject::getLinkedMediaObjects | ( | array | $a_ignore = [] | ) |
Get all media objects linked in map areas of this media object.
int[] | $a_ignore | array of IDs that should be ignored |
Definition at line 1610 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 1902 of file class.ilObjMediaObject.php.
ilObjMediaObject::getMediaItem | ( | string | $a_purpose | ) |
get item for media purpose
Definition at line 199 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\determinePlaytimeObject(), ilMediaObjectsPlayerWrapperGUI\getComponent(), ilObjMediaCastGUI\getMediaItem(), ilObjMediaCastGUI\showCastItemObject(), and ilObjMediaCastGUI\updateCastItemObject().
& ilObjMediaObject::getMediaItems | ( | ) |
Definition at line 191 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\getMediaItems().
|
static |
get mime type for file
Definition at line 1232 of file class.ilObjMediaObject.php.
Referenced by ilKprimChoiceWizardInputGUI\checkUploads(), ilDclMobRecordFieldModel\parseValue(), ilNewsTimelineItemGUI\renderMedia(), ilNewsTimelineItemGUI\renderMediaModal(), ilObjMediaObjectGUI\savePropertiesObject(), ilMediaCreationGUI\saveUrl(), assMultipleChoice\setImageFile(), ilNewsForContextBlockGUI\showNews(), and ilPCInteractiveImageGUI\update().
ilObjMediaObject::getMultiSrtFiles | ( | ) |
Get all srt files of srt multi upload.
Definition at line 1799 of file class.ilObjMediaObject.php.
References $lang, and ilFileUtils\getDir().
ilObjMediaObject::getMultiSrtUploadDir | ( | ) |
Get directory for multi srt upload.
Definition at line 1763 of file class.ilObjMediaObject.php.
References _getDirectory(), and ILIAS\Survey\Mode\getId().
ilObjMediaObject::getOriginID | ( | ) |
Definition at line 280 of file class.ilObjMediaObject.php.
|
static |
Get's the repository object ID of a parent object, if possible see ilWebAccessChecker.
Definition at line 1004 of file class.ilObjMediaObject.php.
Referenced by ilMobStakeholder\canBeAccessedByCurrentUser(), ilObjMediaObjectAccess\checkAccessMob(), and ilMediaObjectUsagesTableGUI\fillRow().
ilObjMediaObject::getSrtFiles | ( | bool | $vtt_only = false | ) |
Definition at line 1573 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId().
Referenced by ilMobSubtitleTableGUI\__construct().
ilObjMediaObject::getStandardSrc | ( | ) |
Definition at line 1892 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\showCastItemObject().
ilObjMediaObject::getUsages | ( | bool | $a_include_history = true | ) |
get all usages of current media object
Definition at line 902 of file class.ilObjMediaObject.php.
ilObjMediaObject::getVideoPreviewPic | ( | bool | $a_filename_only = false | ) |
Definition at line 1714 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId().
ilObjMediaObject::getXML | ( | int | $a_mode = IL_MODE_FULL , |
int | $a_inst = 0 , |
||
bool | $a_sign_locals = false , |
||
bool | $offline = false |
||
) |
get MediaObject XLM Tag
int | $a_mode | IL_MODE_ALIAS | IL_MODE_OUTPUT | IL_MODE_FULL |
int | $a_inst | |
bool | $a_sign_locals |
ilWACException |
Definition at line 456 of file class.ilObjMediaObject.php.
References $location, ilExternalMediaAnalyzer\extractVimeoParameters(), ILIAS\Survey\Mode\getId(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), IL_INST_ID, IL_MODE_ALIAS, IL_MODE_FULL, IL_MODE_OUTPUT, ilUtil\secureUrl(), and ilWACSignedPath\signFile().
ilObjMediaObject::handleAmps | ( | string | $a_str | ) |
Replace "&" (if not an "&") with "&".
Definition at line 700 of file class.ilObjMediaObject.php.
|
staticprotected |
ilObjMediaObject::hasFullscreenItem | ( | ) |
Definition at line 235 of file class.ilObjMediaObject.php.
ilObjMediaObject::hasPurposeItem | ( | string | $purpose | ) |
returns whether object has media item with specific purpose
Definition at line 243 of file class.ilObjMediaObject.php.
ilObjMediaObject::isAlias | ( | ) |
Definition at line 267 of file class.ilObjMediaObject.php.
|
static |
Definition at line 1636 of file class.ilObjMediaObject.php.
Referenced by ilPageObjectGUI\displayMedia(), ilLMPresentationGUI\ilMedia(), ilGlossaryPresentationGUI\media(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), and ilPageObjectGUI\showPage().
|
static |
Lookup usages of media object.
Definition at line 913 of file class.ilObjMediaObject.php.
Referenced by ilMobStakeholder\canBeAccessedByCurrentUser(), and ilLMObject\updateInternalLinks().
ilObjMediaObject::makeThumbnail | ( | string | $source, |
string | $thumbname | ||
) |
Make thumbnail.
Definition at line 1581 of file class.ilObjMediaObject.php.
ilObjMediaObject::modifyExportIdentifier | ( | string | $a_tag, |
string | $a_param, | ||
string | $a_value | ||
) |
Definition at line 734 of file class.ilObjMediaObject.php.
References ilUtil\insertInstIntoID().
ilObjMediaObject::read | ( | ) |
Reimplemented from ilObject.
Definition at line 256 of file class.ilObjMediaObject.php.
References ilMediaItem\_getMediaItemsOfMOb().
ilObjMediaObject::removeAdditionalFile | ( | string | $a_file | ) |
Definition at line 1596 of file class.ilObjMediaObject.php.
ilObjMediaObject::removeAllMediaItems | ( | ) |
Definition at line 230 of file class.ilObjMediaObject.php.
ilObjMediaObject::removeMediaItem | ( | string | $a_purpose | ) |
Definition at line 210 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\updateCastItemObject().
|
static |
Definition at line 1825 of file class.ilObjMediaObject.php.
References ilFileUtils\rRenameSuffix().
ilObjMediaObject::replaceMediaItemFromUpload | ( | string | $purpose, |
UploadResult | $result, | ||
string | $upload_hash = "" |
||
) |
Definition at line 1500 of file class.ilObjMediaObject.php.
ilObjMediaObject::setAlias | ( | bool | $a_is_alias | ) |
Definition at line 262 of file class.ilObjMediaObject.php.
ilObjMediaObject::setContainsIntLink | ( | bool | $a_contains_link | ) |
content parser set this flag to true, if the media object contains internal links (this method should only be called by the import parser)
Definition at line 755 of file class.ilObjMediaObject.php.
ilObjMediaObject::setOriginID | ( | string | $a_id | ) |
Definition at line 275 of file class.ilObjMediaObject.php.
ilObjMediaObject::update | ( | bool | $a_upload = false | ) |
Definition at line 325 of file class.ilObjMediaObject.php.
References ilMediaItem\deleteAllItemsOfMob(), and ILIAS\Survey\Mode\getId().
Referenced by ilObjMediaCastGUI\updateCastItemObject().
ilObjMediaObject::uploadAdditionalFile | ( | string | $a_name, |
string | $tmp_name, | ||
string | $a_subdir = "" , |
||
string | $a_mode = "move_uploaded" |
||
) |
Create new media object and update page in db and return new media object.
Definition at line 1528 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId().
ilObjMediaObject::uploadMultipleSubtitleFile | ( | array | $a_file | ) |
Upload multi srt file.
Definition at line 1772 of file class.ilObjMediaObject.php.
References $lng.
ilObjMediaObject::uploadSrtFile | ( | string | $a_tmp_name, |
string | $a_language, | ||
string | $a_mode = "move_uploaded" |
||
) |
Definition at line 1561 of file class.ilObjMediaObject.php.
ilObjMediaObject::uploadVideoPreviewPic | ( | array | $a_prevpic | ) |
Definition at line 1674 of file class.ilObjMediaObject.php.
bool ilObjMediaObject::$contains_int_link |
Definition at line 46 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 41 of file class.ilObjMediaObject.php.
|
private |
Definition at line 47 of file class.ilObjMediaObject.php.
bool ilObjMediaObject::$is_alias |
Definition at line 43 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 40 of file class.ilObjMediaObject.php.
array ilObjMediaObject::$media_items |
Definition at line 45 of file class.ilObjMediaObject.php.
string ilObjMediaObject::$origin_id |
Definition at line 44 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 39 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 42 of file class.ilObjMediaObject.php.
const ilObjMediaObject::DEFAULT_PREVIEW_SIZE = 80 |
Definition at line 38 of file class.ilObjMediaObject.php.
Referenced by ILIAS\MediaObjects\Thumbs\ThumbsManager\createThumb().