|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ilObjMediaObject:
Collaboration diagram for ilObjMediaObject: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 () | |
Public Member Functions inherited from ilObject | |
| 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|false $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 Public Member Functions inherited from ilObject | |
| 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_THUMB_SIZE = 80 |
| const | DEFAULT_PREVIEW_SIZE = 400 |
| bool | $is_alias |
| string | $origin_id |
| array | $media_items |
| bool | $contains_int_link |
Data Fields inherited from ilObject | |
| 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) | |
Protected Member Functions inherited from ilObject | |
| 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 |
Protected Attributes inherited from ilObject | |
| 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 50 of file class.ilObjMediaObject.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
Definition at line 773 of file class.ilObjMediaObject.php.
References $ilDB.
Referenced by ilPageObject\delete().
Here is the caller graph for this function:
|
static |
Definition at line 1243 of file class.ilObjMediaObject.php.
References ilMediaImageUtil\getImageSize().
Referenced by ilObjMediaObjectGUI\savePropertiesObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 69 of file class.ilObjMediaObject.php.
References $id, and ilInternalLink\_extractObjIdOfTarget().
Referenced by ilRTE\_cleanupMediaObjectUsage(), ilInternalLink\_exists(), ilRTE\_getMediaObjects(), assQuestionExport\addQTIMaterial(), ilObjTest\addQTIMaterial(), ilDclMobRecordFieldModel\afterClone(), 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(), ILIAS\MediaObjects\OverviewGUI\Table\Retrieval\getInternalData(), ilDclMobRecordFieldModel\removeData(), ilObjForumGUI\savePostObject(), ilForumXMLWriter\start(), and ilObjForumGUI\viewThreadObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get absolute directory.
Definition at line 378 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastAccess\_lookupDiskUsage(), createDirectory(), ilObjMediaCastGUI\determinePlaytimeObject(), ilMediaItem\getDirectory(), ilBlogPostingGUI\getFirstMediaObjectAsTag(), ilObjMediaObjectGUI\getFullscreenSizeObject(), ilDclMobRecordRepresentation\getHTML(), getMultiSrtUploadDir(), ilObjMediaObjectGUI\getStandardSizeObject(), ilDclMobRecordFieldModel\handleFileUpload(), ilPCMediaObject\modifyPageContentPostXsl(), ilObjMediaObjectGUI\resizeImagesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilMediaCreationGUI\saveUrl(), and ilPCInteractiveImageGUI\update().
Here is the caller graph for this function:
|
static |
Definition at line 813 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(), ILIAS\MediaObjects\OverviewGUI\Table\Retrieval\getInternalData(), 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().
Here is the caller graph for this function:
|
static |
Get relative (to webspace dir) directory.
Definition at line 387 of file class.ilObjMediaObject.php.
Referenced by ilDclMobRecordRepresentation\getHTML(), ilDclMobRecordFieldModel\handleFileUpload(), and ilDclMobRecordFieldModel\removeData().
Here is the caller graph for this function:
|
static |
get directory for files of media object
Definition at line 395 of file class.ilObjMediaObject.php.
Referenced by ilDclMobRecordRepresentation\getHTML(), and ILIAS\MediaObjects\MediaObjectManager\getLocalSrc().
Here is the caller graph for this function:
|
static |
Get path for item with specific purpose.
Definition at line 404 of file class.ilObjMediaObject.php.
Referenced by ilObjectFeedWriter\__construct(), ilMediaCastManageTableGUI\fillRow(), ilMediaCastTableGUI\fillRow(), and ilMediaCastManageTableGUI\getRows().
Here is the caller graph for this function:
|
static |
Remove usage of mob in another container.
Definition at line 880 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(), ilObjForumGUI\savePostObject(), ilObjForumGUI\updateDraftObject(), and ilObjForumGUI\viewThreadObject().
Here is the caller graph for this function:
|
static |
Resize image and return new image file ("_width_height" string appended)
Definition at line 1200 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaObjectGUI\resizeImagesObject(), and ilObjMediaObjectGUI\savePropertiesObject().
Here is the caller graph for this function:
|
static |
Definition at line 1343 of file class.ilObjMediaObject.php.
Referenced by ilForumXMLParser\handlerEndTag(), ilNewsTimelineGUI\save(), ilNewsItemGUI\saveNewsItem(), ilSoapUtils\saveTempFileAsMediaObject(), ilNewsTimelineGUI\update(), and ilNewsItemGUI\updateNewsItem().
Here is the caller graph for this function:
|
static |
Save usage of mob within another container (e.g.
page)
Definition at line 851 of file class.ilObjMediaObject.php.
Referenced by ilRTE\_cleanupMediaObjectUsage(), assQuestion\cloneXHTMLMediaObjectsOfQuestion(), SurveyQuestion\copyXHTMLMediaObjectsOfQuestion(), ilObjForumGUI\createThread(), ilDclMobRecordFieldModel\handleFileUpload(), ilForumAutoSaveAsyncDraftAction\handleMedia(), ilForumXMLParser\handlerEndTag(), ilObjForumGUI\publishDraftObject(), ilObjTest\replaceMobsInPageImports(), ilForumUtil\saveMediaObjects(), and ilObjForumGUI\updateDraftObject().
Here is the caller graph for this function:| ilObjMediaObject::addAdditionalFileFromUpload | ( | UploadResult | $result, |
| string | $subdir | ||
| ) |
Definition at line 1553 of file class.ilObjMediaObject.php.
| ilObjMediaObject::addMediaItem | ( | ilMediaItem | $a_item | ) |
Definition at line 186 of file class.ilObjMediaObject.php.
Referenced by ilMediaItem\_getMediaItemsOfMOb().
Here is the caller graph for this function:| 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 1404 of file class.ilObjMediaObject.php.
| ilObjMediaObject::addMediaItemFromLocalFile | ( | string | $purpose, |
| string | $tmp_name, | ||
| string | $name | ||
| ) |
Definition at line 1479 of file class.ilObjMediaObject.php.
| ilObjMediaObject::addMediaItemFromUpload | ( | string | $purpose, |
| UploadResult | $result, | ||
| string | $upload_hash = "" |
||
| ) |
Definition at line 1453 of file class.ilObjMediaObject.php.
|
protected |
Reimplemented from ilObject.
Definition at line 144 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId(), and ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject.
Definition at line 176 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject.
Definition at line 124 of file class.ilObjMediaObject.php.
References ilObject\_writeDescription(), ilObject\_writeTitle(), and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject.
Definition at line 157 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilObjMediaObject::clearMultiSrtDirectory | ( | ) |
Clear multi srt directory.
Definition at line 1794 of file class.ilObjMediaObject.php.
References ilFileUtils\delDir().
Here is the call graph for this function:| 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 768 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 286 of file class.ilObjMediaObject.php.
| ilObjMediaObject::createDirectory | ( | ) |
Create file directory of media object.
| ilMediaObjectsException |
Definition at line 433 of file class.ilObjMediaObject.php.
References $path, _getDirectory(), ILIAS\Survey\Mode\getId(), and ilFileUtils\makeDirParents().
Here is the call graph for this function:| 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 84 of file class.ilObjMediaObject.php.
References ilMediaItem\deleteAllItemsOfMob(), ILIAS\Survey\Mode\getId(), and ilLoggerFactory\getLogger().
Here is the call graph for this function:| ilObjMediaObject::duplicate | ( | ) |
Duplicate media object, return new media object.
Definition at line 1651 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId(), and ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle().
Here is the call graph for this function:
|
protected |
Escape property (e.g.
title, caption) to XSLT -> HTML output
Definition at line 693 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 727 of file class.ilObjMediaObject.php.
| ilObjMediaObject::exportXML | ( | ilXmlWriter | $a_xml_writer, |
| int | $a_inst = 0 |
||
| ) |
Definition at line 711 of file class.ilObjMediaObject.php.
|
static |
Fix filename of uploaded file.
Definition at line 1751 of file class.ilObjMediaObject.php.
| ilObjMediaObject::getDataDirectory | ( | ) |
Definition at line 1333 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId(), and ilFileUtils\getWebspaceDir().
Here is the call graph for this function:| ilObjMediaObject::getExternalMetadata | ( | ) |
Definition at line 1837 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getFilesOfDirectory | ( | string | $dir_path = "" | ) |
Definition at line 442 of file class.ilObjMediaObject.php.
Referenced by ILIAS\COPage\PC\InteractiveImage\IIMManager\getOverlays().
Here is the caller graph for this function:| ilObjMediaObject::getFullscreenSrc | ( | ) |
Definition at line 1900 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 1613 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 1905 of file class.ilObjMediaObject.php.
| ilObjMediaObject::getMediaItem | ( | string | $a_purpose | ) |
get item for media purpose
Definition at line 200 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\determinePlaytimeObject(), ilMediaObjectsPlayerWrapperGUI\getComponent(), ilObjMediaCastGUI\getMediaItem(), ilObjMediaCastGUI\showCastItemObject(), and ilObjMediaCastGUI\updateCastItemObject().
Here is the caller graph for this function:| & ilObjMediaObject::getMediaItems | ( | ) |
Definition at line 192 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\getMediaItems().
Here is the caller graph for this function:
|
static |
get mime type for file
Definition at line 1235 of file class.ilObjMediaObject.php.
Referenced by ilKprimChoiceWizardInputGUI\checkUploads(), ilNewsTimelineItemGUI\renderMedia(), ilNewsTimelineItemGUI\renderMediaModal(), ilObjMediaObjectGUI\savePropertiesObject(), ilMediaCreationGUI\saveUrl(), assMultipleChoice\setImageFile(), ilNewsForContextBlockGUI\showNews(), and ilPCInteractiveImageGUI\update().
Here is the caller graph for this function:| ilObjMediaObject::getMultiSrtFiles | ( | ) |
Get all srt files of srt multi upload.
Definition at line 1802 of file class.ilObjMediaObject.php.
References ilFileUtils\getDir().
Here is the call graph for this function:| ilObjMediaObject::getMultiSrtUploadDir | ( | ) |
Get directory for multi srt upload.
Definition at line 1766 of file class.ilObjMediaObject.php.
References _getDirectory(), and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilObjMediaObject::getOriginID | ( | ) |
Definition at line 281 of file class.ilObjMediaObject.php.
|
static |
Get's the repository object ID of a parent object, if possible see ilWebAccessChecker.
Definition at line 1007 of file class.ilObjMediaObject.php.
Referenced by ILIAS\MediaObjects\OverviewGUI\Table\Retrieval\addExternalData(), ilMobStakeholder\canBeAccessedByCurrentUser(), ilObjMediaObjectAccess\checkAccessMob(), and ilMediaObjectUsagesTableGUI\fillRow().
Here is the caller graph for this function:| ilObjMediaObject::getSrtFiles | ( | bool | $vtt_only = false | ) |
Definition at line 1576 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId().
Referenced by ilMobSubtitleTableGUI\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getStandardSrc | ( | ) |
Definition at line 1895 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\showCastItemObject().
Here is the caller graph for this function:| ilObjMediaObject::getUsages | ( | bool | $a_include_history = true | ) |
get all usages of current media object
Definition at line 905 of file class.ilObjMediaObject.php.
| ilObjMediaObject::getVideoPreviewPic | ( | bool | $a_filename_only = false | ) |
Definition at line 1717 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| 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 459 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().
Here is the call graph for this function:| ilObjMediaObject::handleAmps | ( | string | $a_str | ) |
Replace "&" (if not an "&") with "&".
Definition at line 703 of file class.ilObjMediaObject.php.
|
staticprotected |
| ilObjMediaObject::hasFullscreenItem | ( | ) |
Definition at line 236 of file class.ilObjMediaObject.php.
| ilObjMediaObject::hasPurposeItem | ( | string | $purpose | ) |
returns whether object has media item with specific purpose
Definition at line 244 of file class.ilObjMediaObject.php.
| ilObjMediaObject::isAlias | ( | ) |
Definition at line 268 of file class.ilObjMediaObject.php.
|
static |
Definition at line 1639 of file class.ilObjMediaObject.php.
Referenced by ilPageObjectGUI\displayMedia(), ilLMPresentationGUI\ilMedia(), ilGlossaryPresentationGUI\media(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), and ilPageObjectGUI\showPage().
Here is the caller graph for this function:
|
static |
Lookup usages of media object.
Definition at line 916 of file class.ilObjMediaObject.php.
Referenced by ILIAS\MediaObjects\OverviewGUI\Table\Retrieval\addExternalData(), ilMobStakeholder\canBeAccessedByCurrentUser(), and ilLMObject\updateInternalLinks().
Here is the caller graph for this function:| ilObjMediaObject::makeThumbnail | ( | string | $source, |
| string | $thumbname | ||
| ) |
Make thumbnail.
Definition at line 1584 of file class.ilObjMediaObject.php.
| ilObjMediaObject::modifyExportIdentifier | ( | string | $a_tag, |
| string | $a_param, | ||
| string | $a_value | ||
| ) |
Definition at line 737 of file class.ilObjMediaObject.php.
References ilUtil\insertInstIntoID().
Here is the call graph for this function:| ilObjMediaObject::read | ( | ) |
Reimplemented from ilObject.
Definition at line 257 of file class.ilObjMediaObject.php.
References ilMediaItem\_getMediaItemsOfMOb().
Here is the call graph for this function:| ilObjMediaObject::removeAdditionalFile | ( | string | $a_file | ) |
Definition at line 1599 of file class.ilObjMediaObject.php.
| ilObjMediaObject::removeAllMediaItems | ( | ) |
Definition at line 231 of file class.ilObjMediaObject.php.
| ilObjMediaObject::removeMediaItem | ( | string | $a_purpose | ) |
Definition at line 211 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\updateCastItemObject().
Here is the caller graph for this function:
|
static |
Definition at line 1828 of file class.ilObjMediaObject.php.
References ilFileUtils\rRenameSuffix().
Here is the call graph for this function:| ilObjMediaObject::replaceMediaItemFromUpload | ( | string | $purpose, |
| UploadResult | $result, | ||
| string | $upload_hash = "" |
||
| ) |
Definition at line 1503 of file class.ilObjMediaObject.php.
| ilObjMediaObject::setAlias | ( | bool | $a_is_alias | ) |
Definition at line 263 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 758 of file class.ilObjMediaObject.php.
| ilObjMediaObject::setOriginID | ( | string | $a_id | ) |
Definition at line 276 of file class.ilObjMediaObject.php.
| ilObjMediaObject::update | ( | bool | $a_upload = false | ) |
Definition at line 326 of file class.ilObjMediaObject.php.
References ilMediaItem\deleteAllItemsOfMob(), and ILIAS\Survey\Mode\getId().
Referenced by ilObjMediaCastGUI\updateCastItemObject().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 1531 of file class.ilObjMediaObject.php.
References ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilObjMediaObject::uploadMultipleSubtitleFile | ( | array | $a_file | ) |
Upload multi srt file.
Definition at line 1775 of file class.ilObjMediaObject.php.
References $lng.
| ilObjMediaObject::uploadSrtFile | ( | string | $a_tmp_name, |
| string | $a_language, | ||
| string | $a_mode = "move_uploaded" |
||
| ) |
Definition at line 1564 of file class.ilObjMediaObject.php.
| ilObjMediaObject::uploadVideoPreviewPic | ( | array | $a_prevpic | ) |
Definition at line 1677 of file class.ilObjMediaObject.php.
| bool ilObjMediaObject::$contains_int_link |
Definition at line 47 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 42 of file class.ilObjMediaObject.php.
|
private |
Definition at line 48 of file class.ilObjMediaObject.php.
| bool ilObjMediaObject::$is_alias |
Definition at line 44 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 41 of file class.ilObjMediaObject.php.
| array ilObjMediaObject::$media_items |
Definition at line 46 of file class.ilObjMediaObject.php.
| string ilObjMediaObject::$origin_id |
Definition at line 45 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 40 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 43 of file class.ilObjMediaObject.php.
| const ilObjMediaObject::DEFAULT_PREVIEW_SIZE = 400 |
Definition at line 39 of file class.ilObjMediaObject.php.
| const ilObjMediaObject::DEFAULT_THUMB_SIZE = 80 |
Definition at line 38 of file class.ilObjMediaObject.php.
Referenced by ILIAS\MediaObjects\Thumbs\ThumbsManager\createThumb().