ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilObjMediaObject. More...
Public Member Functions | |
ilObjMediaObject ($a_id=0) | |
Constructor public. | |
setRefId () | |
getRefId () | |
get reference id public | |
putInTree () | |
createReference () | |
creates reference for object | |
setTitle ($a_title) | |
set object title | |
getTitle () | |
get object title public | |
delete () | |
delete media object | |
getDescription () | |
get description of media object | |
setDescription ($a_description) | |
set description of media object | |
MDUpdateListener ($a_element) | |
Meta data update listener. | |
createMetaData () | |
create meta data entry | |
updateMetaData () | |
update meta data entry | |
deleteMetaData () | |
delete meta data entry | |
addMediaItem ($a_item) | |
add media item to media object | |
& | getMediaItems () |
get all media items | |
& | getMediaItem ($a_purpose) |
get item for media purpose | |
removeMediaItem ($a_purpose) | |
removeAllMediaItems () | |
remove all media items | |
getMediaItemNr ($a_purpose) | |
hasFullscreenItem () | |
hasPurposeItem ($purpose) | |
returns wether object has media item with specific purpose | |
read () | |
read media object data from db | |
setId ($a_id) | |
set id | |
getId () | |
get object id public | |
setAlias ($a_is_alias) | |
set wether page object is an alias | |
isAlias () | |
setOriginID ($a_id) | |
getOriginID () | |
getImportId () | |
get import id | |
setImportId ($a_id) | |
set import id | |
create ($a_create_meta_data=false, $a_save_media_items=true) | |
create media object in db | |
update ($a_upload=false) | |
update media object in db | |
_getDirectory ($a_mob_id) | |
get directory for files of media object (static) | |
_getURL ($a_mob_id) | |
get directory for files of media object (static) | |
_getThumbnailDirectory ($a_mob_id, $a_mode="filesystem") | |
get directory for files of media object (static) | |
createDirectory () | |
Create file directory of media object. | |
_createThumbnailDirectory ($a_obj_id) | |
Create thumbnail directory. | |
getFilesOfDirectory ($a_subdir="") | |
Get files of directory. | |
getXML ($a_mode=IL_MODE_FULL, $a_inst=0) | |
get MediaObject XLM Tag | |
handleAmps ($a_str) | |
Replace "&" (if not an "&") with "&". | |
exportXML (&$a_xml_writer, $a_inst=0) | |
export XML | |
exportFiles ($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 | |
exportMediaFullscreen ($a_target_dir, $pg_obj) | |
modifyExportIdentifier ($a_tag, $a_param, $a_value) | |
setContainsIntLink ($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) | |
containsIntLink () | |
returns true, if mob was marked as containing an intern link (via setContainsIntLink) (this method should only be called by the import parser) | |
_deleteAllUsages ($a_type, $a_id, $a_usage_hist_nr=0, $a_lang="-") | |
static | |
_getMobsOfObject ($a_type, $a_id, $a_usage_hist_nr=0, $a_lang="-") | |
get mobs of object | |
_saveUsage ($a_mob_id, $a_type, $a_id, $a_usage_hist_nr=0, $a_lang="-") | |
Save usage of mob within another container (e.g. | |
_removeUsage ($a_mob_id, $a_type, $a_id, $a_usage_hist_nr=0, $a_lang="-") | |
Remove usage of mob in another container. | |
getUsages ($a_include_history=true) | |
get all usages of current media object | |
lookupUsages ($a_id, $a_include_history=true) | |
Lookup usages of media object. | |
getParentObjectIdForUsage ($a_usage, $a_include_all_access_obj_ids=false) | |
Get's the repository object ID of a parent object, if possible. | |
_resizeImage ($a_file, $a_width, $a_height, $a_constrain_prop=false) | |
resize image and return new image file ("_width_height" string appended) | |
getDataDirectory () | |
& | _saveTempFileAsMediaObject ($name, $tmp_name, $upload=TRUE) |
Create new media object and update page in db and return new media object. | |
uploadAdditionalFile ($a_name, $tmp_name, $a_subdir="") | |
Create new media object and update page in db and return new media object. | |
uploadSrtFile ($a_tmp_name, $a_language) | |
Upload srt file. | |
getSrtFiles () | |
Get srt files. | |
makeThumbnail ($a_file, $a_thumbname, $a_format="png", $a_size="80") | |
Make thumbnail. | |
removeAdditionalFile ($a_file) | |
Remove additional file. | |
getLinkedMediaObjects ($a_ignore="") | |
Get all media objects linked in map areas of this media object. | |
duplicate () | |
Duplicate media object, return new media object. | |
uploadVideoPreviewPic ($a_prevpic) | |
Upload video preview picture. | |
generatePreviewPic ($a_width, $a_height) | |
Upload video preview picture. | |
getVideoPreviewPic ($a_filename_only=false) | |
Get video preview pic. | |
Public Member Functions inherited from ilObject | |
ilObject ($a_id=0, $a_reference=true) | |
Constructor public. | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) | |
read ($a_force_db=false) | |
read object data from db into object | |
setRefId ($a_id) | |
set reference id public | |
getType () | |
get object type public | |
setType ($a_type) | |
set object type public | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions | |
getUntranslatedTitle () | |
get untranslated object title public | |
getLongDescription () | |
get object long description (stored in object_description) | |
getOwner () | |
get object owner | |
getOwnerName () | |
_lookupOwnerName ($a_owner_id) | |
lookup owner name for owner id | |
setOwner ($a_owner) | |
set object owner | |
getCreateDate () | |
get create date public | |
getLastUpdateDate () | |
get last update date public | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. | |
setObjDataRecord ($a_record) | |
set object_data record (note: this method should only be called from the ilObjectFactory class) | |
create () | |
create | |
update () | |
update object in db | |
updateOwner () | |
update owner of object in db | |
_getIdForImportId ($a_import_id) | |
get current object id for import id (static) | |
_lookupOwner ($a_id) | |
lookup object owner | |
_lookupLastUpdate ($a_id, $a_as_string=false) | |
lookup last update | |
_getLastUpdateOfObjects ($a_objs) | |
Get last update for a set of media objects. | |
_setDeletedDate ($a_ref_id) | |
only called in ilTree::saveSubTree | |
_resetDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_lookupDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_writeTitle ($a_obj_id, $a_title) | |
write title to db (static) | |
_writeDescription ($a_obj_id, $a_desc) | |
write description to db (static) | |
_writeImportId ($a_obj_id, $a_import_id) | |
write import id to db (static) | |
_isInTrash ($a_ref_id) | |
checks wether object is in trash | |
_hasUntrashedReference ($a_obj_id) | |
checks wether an object has at least one reference that is not in trash | |
_getObjectsDataForType ($a_type, $a_omit_trash=false) | |
get all objects of a certain type | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? | |
setPermissions ($a_parent_ref) | |
set permissions of object | |
countReferences () | |
count references of object | |
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 If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public | |
createRoleFolder () | |
creates a local role folder | |
applyDidacticTemplate ($a_tpl_id) | |
Apply template. | |
notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0) | |
notifys an object about an event occured Based on the event passed, each object may decide how it reacts. | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
cloneObject ($a_target_id, $a_copy_id=0, $a_omit_tree=false) | |
Clone object permissions, put in tree ... | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. | |
cloneMetaData ($target_obj) | |
Copy meta data. | |
_lookupCreationDate ($a_id) | |
Lookup creation date. |
Static Public Member Functions | |
static | _exists ($a_id) |
checks wether a lm content object with specified id exists or not | |
static | _lookupStandardItemPath ($a_mob_id, $a_url_encode=false, $a_web=true) |
Get path for standard item. | |
static | _lookupItemPath ($a_mob_id, $a_url_encode=false, $a_web=true, $a_purpose="") |
Get path for item with specific purpose. | |
static | getMimeType ($a_file) |
get mime type for file | |
static | _determineWidthHeight ($a_def_width, $a_def_height, $a_format, $a_type, $a_file, $a_reference, $a_constrain_proportions, $a_use_original, $a_user_width, $a_user_height) |
Determine width and height. | |
static | _getSimpleMimeTypes () |
Get simple mime types that deactivate parameter property files tab in ILIAS. | |
static | _useAutoStartParameterOnly ($a_loc, $a_format) |
Check whether only autostart parameter should be supported (instead of parameters input field. | |
static | getThumbnailPath ($a_mob_id, $a_thumbname) |
Get thumbnail path. | |
static | getRestrictedFileTypes () |
Get restricted file types. | |
Static Public Member Functions inherited from ilObject | |
static | _lookupObjIdByImportId ($a_import_id) |
static | _getAllReferences ($a_id) |
get all reference ids of object | |
static | _lookupTitle ($a_id) |
lookup object title | |
static | _getIdsForTitle ($title, $type= '', $partialmatch=false) |
static | _lookupDescription ($a_id) |
lookup object description | |
static | _lookupObjId ($a_id) |
static | setDeletedDates ($a_ref_ids) |
Set deleted date type $ilDB. | |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type | |
static | _lookupObjectId ($a_ref_id) |
lookup object id | |
static | _exists ($a_id, $a_reference=false, $a_type=null) |
checks if an object exists in object_data | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. | |
static | _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true) |
Prepare copy wizard object selection. | |
static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. | |
static | getLongDescriptions (array $a_obj_ids) |
Get long description data. | |
static | getAllOwnedRepositoryObjects ($a_user_id) |
Get all ids of objects user owns. | |
static | hasAutoRating ($a_type, $a_ref_id) |
Check if auto rating is active for parent group/course. |
Data Fields | |
$is_alias | |
$origin_id | |
$id | |
$media_items | |
$contains_int_link | |
Data Fields inherited from ilObject | |
const | TITLE_LENGTH = 255 |
max length of object title | |
const | DESC_LENGTH = 128 |
$ilias | |
$lng | |
$id | |
$ref_id | |
$type | |
$title | |
$untranslatedTitle | |
$desc | |
$long_desc | |
$owner | |
$create_date | |
$last_update | |
$import_id | |
$register = false | |
$referenced | |
$objectList | |
$max_title | |
$max_desc | |
$add_dots | |
$obj_data_record | |
object_data record |
Static Protected Member Functions | |
static | handleQuotaUpdate (ilObjMediaObject $a_mob) |
Class ilObjMediaObject.
Todo: this class must be integrated with group/folder handling
Definition at line 26 of file class.ilObjMediaObject.php.
ilObjMediaObject::_createThumbnailDirectory | ( | $a_obj_id | ) |
Create thumbnail directory.
Definition at line 611 of file class.ilObjMediaObject.php.
References createDirectory(), and ilUtil\getWebspaceDir().
Referenced by duplicate(), ilMediaItem\getThumbnailTarget(), ilMediaObjectDataSet\importRecord(), and makeThumbnail().
ilObjMediaObject::_deleteAllUsages | ( | $a_type, | |
$a_id, | |||
$a_usage_hist_nr = 0 , |
|||
$a_lang = "-" |
|||
) |
static
Definition at line 984 of file class.ilObjMediaObject.php.
References $row, and handleQuotaUpdate().
Referenced by ilPCMediaObject\beforePageDelete(), ilPageObject\delete(), and ilPCMediaObject\saveMobUsage().
|
static |
Determine width and height.
Definition at line 1448 of file class.ilObjMediaObject.php.
References ilObject\$lng, $size, and ilUtil\deducibleSize().
Referenced by ilObjMediaPoolGUI\createMediaFromUploadDir(), ilDataCollectionDatatype\parseValue(), ilObjMediaObjectGUI\savePropertiesObject(), and ilObjMediaObjectGUI\setObjectPerCreationForm().
|
static |
checks wether a lm content object with specified id exists or not
int | $id | id |
Definition at line 84 of file class.ilObjMediaObject.php.
References ilInternalLink\_extractObjIdOfTarget().
Referenced by ilRTE\_getMediaObjects(), ilRTE\_replaceMediaObjectImageSrc(), assQuestion\addQTIMaterial(), ilObjTest\addQTIMaterial(), assQuestion\delete(), ilForum\deletePost(), ilObjTest\deleteTest(), ilQuestionpoolExport\exportXHTMLMediaObjects(), ilTestExport\exportXHTMLMediaObjects(), ilObjQuestionPool\exportXMLMediaObjects(), ilObjTest\exportXMLMediaObjects(), ilObjPaymentSettingsGUI\saveStatutoryRegulationsObject(), ilForumXMLWriter\start(), and ilObjExerciseGUI\updateAssignmentTextObject().
ilObjMediaObject::_getDirectory | ( | $a_mob_id | ) |
get directory for files of media object (static)
int | $a_mob_id | media object id |
Definition at line 538 of file class.ilObjMediaObject.php.
References ilUtil\getWebspaceDir().
Referenced by ilObjMediaObjectGUI\_getMediaInfoHTML(), ilObjMediaCastAccess\_lookupDiskUsage(), _saveTempFileAsMediaObject(), ilObjMediaCastGUI\convertFileObject(), ilPCInteractiveImageGUI\create(), createDirectory(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilSCORM13Package\dbImportSco(), delete(), ilNewsItem\deliverMobFile(), ilObjMediaCastGUI\determinePlaytimeObject(), duplicate(), ilObjMediaCastGUI\extractPreviewImageObject(), ilPDNewsTableGUI\fillRow(), generatePreviewPic(), ilMediaItem\getDirectory(), getFilesOfDirectory(), ilObjMediaObjectGUI\getFullscreenSizeObject(), ilMediaItem\getOriginalSize(), ilPortfolioTemplatePage\getPageDiskSize(), getSrtFiles(), ilObjMediaObjectGUI\getStandardSizeObject(), getVideoPreviewPic(), ilMediaObjectDataSet\getXmlRecord(), ilMediaObjectDataSet\importRecord(), makeThumbnail(), ilDataCollectionDatatype\parseHTML(), ilDataCollectionDatatype\parseValue(), removeAdditionalFile(), ilObjMediaObjectGUI\resizeImagesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilPCInteractiveImageGUI\update(), ilObjMediaCastGUI\updateMediaItem(), and uploadAdditionalFile().
ilObjMediaObject::_getMobsOfObject | ( | $a_type, | |
$a_id, | |||
$a_usage_hist_nr = 0 , |
|||
$a_lang = "-" |
|||
) |
get mobs of object
Definition at line 1021 of file class.ilObjMediaObject.php.
References $mobs, and ilObject\_lookupType().
Referenced by ilRTE\_cleanupMediaObjectUsage(), SurveyQuestion\addMaterialTag(), ilObjSurvey\addMaterialTag(), assQuestion\addQTIMaterial(), ilObjTest\addQTIMaterial(), ilPCMediaObject\afterPageUpdate(), ilPCMediaObject\beforePageDelete(), ilCOPageHTMLExport\collectPageElements(), SurveyQuestion\copyXHTMLMediaObjectsOfQuestion(), assQuestion\copyXHTMLMediaObjectsOfQuestion(), SurveyQuestion\delete(), assQuestion\delete(), ilForum\deletePost(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilObjGlossary\exportHTMLGlossaryTerms(), ilObjContentObject\exportHTMLGlossaryTerms(), ilObjContentObject\exportHTMLPages(), ilSurveyExport\exportXHTMLMediaObjects(), ilQuestionpoolExport\exportXHTMLMediaObjects(), ilTestExport\exportXHTMLMediaObjects(), ilPageObject\getLastUpdateOfIncludedElements(), ilSoapUtils\getMobsOfObject(), ilCOPageExporter\getXmlExportHeadDependencies(), ilObjPaymentSettingsGUI\saveStatutoryRegulationsObject(), ilForumXMLWriter\start(), assQuestion\syncXHTMLMediaObjectsOfQuestion(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assImagemapQuestion\toJSON(), assSingleChoice\toJSON(), assMultipleChoice\toJSON(), assOrderingQuestion\toJSON(), assErrorText\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
|
static |
Get simple mime types that deactivate parameter property files tab in ILIAS.
Definition at line 1528 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaObjectGUI\getTabs(), ilPCMediaObjectGUI\initAliasForm(), ilObjMediaObjectGUI\initForm(), and ilObjMediaObjectGUI\savePropertiesObject().
ilObjMediaObject::_getThumbnailDirectory | ( | $a_mob_id, | |
$a_mode = "filesystem" |
|||
) |
get directory for files of media object (static)
int | $a_mob_id | media object id |
Definition at line 558 of file class.ilObjMediaObject.php.
References ilUtil\getWebspaceDir().
Referenced by delete(), duplicate(), ilMediaItem\getThumbnailDirectory(), getThumbnailPath(), and makeThumbnail().
ilObjMediaObject::_getURL | ( | $a_mob_id | ) |
get directory for files of media object (static)
int | $a_mob_id | media object id |
Definition at line 548 of file class.ilObjMediaObject.php.
References ilUtil\getHtmlPath(), and ilUtil\getWebspaceDir().
Referenced by ilMediaCastTableGUI\fillRow(), ilObjMediaCastGUI\showGallery(), and ilNewsForContextBlockGUI\showNews().
|
static |
Get path for item with specific purpose.
int | $a_mob_id | media object id |
Definition at line 579 of file class.ilObjMediaObject.php.
References $location, $path, and ilMediaItem\_lookupLocationForMobId().
Referenced by _lookupStandardItemPath(), ilMediaCastTableGUI\fillRow(), ilDataCollectionRecordEditGUI\getValues(), and ilObjectFeedWriter\ilObjectFeedWriter().
|
static |
Get path for standard item.
int | $a_mob_id | media object id |
Definition at line 568 of file class.ilObjMediaObject.php.
References _lookupItemPath().
Referenced by ilSCORM2004ScoGUI\getExportResources().
ilObjMediaObject::_removeUsage | ( | $a_mob_id, | |
$a_type, | |||
$a_id, | |||
$a_usage_hist_nr = 0 , |
|||
$a_lang = "-" |
|||
) |
Remove usage of mob in another container.
Definition at line 1072 of file class.ilObjMediaObject.php.
References handleQuotaUpdate().
Referenced by ilRTE\_cleanupMediaObjectUsage(), SurveyQuestion\delete(), assQuestion\delete(), ilForum\deletePost(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilObjPaymentSettingsGUI\saveStatutoryRegulationsObject(), and ilObjExerciseGUI\updateAssignmentTextObject().
ilObjMediaObject::_resizeImage | ( | $a_file, | |
$a_width, | |||
$a_height, | |||
$a_constrain_prop = false |
|||
) |
resize image and return new image file ("_width_height" string appended)
string | $a_file | full file name |
int | $a_width | width |
int | $a_height | height |
Definition at line 1416 of file class.ilObjMediaObject.php.
References $location, and ilUtil\resizeImage().
Referenced by ilDataCollectionDatatype\parseValue(), ilObjMediaObjectGUI\resizeImagesObject(), ilObjMediaObjectGUI\savePropertiesObject(), and ilObjMediaObjectGUI\setObjectPerCreationForm().
& ilObjMediaObject::_saveTempFileAsMediaObject | ( | $name, | |
$tmp_name, | |||
$upload = TRUE |
|||
) |
Create new media object and update page in db and return new media object.
Definition at line 1566 of file class.ilObjMediaObject.php.
References $file, $location, $size, _getDirectory(), ilUtil\deducibleSize(), getMimeType(), ilObjMediaObject(), ilUtil\moveUploadedFile(), and ilUtil\renameExecutables().
Referenced by assErrorTextImport\fromXML(), assFlashQuestionImport\fromXML(), assFileUploadImport\fromXML(), assFormulaQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assTextQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assTextSubsetImport\fromXML(), assMultipleChoiceImport\fromXML(), assClozeTestImport\fromXML(), assMatchingQuestionImport\fromXML(), ilObjTest\fromXML(), ilForumXMLParser\handlerEndTag(), ilObjSurvey\importObject(), ilSurveyImporter\importXmlRepresentation(), and ilSoapUtils\saveTempFileAsMediaObject().
ilObjMediaObject::_saveUsage | ( | $a_mob_id, | |
$a_type, | |||
$a_id, | |||
$a_usage_hist_nr = 0 , |
|||
$a_lang = "-" |
|||
) |
Save usage of mob within another container (e.g.
page)
Definition at line 1046 of file class.ilObjMediaObject.php.
References handleQuotaUpdate().
Referenced by ilRTE\_cleanupMediaObjectUsage(), SurveyQuestion\copyXHTMLMediaObjectsOfQuestion(), assQuestion\copyXHTMLMediaObjectsOfQuestion(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assJavaAppletImport\fromXML(), assTextQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assMatchingQuestionImport\fromXML(), ilObjTest\fromXML(), ilForumXMLParser\handlerEndTag(), ilObjSurvey\importObject(), ilSurveyImporter\importXmlRepresentation(), ilDataCollectionDatatype\parseValue(), ilPCMediaObject\saveMobUsage(), ilObjPaymentSettingsGUI\saveStatutoryRegulationsObject(), assQuestion\syncXHTMLMediaObjectsOfQuestion(), and ilObjExerciseGUI\updateAssignmentTextObject().
|
static |
Check whether only autostart parameter should be supported (instead of parameters input field.
This should be the same behaviour as mp3/flv in page.xsl
Definition at line 1545 of file class.ilObjMediaObject.php.
Referenced by ilPCMediaObjectGUI\getAliasValues(), ilObjMediaObjectGUI\getValues(), ilPCMediaObjectGUI\initAliasForm(), ilObjMediaObjectGUI\initForm(), ilPCMediaObjectGUI\saveAliasProperties(), and ilObjMediaObjectGUI\savePropertiesObject().
ilObjMediaObject::addMediaItem | ( | $a_item | ) |
add media item to media object
object | $a_item | media item object |
Definition at line 257 of file class.ilObjMediaObject.php.
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 976 of file class.ilObjMediaObject.php.
References $contains_int_link.
ilObjMediaObject::create | ( | $a_create_meta_data = false , |
|
$a_save_media_items = true |
|||
) |
create media object in db
Definition at line 435 of file class.ilObjMediaObject.php.
References $media_items, ilObject\create(), createMetaData(), getId(), getMediaItems(), and handleQuotaUpdate().
ilObjMediaObject::createDirectory | ( | ) |
Create file directory of media object.
Definition at line 603 of file class.ilObjMediaObject.php.
References _getDirectory(), and getId().
Referenced by _createThumbnailDirectory().
ilObjMediaObject::createMetaData | ( | ) |
create meta data entry
Reimplemented from ilObject.
Definition at line 197 of file class.ilObjMediaObject.php.
References $ilUser, getDescription(), getId(), getTitle(), and ilObject\getType().
Referenced by create().
ilObjMediaObject::createReference | ( | ) |
creates reference for object
public
Reimplemented from ilObject.
Definition at line 62 of file class.ilObjMediaObject.php.
ilObjMediaObject::delete | ( | ) |
delete media object
Reimplemented from ilObject.
Definition at line 100 of file class.ilObjMediaObject.php.
References _getDirectory(), _getThumbnailDirectory(), ilUtil\delDir(), ilMediaItem\deleteAllItemsOfMob(), deleteMetaData(), getId(), getUsages(), and handleQuotaUpdate().
ilObjMediaObject::deleteMetaData | ( | ) |
delete meta data entry
Reimplemented from ilObject.
Definition at line 243 of file class.ilObjMediaObject.php.
References getId(), and ilObject\getType().
Referenced by delete().
ilObjMediaObject::duplicate | ( | ) |
Duplicate media object, return new media object.
Definition at line 1782 of file class.ilObjMediaObject.php.
References _createThumbnailDirectory(), _getDirectory(), _getThumbnailDirectory(), getDescription(), getId(), getMediaItems(), getTitle(), ilObjMediaObject(), and ilUtil\rCopy().
ilObjMediaObject::exportFiles | ( | $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
string | $a_target_dir | target directory |
Definition at line 878 of file class.ilObjMediaObject.php.
References getId(), ilUtil\getWebspaceDir(), ilUtil\makeDir(), and ilUtil\rCopy().
ilObjMediaObject::exportMediaFullscreen | ( | $a_target_dir, | |
$pg_obj | |||
) |
Definition at line 888 of file class.ilObjMediaObject.php.
References $_GET, $tpl, ilMediaItem\_getMapAreasIntLinks(), ilPlayerUtil\getFlashVideoPlayerDirectory(), getId(), getXML(), IL_MODE_OUTPUT, ilUtil\makeDir(), xslt_create(), xslt_free(), and xslt_process().
ilObjMediaObject::exportXML | ( | & | $a_xml_writer, |
$a_inst = 0 |
|||
) |
export XML
Definition at line 865 of file class.ilObjMediaObject.php.
References getXML(), and IL_MODE_FULL.
ilObjMediaObject::generatePreviewPic | ( | $a_width, | |
$a_height | |||
) |
Upload video preview picture.
@return |
Definition at line 1834 of file class.ilObjMediaObject.php.
References $file, _getDirectory(), ilUtil\convertImage(), ilUtil\escapeShellArg(), ilUtil\execConvert(), getId(), getMediaItem(), and ilUtil\isConvertVersionAtLeast().
Referenced by ilObjMediaCastGUI\saveCastItemObject().
ilObjMediaObject::getDataDirectory | ( | ) |
Definition at line 1534 of file class.ilObjMediaObject.php.
References getId(), and ilUtil\getWebspaceDir().
Referenced by handleQuotaUpdate().
ilObjMediaObject::getDescription | ( | ) |
get description of media object
Reimplemented from ilObject.
Definition at line 137 of file class.ilObjMediaObject.php.
Referenced by createMetaData(), duplicate(), and updateMetaData().
ilObjMediaObject::getFilesOfDirectory | ( | $a_subdir = "" | ) |
Get files of directory.
string | $a_subdir | subdirectry |
Definition at line 623 of file class.ilObjMediaObject.php.
References _getDirectory(), ilUtil\getDir(), and getId().
ilObjMediaObject::getId | ( | ) |
get object id public
Reimplemented from ilObject.
Definition at line 384 of file class.ilObjMediaObject.php.
References $id.
Referenced by create(), createDirectory(), createMetaData(), delete(), deleteMetaData(), duplicate(), exportFiles(), exportMediaFullscreen(), generatePreviewPic(), getDataDirectory(), getFilesOfDirectory(), getSrtFiles(), getUsages(), getVideoPreviewPic(), getXML(), handleQuotaUpdate(), makeThumbnail(), MDUpdateListener(), removeAdditionalFile(), removeMediaItem(), update(), updateMetaData(), and uploadAdditionalFile().
ilObjMediaObject::getImportId | ( | ) |
get import id
Reimplemented from ilObject.
Definition at line 422 of file class.ilObjMediaObject.php.
References ilObject\$import_id.
ilObjMediaObject::getLinkedMediaObjects | ( | $a_ignore = "" | ) |
Get all media objects linked in map areas of this media object.
Definition at line 1721 of file class.ilObjMediaObject.php.
References ilObject\_exists(), ilInternalLink\_extractObjIdOfTarget(), ilMapArea\_getIntLinks(), and getMediaItems().
& ilObjMediaObject::getMediaItem | ( | $a_purpose | ) |
get item for media purpose
string | $a_purpose |
Definition at line 279 of file class.ilObjMediaObject.php.
Referenced by ilObjMediaCastGUI\editCastItemObject(), generatePreviewPic(), ilObjMediaCastGUI\getMediaItem(), and hasPurposeItem().
ilObjMediaObject::getMediaItemNr | ( | $a_purpose | ) |
Definition at line 326 of file class.ilObjMediaObject.php.
& ilObjMediaObject::getMediaItems | ( | ) |
get all media items
Definition at line 268 of file class.ilObjMediaObject.php.
References $media_items.
Referenced by create(), duplicate(), getLinkedMediaObjects(), ilObjMediaCastGUI\getMediaItems(), getXML(), and update().
|
static |
get mime type for file
string | $a_file | file name |
Definition at line 1438 of file class.ilObjMediaObject.php.
Referenced by _saveTempFileAsMediaObject(), ilObjMediaObjectGUI\assignFullscreenObject(), ilObjMediaObjectGUI\assignStandardObject(), ilDataCollectionField\checkValidity(), ilPCInteractiveImageGUI\create(), ilFileUtils\createFile(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilSCORM13Package\dbImportSco(), ilFSStorageExercise\deliverFile(), ilPublicUserProfileGUI\deliverVCard(), ilSCORM13Player\getMimetype(), ilMediaPlayerGUI\getMp3PlayerHtml(), ilDataCollectionDatatype\parseValue(), ilObjMediaObjectGUI\savePropertiesObject(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilPCInteractiveImageGUI\update(), and ilObjMediaCastGUI\updateMediaItem().
ilObjMediaObject::getOriginID | ( | ) |
Definition at line 407 of file class.ilObjMediaObject.php.
References $origin_id.
ilObjMediaObject::getParentObjectIdForUsage | ( | $a_usage, | |
$a_include_all_access_obj_ids = false |
|||
) |
Get's the repository object ID of a parent object, if possible.
Definition at line 1198 of file class.ilObjMediaObject.php.
References $id, ilObject\$type, ilPCQuestion\_getPageForQuestionId(), assQuestion\_getQuestionInfo(), SurveyQuestion\_instanciateQuestion(), ilGlossaryTerm\_lookGlossaryID(), ilNewsItem\_lookupContextObjId(), ilLMObject\_lookupContObjID(), ilForum\_lookupObjIdForForumId(), ilSCORM2004Node\_lookupSLMID(), ilGlossaryDefinition\_lookupTermId(), ilObjTest\_lookupTestObjIdForQuestionId(), ilPortfolioPage\findPortfolioForPage(), ilObjExercise\lookupExerciseIdForReturnedId(), ilWikiPage\lookupObjIdByPage(), and ilPageObject\lookupParentId().
Referenced by ilWebAccessChecker\checkAccessMob(), and handleQuotaUpdate().
ilObjMediaObject::getRefId | ( | ) |
get reference id public
Reimplemented from ilObject.
Definition at line 52 of file class.ilObjMediaObject.php.
|
static |
Get restricted file types.
Definition at line 1760 of file class.ilObjMediaObject.php.
References $t.
Referenced by ilObjMediaObjectGUI\initForm().
ilObjMediaObject::getSrtFiles | ( | ) |
Get srt files.
Definition at line 1650 of file class.ilObjMediaObject.php.
References _getDirectory(), ilUtil\getDir(), and getId().
Referenced by getXML().
|
static |
Get thumbnail path.
string | $a_thumbname | thumbnail file name |
Definition at line 1697 of file class.ilObjMediaObject.php.
References _getThumbnailDirectory().
Referenced by ilPCIIMOverlaysTableGUI\fillRow().
ilObjMediaObject::getTitle | ( | ) |
get object title public
Reimplemented from ilObject.
Definition at line 72 of file class.ilObjMediaObject.php.
Referenced by createMetaData(), duplicate(), and updateMetaData().
ilObjMediaObject::getUsages | ( | $a_include_history = true | ) |
get all usages of current media object
Definition at line 1090 of file class.ilObjMediaObject.php.
References getId(), and lookupUsages().
Referenced by delete(), and handleQuotaUpdate().
ilObjMediaObject::getVideoPreviewPic | ( | $a_filename_only = false | ) |
Get video preview pic.
@return |
Definition at line 1864 of file class.ilObjMediaObject.php.
References _getDirectory(), and getId().
Referenced by ilObjMediaCastGUI\getCastItemValues().
ilObjMediaObject::getXML | ( | $a_mode = IL_MODE_FULL , |
|
$a_inst = 0 |
|||
) |
get MediaObject XLM Tag
int | $a_mode | IL_MODE_ALIAS | IL_MODE_OUTPUT | IL_MODE_FULL |
Definition at line 653 of file class.ilObjMediaObject.php.
References $ilUser, $media_items, getId(), getMediaItems(), getSrtFiles(), ilObject\getType(), handleAmps(), IL_MODE_ALIAS, IL_MODE_FULL, and IL_MODE_OUTPUT.
Referenced by exportMediaFullscreen(), and exportXML().
ilObjMediaObject::handleAmps | ( | $a_str | ) |
Replace "&" (if not an "&") with "&".
Definition at line 855 of file class.ilObjMediaObject.php.
Referenced by getXML().
|
staticprotected |
Definition at line 496 of file class.ilObjMediaObject.php.
References $ilSetting, getDataDirectory(), getId(), getParentObjectIdForUsage(), ilObject\getType(), getUsages(), and ilDiskQuotaHandler\handleUpdatedSourceObject().
Referenced by _deleteAllUsages(), _removeUsage(), _saveUsage(), create(), delete(), and update().
ilObjMediaObject::hasFullscreenItem | ( | ) |
Definition at line 339 of file class.ilObjMediaObject.php.
References hasPurposeItem().
ilObjMediaObject::hasPurposeItem | ( | $purpose | ) |
returns wether object has media item with specific purpose
string | $purpose |
Definition at line 350 of file class.ilObjMediaObject.php.
References getMediaItem().
Referenced by hasFullscreenItem().
ilObjMediaObject::ilObjMediaObject | ( | $a_id = 0 | ) |
Constructor public.
Definition at line 38 of file class.ilObjMediaObject.php.
References ilObject\ilObject().
Referenced by _saveTempFileAsMediaObject(), and duplicate().
ilObjMediaObject::isAlias | ( | ) |
Definition at line 397 of file class.ilObjMediaObject.php.
References $is_alias.
ilObjMediaObject::lookupUsages | ( | $a_id, | |
$a_include_history = true |
|||
) |
Lookup usages of media object.
Definition at line 1100 of file class.ilObjMediaObject.php.
References $ret, ilPageObject\_exists(), ilObjUser\_getUsersForClipboadObject(), and ilNewsItem\_lookupMediaObjectUsages().
Referenced by ilWebAccessChecker\checkAccessMob(), getUsages(), and ilLMObject\updateInternalLinks().
ilObjMediaObject::makeThumbnail | ( | $a_file, | |
$a_thumbname, | |||
$a_format = "png" , |
|||
$a_size = "80" |
|||
) |
Make thumbnail.
Definition at line 1681 of file class.ilObjMediaObject.php.
References _createThumbnailDirectory(), _getDirectory(), _getThumbnailDirectory(), ilUtil\convertImage(), and getId().
ilObjMediaObject::MDUpdateListener | ( | $a_element | ) |
Meta data update listener.
Important note: Do never call create() or update() method of ilObject here. It would result in an endless loop: update object -> update meta -> update object -> ... Use static _writeTitle() ... methods instead.
string | $a_element |
Reimplemented from ilObject.
Definition at line 161 of file class.ilObjMediaObject.php.
References $id, ilObject\_writeDescription(), ilObject\_writeTitle(), getId(), ilObject\getType(), setDescription(), and setTitle().
ilObjMediaObject::modifyExportIdentifier | ( | $a_tag, | |
$a_param, | |||
$a_value | |||
) |
Definition at line 946 of file class.ilObjMediaObject.php.
References ilUtil\insertInstIntoID().
ilObjMediaObject::putInTree | ( | ) |
Definition at line 57 of file class.ilObjMediaObject.php.
ilObjMediaObject::read | ( | ) |
read media object data from db
Definition at line 367 of file class.ilObjMediaObject.php.
References ilMediaItem\_getMediaItemsOfMOb().
ilObjMediaObject::removeAdditionalFile | ( | $a_file | ) |
Remove additional file.
Definition at line 1707 of file class.ilObjMediaObject.php.
References $file, _getDirectory(), and getId().
ilObjMediaObject::removeAllMediaItems | ( | ) |
remove all media items
Definition at line 320 of file class.ilObjMediaObject.php.
ilObjMediaObject::removeMediaItem | ( | $a_purpose | ) |
Definition at line 295 of file class.ilObjMediaObject.php.
References $media_items, and getId().
ilObjMediaObject::setAlias | ( | $a_is_alias | ) |
set wether page object is an alias
Definition at line 392 of file class.ilObjMediaObject.php.
ilObjMediaObject::setContainsIntLink | ( | $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)
boolean | $a_contains_link | true, if page contains intern link tag(s) |
Definition at line 967 of file class.ilObjMediaObject.php.
ilObjMediaObject::setDescription | ( | $a_description | ) |
set description of media object
Reimplemented from ilObject.
Definition at line 145 of file class.ilObjMediaObject.php.
Referenced by MDUpdateListener().
ilObjMediaObject::setId | ( | $a_id | ) |
set id
Reimplemented from ilObject.
Definition at line 379 of file class.ilObjMediaObject.php.
ilObjMediaObject::setImportId | ( | $a_import_id | ) |
set import id
public
string | $a_import_id | import id |
Reimplemented from ilObject.
Definition at line 427 of file class.ilObjMediaObject.php.
ilObjMediaObject::setOriginID | ( | $a_id | ) |
Definition at line 402 of file class.ilObjMediaObject.php.
ilObjMediaObject::setRefId | ( | ) |
Definition at line 47 of file class.ilObjMediaObject.php.
ilObjMediaObject::setTitle | ( | $a_title | ) |
set object title
public
string | $a_title | object title |
Reimplemented from ilObject.
Definition at line 67 of file class.ilObjMediaObject.php.
Referenced by MDUpdateListener().
ilObjMediaObject::update | ( | $a_upload = false | ) |
update media object in db
Definition at line 463 of file class.ilObjMediaObject.php.
References $media_items, ilMediaItem\deleteAllItemsOfMob(), getId(), getMediaItems(), handleQuotaUpdate(), ilObject\update(), and updateMetaData().
ilObjMediaObject::updateMetaData | ( | ) |
update meta data entry
Reimplemented from ilObject.
Definition at line 218 of file class.ilObjMediaObject.php.
References getDescription(), getId(), getTitle(), and ilObject\getType().
Referenced by update().
ilObjMediaObject::uploadAdditionalFile | ( | $a_name, | |
$tmp_name, | |||
$a_subdir = "" |
|||
) |
Create new media object and update page in db and return new media object.
Definition at line 1618 of file class.ilObjMediaObject.php.
References _getDirectory(), getId(), ilUtil\makeDirParents(), ilUtil\moveUploadedFile(), and ilUtil\renameExecutables().
Referenced by uploadSrtFile(), and uploadVideoPreviewPic().
ilObjMediaObject::uploadSrtFile | ( | $a_tmp_name, | |
$a_language | |||
) |
Upload srt file.
@return |
Definition at line 1637 of file class.ilObjMediaObject.php.
References uploadAdditionalFile().
ilObjMediaObject::uploadVideoPreviewPic | ( | $a_prevpic | ) |
Upload video preview picture.
@return |
Definition at line 1818 of file class.ilObjMediaObject.php.
References uploadAdditionalFile().
ilObjMediaObject::$contains_int_link |
Definition at line 32 of file class.ilObjMediaObject.php.
Referenced by containsIntLink().
ilObjMediaObject::$id |
Definition at line 30 of file class.ilObjMediaObject.php.
Referenced by getId(), getParentObjectIdForUsage(), and MDUpdateListener().
ilObjMediaObject::$is_alias |
Definition at line 28 of file class.ilObjMediaObject.php.
Referenced by isAlias().
ilObjMediaObject::$media_items |
Definition at line 31 of file class.ilObjMediaObject.php.
Referenced by create(), getMediaItems(), getXML(), removeMediaItem(), and update().
ilObjMediaObject::$origin_id |
Definition at line 29 of file class.ilObjMediaObject.php.
Referenced by getOriginID().