|
ILIAS
release_8 Revision v8.24
|
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) | |
| update (bool $a_upload=false) | |
| createDirectory () | |
| Create file directory of media object. More... | |
| getFilesOfDirectory (string $a_subdir="") | |
| Get files of directory. More... | |
| getXML (int $a_mode=IL_MODE_FULL, int $a_inst=0, bool $a_sign_locals=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 () | |
| 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... | |
| uploadSrtFile (string $a_tmp_name, string $a_language, string $a_mode="move_uploaded") | |
| getSrtFiles () | |
| makeThumbnail (string $a_file, string $a_thumbname, string $a_format="png", int $a_size=80) | |
| 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 () | |
Public Member Functions inherited from ilObject | |
| __construct (int $id=0, bool $reference=true) | |
| 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 $desc) | |
| 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) |
| 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 | _getThumbnailDirectory (int $a_mob_id, string $a_mode="filesystem") |
| get directory for files of media object More... | |
| static | _lookupStandardItemPath (int $a_mob_id, bool $a_url_encode=false, bool $a_web=true) |
| Get path for standard item. 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 | _createThumbnailDirectory (int $a_obj_id) |
| Create thumbnail directory. 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) |
| Create new media object and update page in db and return new media object. More... | |
| static | getThumbnailPath (int $a_mob_id, string $a_thumbname) |
| static | getRestrictedFileTypes () |
| Get restricted file types (this is for the input form, this list will be empty, if "allowed list" is empty) More... | |
| static | getForbiddenFileTypes () |
| Get forbidden file types. More... | |
| static | getAllowedFileTypes () |
| Get allowed file types. More... | |
| 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 | _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 | |
| 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... | |
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 | |
| 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 |
| int | $id |
| bool | $referenced |
| 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 = "" |
| bool | $offline = false |
| string | $desc = "" |
| string | $long_desc = "" |
| int | $owner = 0 |
| string | $create_date = "" |
| string | $last_update = "" |
| string | $import_id = "" |
| bool | $register = false |
Definition at line 28 of file class.ilObjMediaObject.php.
| ilObjMediaObject::__construct | ( | int | $a_id = 0 | ) |
Definition at line 36 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 |
Create thumbnail directory.
Definition at line 451 of file class.ilObjMediaObject.php.
Referenced by ilMediaObjectDataSet\importRecord().
Here is the caller graph for this function:
|
static |
Definition at line 774 of file class.ilObjMediaObject.php.
References $ilDB.
Referenced by ilPageObject\delete().
Here is the caller graph for this function:
|
static |
Definition at line 1246 of file class.ilObjMediaObject.php.
References ilMediaImageUtil\getImageSize().
Referenced by ilObjMediaPoolGUI\createMediaFromUploadDir(), ilDclMobRecordFieldModel\parseValue(), and 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 51 of file class.ilObjMediaObject.php.
References ilObject\$id, and ilInternalLink\_extractObjIdOfTarget().
Referenced by ilInternalLink\_exists(), ilRTE\_getMediaObjects(), ilObjTest\addQTIMaterial(), assQuestion\addQTIMaterial(), ilObjForumGUI\createThread(), assQuestion\delete(), ilForumDraftsHistory\deleteMobs(), ilForumPostDraft\deleteMobsOfDraft(), ilObjForumGUI\deleteMobsOfDraft(), ilForum\deletePost(), ilObjTest\deleteTest(), ilTestExport\exportXHTMLMediaObjects(), ilQuestionpoolExport\exportXHTMLMediaObjects(), ilObjTest\exportXMLMediaObjects(), ilObjQuestionPool\exportXMLMediaObjects(), 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 363 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastAccess\_lookupDiskUsage(), ILIAS\MediaCast\BackgroundTasks\DownloadAllCollectFilesJob\collectMediaFiles(), ilPCInteractiveImageGUI\create(), createDirectory(), ilObjMediaPoolGUI\createMediaFromUploadDir(), delete(), ilMediaItem\determineDuration(), ilObjMediaCastGUI\determinePlaytimeObject(), duplicate(), ilPDNewsTableGUI\fillRow(), ilMediaItem\getDirectory(), getExternalMetadata(), ilBlogPostingGUI\getFirstMediaObjectAsTag(), ilObjMediaObjectGUI\getFullscreenSizeObject(), ilDclMobRecordRepresentation\getHTML(), getMultiSrtUploadDir(), ilMediaItem\getOriginalSize(), ilPortfolioTemplatePage\getPageDiskSize(), getSrtFiles(), ilObjMediaObjectGUI\getStandardSizeObject(), ilMediaObjectDataSet\getXmlRecord(), ilMediaObjectDataSet\importRecord(), ilPCMediaObject\modifyPageContentPostXsl(), ilDclMobRecordFieldModel\parseValue(), ilObjMediaObjectGUI\resizeImagesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilMediaCreationGUI\saveUrl(), and ilPCInteractiveImageGUI\update().
Here is the caller graph for this function:
|
static |
Definition at line 814 of file class.ilObjMediaObject.php.
References $ilDB.
Referenced by ilRTE\_cleanupMediaObjectUsage(), ilObjTest\addQTIMaterial(), assQuestion\addQTIMaterial(), ilPCMediaObject\afterPageUpdate(), assQuestion\copyXHTMLMediaObjectsOfQuestion(), ilObjForumGUI\createThread(), ilPageObject\delete(), SurveyQuestion\delete(), assQuestion\delete(), ilForumDraftsHistory\deleteMobs(), ilForumPostDraft\deleteMobsOfDraft(), ilObjForumGUI\deleteMobsOfDraft(), ilForum\deletePost(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilTestExport\exportXHTMLMediaObjects(), ilQuestionpoolExport\exportXHTMLMediaObjects(), ilPageObject\getLastUpdateOfIncludedElements(), ilLMMultiSrt\getMobIds(), ilMepMultiSrt\getMobIds(), ilSoapUtils\getMobsOfObject(), ilCOPageExporter\getXmlExportHeadDependencies(), ilPCMediaObject\modifyPageContentPostXsl(), ilObjForumGUI\publishDraftObject(), ilObjForumGUI\savePostObject(), ilForumXMLWriter\start(), assQuestion\syncXHTMLMediaObjectsOfQuestion(), assClozeTest\toJSON(), assErrorText\toJSON(), assImagemapQuestion\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 372 of file class.ilObjMediaObject.php.
|
static |
get directory for files of media object
Definition at line 389 of file class.ilObjMediaObject.php.
Referenced by delete(), and duplicate().
Here is the caller graph for this function:
|
static |
get directory for files of media object
Definition at line 380 of file class.ilObjMediaObject.php.
Referenced by ilMediaCastTableGUI\fillRow(), McstImageGalleryGUI\getHTML(), ilDclMobRecordRepresentation\getHTML(), ilNewsTimelineItemGUI\getMediaPath(), ilNewsForContextBlockGUI\getMediaPath(), and ILIAS\MediaCast\Video\VideoSequence\init().
Here is the caller graph for this function:
|
static |
Get path for item with specific purpose.
Definition at line 410 of file class.ilObjMediaObject.php.
Referenced by ilObjectFeedWriter\__construct(), and ilMediaCastTableGUI\fillRow().
Here is the caller graph for this function:
|
static |
Get path for standard item.
Definition at line 399 of file class.ilObjMediaObject.php.
|
static |
Remove usage of mob in another container.
Definition at line 882 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 1211 of file class.ilObjMediaObject.php.
Referenced by ilDclMobRecordFieldModel\parseValue(), ilObjMediaObjectGUI\resizeImagesObject(), and ilObjMediaObjectGUI\savePropertiesObject().
Here is the caller graph for this function:
|
static |
Create new media object and update page in db and return new media object.
Definition at line 1344 of file class.ilObjMediaObject.php.
Referenced by assClozeTestImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assTextSubsetImport\fromXML(), ilObjTest\fromXML(), 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 852 of file class.ilObjMediaObject.php.
Referenced by ilRTE\_cleanupMediaObjectUsage(), SurveyQuestion\copyXHTMLMediaObjectsOfQuestion(), assQuestion\copyXHTMLMediaObjectsOfQuestion(), ilObjForumGUI\createThread(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assTextSubsetImport\fromXML(), ilObjTest\fromXML(), ilForumAutoSaveAsyncDraftAction\handleMedia(), ilForumXMLParser\handlerEndTag(), ilDclMobRecordFieldModel\parseValue(), ilObjForumGUI\publishDraftObject(), ilForumUtil\saveMediaObjects(), assQuestion\syncXHTMLMediaObjectsOfQuestion(), and ilObjForumGUI\updateDraftObject().
Here is the caller graph for this function:| ilObjMediaObject::addMediaItem | ( | ilMediaItem | $a_item | ) |
Definition at line 181 of file class.ilObjMediaObject.php.
Referenced by ilMediaItem\_getMediaItemsOfMOb().
Here is the caller graph for this function:
|
protected |
Reimplemented from ilObject.
Definition at line 138 of file class.ilObjMediaObject.php.
References $ilUser, and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject.
Definition at line 171 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 112 of file class.ilObjMediaObject.php.
References $id, ilObject\_writeDescription(), ilObject\_writeTitle(), and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject.
Definition at line 154 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 1783 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 769 of file class.ilObjMediaObject.php.
| ilObjMediaObject::create | ( | bool | $a_create_meta_data = false, |
| bool | $a_save_media_items = true |
||
| ) |
Definition at line 281 of file class.ilObjMediaObject.php.
References $i, $id, and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilObjMediaObject::createDirectory | ( | ) |
Create file directory of media object.
| ilMediaObjectsException |
Definition at line 439 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 66 of file class.ilObjMediaObject.php.
References _getDirectory(), _getThumbnailDirectory(), ilFileUtils\delDir(), 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 1596 of file class.ilObjMediaObject.php.
References ILIAS\LTI\ToolProvider\$key, _getDirectory(), _getThumbnailDirectory(), ILIAS\Survey\Mode\getId(), and ilFileUtils\rCopy().
Here is the call graph for this function:
|
protected |
Escape property (e.g.
title, caption) to XSLT -> HTML output
Definition at line 694 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 728 of file class.ilObjMediaObject.php.
| ilObjMediaObject::exportXML | ( | ilXmlWriter | $a_xml_writer, |
| int | $a_inst = 0 |
||
| ) |
Definition at line 712 of file class.ilObjMediaObject.php.
|
static |
Fix filename of uploaded file.
Definition at line 1740 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaObjectGUI\savePropertiesObject().
Here is the caller graph for this function:
|
static |
Get allowed file types.
Definition at line 1567 of file class.ilObjMediaObject.php.
| ilObjMediaObject::getDataDirectory | ( | ) |
Definition at line 1336 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 1826 of file class.ilObjMediaObject.php.
References Vendor\Package\$e, $url, _getDirectory(), ilExternalMediaAnalyzer\extractVimeoParameters(), ILIAS\Survey\Mode\getId(), 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 | $a_subdir = "" | ) |
Get files of directory.
Definition at line 461 of file class.ilObjMediaObject.php.
|
static |
Get forbidden file types.
Definition at line 1550 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaObjectGUI\initForm().
Here is the caller 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 1510 of file class.ilObjMediaObject.php.
| ilObjMediaObject::getMediaItem | ( | string | $a_purpose | ) |
get item for media purpose
Definition at line 195 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\determinePlaytimeObject(), ilObjMediaCastGUI\getMediaItem(), and ilObjMediaCastGUI\updateCastItemObject().
Here is the caller graph for this function:| & ilObjMediaObject::getMediaItems | ( | ) |
Definition at line 187 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 1238 of file class.ilObjMediaObject.php.
Referenced by ilExAssignmentGUI\addFiles(), ilKprimChoiceWizardInputGUI\checkUploads(), ilPCInteractiveImageGUI\create(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilPublicUserProfileGUI\deliverVCard(), ilDclMobRecordFieldModel\parseValue(), ilNewsTimelineItemGUI\renderMedia(), ilNewsTimelineItemGUI\renderMediaModal(), ilObjMediaObjectGUI\savePropertiesObject(), ilMediaCreationGUI\saveUrl(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), ilNewsForContextBlockGUI\showNews(), ilPCInteractiveImageGUI\update(), and ilFSStorageExercise\uploadFile().
Here is the caller graph for this function:| ilObjMediaObject::getMultiSrtFiles | ( | ) |
Get all srt files of srt multi upload.
Definition at line 1791 of file class.ilObjMediaObject.php.
References $i, $lang, ilMDLanguageItem\_getPossibleLanguageCodes(), and ilFileUtils\getDir().
Here is the call graph for this function:| ilObjMediaObject::getMultiSrtUploadDir | ( | ) |
Get directory for multi srt upload.
Definition at line 1755 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 276 of file class.ilObjMediaObject.php.
|
static |
Get's the repository object ID of a parent object, if possible see ilWebAccessChecker.
Definition at line 1008 of file class.ilObjMediaObject.php.
References $type.
Referenced by ilObjMediaObjectAccess\checkAccessMob(), and ilMediaObjectUsagesTableGUI\fillRow().
Here is the caller graph for this function:
|
static |
Get restricted file types (this is for the input form, this list will be empty, if "allowed list" is empty)
Definition at line 1540 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaObjectGUI\initForm().
Here is the caller graph for this function:| ilObjMediaObject::getSrtFiles | ( | ) |
Definition at line 1430 of file class.ilObjMediaObject.php.
References $i, $name, _getDirectory(), ilFileUtils\getDir(), and ILIAS\Survey\Mode\getId().
Referenced by ilMobSubtitleTableGUI\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1487 of file class.ilObjMediaObject.php.
Referenced by ilPCIIMOverlaysTableGUI\fillRow().
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 907 of file class.ilObjMediaObject.php.
| ilObjMediaObject::getVideoPreviewPic | ( | bool | $a_filename_only = false | ) |
Definition at line 1718 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\extractPreviewImageObject(), and ilObjMediaCastGUI\updateCastItemObject().
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 |
||
| ) |
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 491 of file class.ilObjMediaObject.php.
References $i, $ilUser, $location, $name, $xml, ILIAS\Survey\Mode\getId(), 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 704 of file class.ilObjMediaObject.php.
|
staticprotected |
| ilObjMediaObject::hasFullscreenItem | ( | ) |
Definition at line 231 of file class.ilObjMediaObject.php.
| ilObjMediaObject::hasPurposeItem | ( | string | $purpose | ) |
returns whether object has media item with specific purpose
Definition at line 239 of file class.ilObjMediaObject.php.
| ilObjMediaObject::isAlias | ( | ) |
Definition at line 263 of file class.ilObjMediaObject.php.
|
static |
Definition at line 1581 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 918 of file class.ilObjMediaObject.php.
Referenced by ilLMObject\updateInternalLinks().
Here is the caller graph for this function:| ilObjMediaObject::makeThumbnail | ( | string | $a_file, |
| string | $a_thumbname, | ||
| string | $a_format = "png", |
||
| int | $a_size = 80 |
||
| ) |
Make thumbnail.
Definition at line 1457 of file class.ilObjMediaObject.php.
| ilObjMediaObject::modifyExportIdentifier | ( | string | $a_tag, |
| string | $a_param, | ||
| string | $a_value | ||
| ) |
Definition at line 738 of file class.ilObjMediaObject.php.
References ilUtil\insertInstIntoID().
Here is the call graph for this function:| ilObjMediaObject::read | ( | ) |
Reimplemented from ilObject.
Definition at line 252 of file class.ilObjMediaObject.php.
References ilMediaItem\_getMediaItemsOfMOb().
Here is the call graph for this function:| ilObjMediaObject::removeAdditionalFile | ( | string | $a_file | ) |
Definition at line 1495 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\updateCastItemObject().
Here is the caller graph for this function:| ilObjMediaObject::removeAllMediaItems | ( | ) |
Definition at line 226 of file class.ilObjMediaObject.php.
| ilObjMediaObject::removeMediaItem | ( | string | $a_purpose | ) |
Definition at line 206 of file class.ilObjMediaObject.php.
References ILIAS\LTI\ToolProvider\$key.
Referenced by ilObjMediaCastGUI\updateCastItemObject().
Here is the caller graph for this function:
|
static |
Definition at line 1817 of file class.ilObjMediaObject.php.
References ilFileUtils\rRenameSuffix().
Referenced by ilMediaObjectDataSet\importRecord(), and ilObjMediaObjectGUI\savePropertiesObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjMediaObject::setAlias | ( | bool | $a_is_alias | ) |
Definition at line 258 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 759 of file class.ilObjMediaObject.php.
| ilObjMediaObject::setOriginID | ( | string | $a_id | ) |
Definition at line 271 of file class.ilObjMediaObject.php.
| ilObjMediaObject::update | ( | bool | $a_upload = false | ) |
Definition at line 313 of file class.ilObjMediaObject.php.
References ILIAS\LTI\ToolProvider\$key, 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 1397 of file class.ilObjMediaObject.php.
| ilObjMediaObject::uploadMultipleSubtitleFile | ( | array | $a_file | ) |
Upload multi srt file.
Definition at line 1764 of file class.ilObjMediaObject.php.
References $lng.
| ilObjMediaObject::uploadSrtFile | ( | string | $a_tmp_name, |
| string | $a_language, | ||
| string | $a_mode = "move_uploaded" |
||
| ) |
Definition at line 1418 of file class.ilObjMediaObject.php.
| ilObjMediaObject::uploadVideoPreviewPic | ( | array | $a_prevpic | ) |
Definition at line 1628 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\updateCastItemObject().
Here is the caller graph for this function:| bool ilObjMediaObject::$contains_int_link |
Definition at line 34 of file class.ilObjMediaObject.php.
| bool ilObjMediaObject::$is_alias |
Definition at line 31 of file class.ilObjMediaObject.php.
| array ilObjMediaObject::$media_items |
Definition at line 33 of file class.ilObjMediaObject.php.
| string ilObjMediaObject::$origin_id |
Definition at line 32 of file class.ilObjMediaObject.php.
|
protected |
Definition at line 30 of file class.ilObjMediaObject.php.