|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Inheritance diagram for ilObjMediaObject:
Collaboration diagram for ilObjMediaObject:Public Member Functions | |
| __construct (int $a_id=0) | |
| delete () | |
| 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) | |
| 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) |
| 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 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_PREVIEW_SIZE = 80 |
| 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 49 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 772 of file class.ilObjMediaObject.php.
References $DIC, $ilDB, and $q.
Referenced by ilPCMediaObject\beforePageDelete(), ilPageObject\delete(), and ilPCMediaObject\saveMobUsage().
Here is the caller graph for this function:
|
static |
Definition at line 1242 of file class.ilObjMediaObject.php.
References $DIC, ilObject\$lng, $r, ilUtil\deducibleSize(), ilMediaImageUtil\getImageSize(), ILIAS\Repository\int(), and ilLanguage\txt().
Referenced by ilObjMediaObjectGUI\savePropertiesObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 68 of file class.ilObjMediaObject.php.
References ilInternalLink\_extractObjIdOfTarget(), and ilObject\_lookupType().
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(), ilQuestionpoolExport\exportXHTMLMediaObjects(), ILIAS\Test\ExportImport\Export\exportXHTMLMediaObjects(), ilObjQuestionPool\exportXMLMediaObjects(), ilObjTest\exportXMLMediaObjects(), ilObjForumGUI\savePostObject(), ilForumXMLWriter\start(), ilExSubmissionTextGUI\updateAssignmentTextObject(), 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 376 of file class.ilObjMediaObject.php.
References ilFileUtils\getWebspaceDir().
Referenced by ilObjMediaCastAccess\_lookupDiskUsage(), _saveTempFileAsMediaObject(), createDirectory(), ilNewsItem\deliverMobFile(), ilObjMediaCastGUI\determinePlaytimeObject(), ilMediaItem\getDirectory(), ilBlogPostingGUI\getFirstMediaObjectAsTag(), ilObjMediaObjectGUI\getFullscreenSizeObject(), ilDclMobRecordRepresentation\getHTML(), getMultiSrtUploadDir(), ilObjMediaObjectGUI\getStandardSizeObject(), getVideoPreviewPic(), ilPCMediaObject\modifyPageContentPostXsl(), ilDclMobRecordFieldModel\parseValue(), ilObjMediaObjectGUI\resizeImagesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilMediaCreationGUI\saveUrl(), ilPCInteractiveImageGUI\update(), and ilObjMediaCastGUI\updateMediaItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 812 of file class.ilObjMediaObject.php.
References $DIC, $ilDB, $q, ilObject\_lookupType(), and ILIAS\Repository\int().
Referenced by ilRTE\_cleanupMediaObjectUsage(), SurveyQuestion\addMaterialTag(), ilObjSurvey\addMaterialTag(), assQuestionExport\addQTIMaterial(), ilObjTest\addQTIMaterial(), ilPCMediaObject\afterPageUpdate(), ilPCMediaObject\beforePageDelete(), assQuestion\cloneXHTMLMediaObjectsOfQuestion(), ilCOPageHTMLExport\collectPageElements(), SurveyQuestion\copyXHTMLMediaObjectsOfQuestion(), ilObjForumGUI\createThread(), SurveyQuestion\delete(), assQuestion\delete(), ilPageObject\delete(), ilForumDraftsHistory\deleteMobs(), ilForumPostDraft\deleteMobsOfDraft(), ilObjForumGUI\deleteMobsOfDraft(), ilForum\deletePost(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilSurveyExport\exportXHTMLMediaObjects(), ilQuestionpoolExport\exportXHTMLMediaObjects(), ILIAS\Test\ExportImport\Export\exportXHTMLMediaObjects(), ilPageObject\getLastUpdateOfIncludedElements(), ilLMMultiSrt\getMobIds(), ilMepMultiSrt\getMobIds(), ilSoapUtils\getMobsOfObject(), ilCOPageExporter\getXmlExportHeadDependencies(), ilTestExporter\getXmlExportHeadDependencies(), ilPCMediaObject\modifyPageContentPostXsl(), ilForumUtil\moveMediaObjects(), ilObjForumGUI\publishDraftObject(), ILIAS\COPage\PC\MediaObject\MediaObjectManager\resolveMediaAliases(), ilObjForumGUI\savePostObject(), ilForumXMLWriter\start(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assLongMenu\toJSON(), assKprimChoice\toJSON(), assErrorText\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), assClozeTest\toJSON(), ilObjForumGUI\updateDraftObject(), and ilObjForumGUI\viewThreadObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get relative (to webspace dir) directory.
Definition at line 385 of file class.ilObjMediaObject.php.
|
static |
get directory for files of media object
Definition at line 393 of file class.ilObjMediaObject.php.
References ilUtil\getHtmlPath(), and ilFileUtils\getWebspaceDir().
Referenced by ilDclMobRecordRepresentation\getHTML(), and ILIAS\MediaObjects\MediaObjectManager\getLocalSrc().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get path for item with specific purpose.
Definition at line 402 of file class.ilObjMediaObject.php.
References $location, $path, ilMediaItem\_lookupLocationForMobId(), and CLIENT_ID.
Referenced by ilObjectFeedWriter\__construct(), ilMediaCastTableGUI\fillRow(), ilMediaCastManageTableGUI\fillRow(), and ilMediaCastManageTableGUI\getRows().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Remove usage of mob in another container.
Definition at line 879 of file class.ilObjMediaObject.php.
References $DIC, $ilDB, and $q.
Referenced by ilRTE\_cleanupMediaObjectUsage(), ilObjForumGUI\createThread(), SurveyQuestion\delete(), assQuestion\delete(), ilForumDraftsHistory\deleteMobs(), ilForumPostDraft\deleteMobsOfDraft(), ilObjForumGUI\deleteMobsOfDraft(), ilForum\deletePost(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilForumAutoSaveAsyncDraftAction\handleMedia(), ilForumUtil\moveMediaObjects(), ilObjForumGUI\publishDraftObject(), ilDclMobRecordFieldModel\removeData(), ilObjForumGUI\savePostObject(), ilExSubmissionTextGUI\updateAssignmentTextObject(), 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 1199 of file class.ilObjMediaObject.php.
References $DIC, and $location.
Referenced by ilObjMediaObjectGUI\resizeImagesObject(), ilObjMediaObjectGUI\savePropertiesObject(), and ilObjMediaObjectGUI\setObjectPerCreationForm().
Here is the caller graph for this function:
|
static |
Definition at line 1342 of file class.ilObjMediaObject.php.
References _getDirectory().
Referenced by assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assFormulaQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assImagemapQuestionImport\fromXML(), assKprimChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), assClozeTestImport\fromXML(), ilForumXMLParser\handlerEndTag(), ilObjTest\retrieveMobsFromLegacyImports(), ilNewsTimelineGUI\save(), ilNewsItemGUI\saveNewsItem(), ilSoapUtils\saveTempFileAsMediaObject(), ilNewsTimelineGUI\update(), and ilNewsItemGUI\updateNewsItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Save usage of mob within another container (e.g.
page)
Definition at line 850 of file class.ilObjMediaObject.php.
Referenced by ilRTE\_cleanupMediaObjectUsage(), assQuestion\cloneXHTMLMediaObjectsOfQuestion(), SurveyQuestion\copyXHTMLMediaObjectsOfQuestion(), ilObjForumGUI\createThread(), ilDataCollectionDataSet\escapeArray(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assSingleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), ilForumAutoSaveAsyncDraftAction\handleMedia(), ilForumXMLParser\handlerEndTag(), ilForumUtil\moveMediaObjects(), ilDclMobRecordFieldModel\parseValue(), ilObjForumGUI\publishDraftObject(), ilObjTest\replaceMobsInPageImports(), ilObjTest\retrieveMobsFromLegacyImports(), ilForumUtil\saveMediaObjects(), ilPCMediaObject\saveMobUsage(), ilExSubmissionTextGUI\updateAssignmentTextObject(), and ilObjForumGUI\updateDraftObject().
Here is the caller graph for this function:| ilObjMediaObject::addAdditionalFileFromUpload | ( | UploadResult | $result, |
| string | $subdir | ||
| ) |
Definition at line 1552 of file class.ilObjMediaObject.php.
References ilObject\getId().
Referenced by ILIAS\COPage\PC\InteractiveImage\IIMManager\handleOverlayUpload().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::addMediaItem | ( | ilMediaItem | $a_item | ) |
Definition at line 185 of file class.ilObjMediaObject.php.
Referenced by ilMediaItem\_getMediaItemsOfMOb(), addMediaItemFromLegacyUpload(), addMediaItemFromLocalFile(), addMediaItemFromUpload(), ilObjMediaCastGUI\createMediaItemForPurpose(), and ilObjMediaObjectGUI\setObjectPerCreationForm().
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 1403 of file class.ilObjMediaObject.php.
References $location, addMediaItem(), and ilObject\getId().
Referenced by ilObjMediaObjectGUI\setObjectPerCreationForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::addMediaItemFromLocalFile | ( | string | $purpose, |
| string | $tmp_name, | ||
| string | $name | ||
| ) |
Definition at line 1478 of file class.ilObjMediaObject.php.
References $location, addMediaItem(), and ilObject\getId().
Here is the call graph for this function:| ilObjMediaObject::addMediaItemFromUpload | ( | string | $purpose, |
| UploadResult | $result, | ||
| string | $upload_hash = "" |
||
| ) |
Definition at line 1452 of file class.ilObjMediaObject.php.
References addMediaItem(), ilObject\getId(), and ILIAS\FileUpload\DTO\UploadResult\getName().
Here is the call graph for this function:
|
protected |
Definition at line 143 of file class.ilObjMediaObject.php.
References $user, ilObject\getId(), ilObject\getLongDescription(), ilObject\getTitle(), and ilObject\getType().
Here is the call graph for this function:
|
protected |
Definition at line 175 of file class.ilObjMediaObject.php.
References ilObject\getId(), and ilObject\getType().
Here is the call graph for this function:
|
protected |
Definition at line 123 of file class.ilObjMediaObject.php.
References ilObject\_writeDescription(), ilObject\_writeTitle(), ilObject\getId(), and ilObject\getType().
Here is the call graph for this function:
|
protected |
Definition at line 156 of file class.ilObjMediaObject.php.
References ilObject\getDescription(), ilObject\getId(), ilObject\getTitle(), and ilObject\getType().
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(), and getMultiSrtUploadDir().
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 767 of file class.ilObjMediaObject.php.
References $contains_int_link.
| 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.
References ilObject\$app_event_handler, $id, ilObject\createMetaData(), ilObject\getId(), getMediaItems(), ilObject\getTitle(), and ilAppEventHandler\raise().
Referenced by ilObjMediaObjectGUI\setObjectPerCreationForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::createDirectory | ( | ) |
Create file directory of media object.
| ilMediaObjectsException |
Definition at line 431 of file class.ilObjMediaObject.php.
References $path, _getDirectory(), ilObject\getId(), and ilFileUtils\makeDirParents().
Referenced by ilObjMediaCastGUI\updateMediaItem().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::delete | ( | ) |
Definition at line 83 of file class.ilObjMediaObject.php.
References ilMediaItem\deleteAllItemsOfMob(), ilObject\deleteMetaData(), ilObject\getId(), ilLoggerFactory\getLogger(), and getUsages().
Here is the call graph for this function:| ilObjMediaObject::duplicate | ( | ) |
Duplicate media object, return new media object.
Definition at line 1650 of file class.ilObjMediaObject.php.
References ilObject\getDescription(), ilObject\getId(), getMediaItems(), and ilObject\getTitle().
Referenced by ilDclMobRecordFieldModel\afterClone().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Escape property (e.g.
title, caption) to XSLT -> HTML output
Definition at line 692 of file class.ilObjMediaObject.php.
Referenced by getXML().
Here is the caller graph for this function:| 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
Definition at line 726 of file class.ilObjMediaObject.php.
References ilObject\getId(), ilFileUtils\getWebspaceDir(), IL_INST_ID, ilFileUtils\makeDir(), and ilFileUtils\rCopy().
Here is the call graph for this function:| ilObjMediaObject::exportXML | ( | ilXmlWriter | $a_xml_writer, |
| int | $a_inst = 0 |
||
| ) |
Definition at line 710 of file class.ilObjMediaObject.php.
References ilXmlWriter\appendXML(), getXML(), and IL_MODE_FULL.
Here is the call graph for this function:
|
static |
Fix filename of uploaded file.
Definition at line 1751 of file class.ilObjMediaObject.php.
References ilFileUtils\getASCIIFilename().
Referenced by ilObjMediaObjectGUI\setObjectPerCreationForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getDataDirectory | ( | ) |
Definition at line 1332 of file class.ilObjMediaObject.php.
References ilObject\getId(), and ilFileUtils\getWebspaceDir().
Referenced by getXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getExternalMetadata | ( | ) |
Definition at line 1837 of file class.ilObjMediaObject.php.
References Vendor\Package\$e, $url, ilExternalMediaAnalyzer\extractVimeoParameters(), ilObject\getId(), getMediaItem(), ilExternalMediaAnalyzer\getVimeoMetadata(), ilExternalMediaAnalyzer\getYoutubeMetadata(), ilExternalMediaAnalyzer\isVimeo(), ilObject\setDescription(), and ilObject\setTitle().
Referenced by ilObjMediaObjectGUI\setObjectPerCreationForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getFilesOfDirectory | ( | string | $dir_path = "" | ) |
Definition at line 440 of file class.ilObjMediaObject.php.
References ilObject\getId().
Referenced by ILIAS\COPage\PC\InteractiveImage\IIMManager\getOverlays().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getFullscreenSrc | ( | ) |
Definition at line 1899 of file class.ilObjMediaObject.php.
References getLocationSrc().
Here is the call graph for this function:| 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 1612 of file class.ilObjMediaObject.php.
References ilObject\_exists(), ilInternalLink\_extractObjIdOfTarget(), ilMapArea\_getIntLinks(), and getMediaItems().
Here is the call graph for this function:
|
protected |
Definition at line 1904 of file class.ilObjMediaObject.php.
References getMediaItem().
Referenced by getFullscreenSrc(), and getStandardSrc().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getMediaItem | ( | string | $a_purpose | ) |
get item for media purpose
Definition at line 199 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaObjectGUI\_getMediaInfoHTML(), ilMediaObjectsPlayerWrapperGUI\audio(), ilMediaObjectsPlayerWrapperGUI\getComponent(), getExternalMetadata(), getLocationSrc(), ilObjMediaCastGUI\getMediaItem(), getVideoPreviewPic(), hasPurposeItem(), ilMediaObjectsPlayerWrapperGUI\image(), ilPCImageMapEditorGUI\makeMapWorkCopy(), replaceMediaItemFromUpload(), ilMediaCreationGUI\saveUrl(), ilObjMediaCastGUI\showCastItemObject(), uploadVideoPreviewPic(), and ilMediaObjectsPlayerWrapperGUI\video().
Here is the caller graph for this function:| & ilObjMediaObject::getMediaItems | ( | ) |
Definition at line 191 of file class.ilObjMediaObject.php.
References $media_items.
Referenced by create(), duplicate(), getLinkedMediaObjects(), ilObjMediaCastGUI\getMediaItems(), getXML(), and update().
Here is the caller graph for this function:
|
static |
get mime type for file
Definition at line 1234 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaObjectGUI\assignFullscreenObject(), ilObjMediaObjectGUI\assignStandardObject(), ilKprimChoiceWizardInputGUI\checkUploads(), ilDclMobRecordFieldModel\parseValue(), ilNewsTimelineItemGUI\renderMedia(), ilNewsTimelineItemGUI\renderMediaModal(), ilObjMediaObjectGUI\savePropertiesObject(), ilMediaCreationGUI\saveUrl(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilNewsForContextBlockGUI\showNews(), ilPCInteractiveImageGUI\update(), and ilObjMediaCastGUI\updateMediaItem().
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(), and getMultiSrtUploadDir().
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 ilObject\getId().
Referenced by clearMultiSrtDirectory(), getMultiSrtFiles(), and uploadMultipleSubtitleFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getOriginID | ( | ) |
|
static |
Get's the repository object ID of a parent object, if possible see ilWebAccessChecker.
Definition at line 1006 of file class.ilObjMediaObject.php.
References $DIC, $id, ilObject\$type, ilPCQuestion\_getPageForQuestionId(), SurveyQuestion\_instanciateQuestion(), ilGlossaryTerm\_lookGlossaryID(), ilNewsItem\_lookupContextObjId(), ilLMObject\_lookupContObjID(), ilForum\_lookupObjIdForForumId(), SurveyQuestion\_lookupSurveyObjId(), ilObjTest\_lookupTestObjIdForQuestionId(), ilObject\_lookupType(), ilPortfolioPage\findPortfolioForPage(), ILIAS\Repository\int(), ilExSubmission\lookupExerciseIdForReturnedId(), ilWikiPage\lookupObjIdByPage(), ilPageObject\lookupParentId(), and ilForumPostDraft\newInstanceByDraftId().
Referenced by ilMobStakeholder\canBeAccessedByCurrentUser(), ilObjMediaObjectAccess\checkAccessMob(), and ilMediaObjectUsagesTableGUI\fillRow().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getSrtFiles | ( | bool | $vtt_only = false | ) |
Definition at line 1575 of file class.ilObjMediaObject.php.
References ilObject\getId().
Referenced by ilMobSubtitleTableGUI\__construct(), and getXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getStandardSrc | ( | ) |
Definition at line 1894 of file class.ilObjMediaObject.php.
References getLocationSrc().
Referenced by ilMediaObjectsPlayerWrapperGUI\audio(), ilNewsTimelineItemGUI\getMediaPath(), ilMediaObjectsPlayerWrapperGUI\image(), and ilMediaObjectsPlayerWrapperGUI\video().
Here is the call graph for this function:
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 904 of file class.ilObjMediaObject.php.
References ilObject\getId().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::getVideoPreviewPic | ( | bool | $a_filename_only = false | ) |
Definition at line 1717 of file class.ilObjMediaObject.php.
References _getDirectory(), ilObject\getId(), and getMediaItem().
Referenced by getXML(), and uploadVideoPreviewPic().
Here is the call graph for this function:
Here is the caller 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 457 of file class.ilObjMediaObject.php.
References $location, $user, escapeProperty(), ilExternalMediaAnalyzer\extractVimeoParameters(), getDataDirectory(), ilObject\getId(), getMediaItems(), getSrtFiles(), ilObject\getTitle(), ilObject\getType(), getVideoPreviewPic(), handleAmps(), IL_MODE_ALIAS, IL_MODE_FULL, IL_MODE_OUTPUT, ilUtil\secureUrl(), and ilWACSignedPath\signFile().
Referenced by exportXML(), and ilCOPageHTMLExport\renderMob().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::handleAmps | ( | string | $a_str | ) |
Replace "&" (if not an "&") with "&".
Definition at line 702 of file class.ilObjMediaObject.php.
Referenced by getXML().
Here is the caller graph for this function:
|
staticprotected |
| ilObjMediaObject::hasFullscreenItem | ( | ) |
Definition at line 235 of file class.ilObjMediaObject.php.
References hasPurposeItem().
Referenced by ilObjMediaObjectGUI\_getMediaInfoHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::hasPurposeItem | ( | string | $purpose | ) |
returns whether object has media item with specific purpose
Definition at line 243 of file class.ilObjMediaObject.php.
References getMediaItem().
Referenced by hasFullscreenItem().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::isAlias | ( | ) |
|
static |
Definition at line 1638 of file class.ilObjMediaObject.php.
References $DIC.
Referenced by ilPageObjectGUI\displayMedia(), ilCOPageHTMLExport\exportHTMLMOB(), 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 915 of file class.ilObjMediaObject.php.
References $DIC, $ilDB, $q, ilPageObject\_exists(), ilObjUser\_getUsersForClipboadObject(), and ilNewsItem\_lookupMediaObjectUsages().
Referenced by ilMobStakeholder\canBeAccessedByCurrentUser(), ilObjMediaObjectAccess\checkAccessMob(), ilPCMediaObject\deleteHistoryLowerEqualThan(), and ilLMObject\updateInternalLinks().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::makeThumbnail | ( | string | $source, |
| string | $thumbname | ||
| ) |
Make thumbnail.
Definition at line 1583 of file class.ilObjMediaObject.php.
References ilObject\getId().
Referenced by ILIAS\COPage\PC\InteractiveImage\IIMManager\handleOverlayUpload().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::modifyExportIdentifier | ( | string | $a_tag, |
| string | $a_param, | ||
| string | $a_value | ||
| ) |
Definition at line 736 of file class.ilObjMediaObject.php.
References ilUtil\insertInstIntoID().
Here is the call graph for this function:| ilObjMediaObject::read | ( | ) |
Definition at line 256 of file class.ilObjMediaObject.php.
References ilMediaItem\_getMediaItemsOfMOb().
Here is the call graph for this function:| ilObjMediaObject::removeAdditionalFile | ( | string | $a_file | ) |
Definition at line 1598 of file class.ilObjMediaObject.php.
References ilObject\getId().
Referenced by uploadVideoPreviewPic().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
References $media_items, and ilObject\getId().
Here is the call graph for this function:
|
static |
Definition at line 1828 of file class.ilObjMediaObject.php.
References ilFileUtils\renameExecutables(), and ilFileUtils\rRenameSuffix().
Here is the call graph for this function:| ilObjMediaObject::replaceMediaItemFromUpload | ( | string | $purpose, |
| UploadResult | $result, | ||
| string | $upload_hash = "" |
||
| ) |
Definition at line 1502 of file class.ilObjMediaObject.php.
References ilObject\getId(), getMediaItem(), and ILIAS\FileUpload\DTO\UploadResult\getName().
Here is the call graph for this function:| 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 757 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 326 of file class.ilObjMediaObject.php.
References ilObject\$app_event_handler, ilMediaItem\deleteAllItemsOfMob(), ilObject\getId(), getMediaItems(), ilAppEventHandler\raise(), and ilObject\updateMetaData().
Referenced by ilObjMediaObjectGUI\setObjectPerCreationForm().
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 1530 of file class.ilObjMediaObject.php.
References ilObject\getId().
Referenced by uploadSrtFile(), and uploadVideoPreviewPic().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::uploadMultipleSubtitleFile | ( | array | $a_file | ) |
Upload multi srt file.
Definition at line 1775 of file class.ilObjMediaObject.php.
References ilObject\$lng, ilFileUtils\delDir(), getMultiSrtUploadDir(), ilFileUtils\makeDirParents(), ilFileUtils\moveUploadedFile(), and ilLanguage\txt().
Here is the call graph for this function:| ilObjMediaObject::uploadSrtFile | ( | string | $a_tmp_name, |
| string | $a_language, | ||
| string | $a_mode = "move_uploaded" |
||
| ) |
Definition at line 1563 of file class.ilObjMediaObject.php.
References uploadAdditionalFile().
Here is the call graph for this function:| ilObjMediaObject::uploadVideoPreviewPic | ( | array | $a_prevpic | ) |
Definition at line 1677 of file class.ilObjMediaObject.php.
References $GLOBALS, ilObject\getId(), getMediaItem(), getVideoPreviewPic(), removeAdditionalFile(), and uploadAdditionalFile().
Here is the call graph for this function:| bool ilObjMediaObject::$contains_int_link |
Definition at line 46 of file class.ilObjMediaObject.php.
Referenced by containsIntLink().
|
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.
Referenced by isAlias().
|
protected |
Definition at line 40 of file class.ilObjMediaObject.php.
| array ilObjMediaObject::$media_items |
Definition at line 45 of file class.ilObjMediaObject.php.
Referenced by getMediaItems(), and removeMediaItem().
| string ilObjMediaObject::$origin_id |
Definition at line 44 of file class.ilObjMediaObject.php.
Referenced by getOriginID().
|
protected |
Definition at line 39 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 42 of file class.ilObjMediaObject.php.
Referenced by beforeCreateMetaData(), and getXML().
| const ilObjMediaObject::DEFAULT_PREVIEW_SIZE = 80 |
Definition at line 38 of file class.ilObjMediaObject.php.
Referenced by ILIAS\MediaObjects\Thumbs\ThumbsManager\createThumb(), and ILIAS\MediaObjects\MediaObjectManager\generatePreview().