ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_id=0, bool $a_call_by_reference=true) | |
setOnline (bool $a_online) | |
getOnline () | |
setComments (bool $comments) | |
getComments () | |
setPublicFiles (bool $a_publicfiles) | |
getPublicFiles () | |
setViewMode (string $a_val) | |
getViewMode () | |
setItemsArray (array $a_itemsarray) | |
getItemsArray () | |
setAutoplayMode (int $a_val) | |
getAutoplayMode () | |
setNumberInitialVideos (int $a_val) | |
getNumberInitialVideos () | |
setNewItemsInLearningProgress (bool $a_val) | |
Set new items automatically in lp. More... | |
getNewItemsInLearningProgress () | |
getSortedItemsArray () | |
setDownloadable (bool $a_downloadable) | |
getDownloadable () | |
getDefaultAccess () | |
setDefaultAccess (int $value) | |
setOrder (int $a_value) | |
getOrder () | |
create () | |
update () | |
read () | |
delete () | |
readItems (bool $a_oldest_first=false) | |
deleteOrder () | |
readOrder () | |
saveOrder (array $a_items) | |
copyItems (ilObjMediaCast $a_new_obj) | |
handleLPUpdate (int $a_user_id, int $a_mob_id) | |
addMobToCast (int $mob_id, int $user_id, string $long_desc="", bool $extract=false) | |
Add media object to media cast. More... | |
getPlaytimeForSeconds (int $seconds) | |
Get playtime for seconds. More... | |
![]() | |
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... | |
Data Fields | |
const | ORDER_TITLE = 1 |
const | ORDER_CREATION_DATE_ASC = 2 |
const | ORDER_CREATION_DATE_DESC = 3 |
const | ORDER_MANUAL = 4 |
const | VIEW_LIST = "" |
const | VIEW_GALLERY = "gallery" |
const | VIEW_IMG_GALLERY = "img_gallery" |
const | VIEW_PODCAST = "podcast" |
const | VIEW_VCAST = "video" |
const | AUTOPLAY_NO = 0 |
const | AUTOPLAY_ACT = 1 |
const | AUTOPLAY_INACT = 2 |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
Static Public Attributes | |
static array | $purposes = array("Standard") |
Protected Member Functions | |
copyOrder (ilObjMediaCast $newObj, array $mapping) | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
Additional Inherited Members | |
![]() | |
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) |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilObjMediaCast
Definition at line 23 of file class.ilObjMediaCast.php.
ilObjMediaCast::__construct | ( | int | $a_id = 0 , |
bool | $a_call_by_reference = true |
||
) |
Definition at line 56 of file class.ilObjMediaCast.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), setDefaultAccess(), setOrder(), and ILIAS\Repository\user().
ilObjMediaCast::addMobToCast | ( | int | $mob_id, |
int | $user_id, | ||
string | $long_desc = "" , |
||
bool | $extract = false |
||
) |
Add media object to media cast.
Definition at line 517 of file class.ilObjMediaCast.php.
References Vendor\Package\$e, ilObject\$long_desc, getDefaultAccess(), ilObject\getId(), getPlaytimeForSeconds(), ilObject\getType(), and NEWS_AUDIO.
ilObjMediaCast::copyItems | ( | ilObjMediaCast | $a_new_obj | ) |
Definition at line 473 of file class.ilObjMediaCast.php.
References $user, ilObject\getId(), ilObject\getType(), NEWS_AUDIO, and readItems().
Referenced by copyOrder().
|
protected |
Definition at line 409 of file class.ilObjMediaCast.php.
References ilCopyWizardOptions\_getInstance(), ilBlockSetting\_lookup(), ilBlockSetting\_write(), ilObject\cloneMetaData(), copyItems(), getAutoplayMode(), getDefaultAccess(), getDownloadable(), ilObject\getId(), ilObjectLP\getInstance(), getNewItemsInLearningProgress(), getNumberInitialVideos(), getOnline(), getOrder(), getPublicFiles(), getViewMode(), ILIAS\Repository\int(), readOrder(), and saveOrder().
ilObjMediaCast::create | ( | ) |
Definition at line 226 of file class.ilObjMediaCast.php.
References ilObject\$db, $id, $ilDB, ilObject\createMetaData(), getAutoplayMode(), getDefaultAccess(), getDownloadable(), ilObject\getId(), getNewItemsInLearningProgress(), getNumberInitialVideos(), getOnline(), getOrder(), getPublicFiles(), and getViewMode().
ilObjMediaCast::delete | ( | ) |
Definition at line 317 of file class.ilObjMediaCast.php.
References ilObject\$db, $ilDB, ilObject\deleteMetaData(), deleteOrder(), ilObject\getId(), and getItemsArray().
ilObjMediaCast::deleteOrder | ( | ) |
Definition at line 356 of file class.ilObjMediaCast.php.
References ilObject\$db, $ilDB, and ilObject\getId().
Referenced by delete(), and saveOrder().
ilObjMediaCast::getAutoplayMode | ( | ) |
Definition at line 131 of file class.ilObjMediaCast.php.
References $autoplay_mode.
Referenced by copyOrder(), create(), and update().
ilObjMediaCast::getComments | ( | ) |
Definition at line 91 of file class.ilObjMediaCast.php.
References $comments.
Referenced by update().
ilObjMediaCast::getDefaultAccess | ( | ) |
Definition at line 205 of file class.ilObjMediaCast.php.
References $defaultAccess.
Referenced by addMobToCast(), copyOrder(), create(), and update().
ilObjMediaCast::getDownloadable | ( | ) |
Definition at line 200 of file class.ilObjMediaCast.php.
References $downloadable.
Referenced by ilMediaCastTableGUI\__construct(), copyOrder(), create(), and update().
ilObjMediaCast::getItemsArray | ( | ) |
Definition at line 121 of file class.ilObjMediaCast.php.
References $itemsarray.
Referenced by delete(), and getSortedItemsArray().
ilObjMediaCast::getNewItemsInLearningProgress | ( | ) |
Definition at line 154 of file class.ilObjMediaCast.php.
References $new_items_in_lp.
Referenced by copyOrder(), create(), and update().
ilObjMediaCast::getNumberInitialVideos | ( | ) |
Definition at line 141 of file class.ilObjMediaCast.php.
References $nr_initial_videos.
Referenced by copyOrder(), create(), and update().
ilObjMediaCast::getOnline | ( | ) |
Definition at line 81 of file class.ilObjMediaCast.php.
References $online.
Referenced by copyOrder(), create(), and update().
ilObjMediaCast::getOrder | ( | ) |
Definition at line 220 of file class.ilObjMediaCast.php.
References $order.
Referenced by copyOrder(), create(), getSortedItemsArray(), and update().
ilObjMediaCast::getPlaytimeForSeconds | ( | int | $seconds | ) |
Get playtime for seconds.
Definition at line 560 of file class.ilObjMediaCast.php.
References $duration.
Referenced by addMobToCast().
ilObjMediaCast::getPublicFiles | ( | ) |
Definition at line 101 of file class.ilObjMediaCast.php.
References $publicfiles.
Referenced by copyOrder(), create(), and update().
ilObjMediaCast::getSortedItemsArray | ( | ) |
Definition at line 159 of file class.ilObjMediaCast.php.
References $order, getItemsArray(), getOrder(), ORDER_CREATION_DATE_ASC, ORDER_CREATION_DATE_DESC, ORDER_MANUAL, ORDER_TITLE, readOrder(), and ilArrayUtil\sortArray().
ilObjMediaCast::getViewMode | ( | ) |
Definition at line 111 of file class.ilObjMediaCast.php.
References $view_mode.
Referenced by copyOrder(), create(), and update().
ilObjMediaCast::handleLPUpdate | ( | int | $a_user_id, |
int | $a_mob_id | ||
) |
Definition at line 503 of file class.ilObjMediaCast.php.
References ilObject\getRefId().
ilObjMediaCast::read | ( | ) |
Definition at line 291 of file class.ilObjMediaCast.php.
References ilObject\$db, $ilDB, ilObject\getId(), readItems(), setAutoplayMode(), setComments(), setDefaultAccess(), setDownloadable(), setNewItemsInLearningProgress(), setNumberInitialVideos(), setOnline(), setOrder(), setPublicFiles(), and setViewMode().
ilObjMediaCast::readItems | ( | bool | $a_oldest_first = false | ) |
Definition at line 345 of file class.ilObjMediaCast.php.
References $itemsarray, ilObject\getId(), and ilObject\getType().
Referenced by copyItems(), and read().
ilObjMediaCast::readOrder | ( | ) |
Definition at line 369 of file class.ilObjMediaCast.php.
References ilObject\$db, $ilDB, $res, ilObject\getId(), and null.
Referenced by copyOrder(), and getSortedItemsArray().
ilObjMediaCast::saveOrder | ( | array | $a_items | ) |
Definition at line 388 of file class.ilObjMediaCast.php.
References ilObject\$db, $ilDB, deleteOrder(), and ilObject\getId().
Referenced by copyOrder().
ilObjMediaCast::setAutoplayMode | ( | int | $a_val | ) |
Definition at line 126 of file class.ilObjMediaCast.php.
Referenced by read().
ilObjMediaCast::setComments | ( | bool | $comments | ) |
Definition at line 86 of file class.ilObjMediaCast.php.
References $comments.
Referenced by read().
ilObjMediaCast::setDefaultAccess | ( | int | $value | ) |
Definition at line 210 of file class.ilObjMediaCast.php.
Referenced by __construct(), and read().
ilObjMediaCast::setDownloadable | ( | bool | $a_downloadable | ) |
Definition at line 195 of file class.ilObjMediaCast.php.
Referenced by read().
ilObjMediaCast::setItemsArray | ( | array | $a_itemsarray | ) |
Definition at line 116 of file class.ilObjMediaCast.php.
ilObjMediaCast::setNewItemsInLearningProgress | ( | bool | $a_val | ) |
Set new items automatically in lp.
Definition at line 149 of file class.ilObjMediaCast.php.
Referenced by read().
ilObjMediaCast::setNumberInitialVideos | ( | int | $a_val | ) |
Definition at line 136 of file class.ilObjMediaCast.php.
Referenced by read().
ilObjMediaCast::setOnline | ( | bool | $a_online | ) |
Definition at line 76 of file class.ilObjMediaCast.php.
Referenced by read().
ilObjMediaCast::setOrder | ( | int | $a_value | ) |
Definition at line 215 of file class.ilObjMediaCast.php.
Referenced by __construct(), and read().
ilObjMediaCast::setPublicFiles | ( | bool | $a_publicfiles | ) |
Definition at line 96 of file class.ilObjMediaCast.php.
Referenced by read().
ilObjMediaCast::setViewMode | ( | string | $a_val | ) |
Definition at line 106 of file class.ilObjMediaCast.php.
Referenced by read().
ilObjMediaCast::update | ( | ) |
Definition at line 261 of file class.ilObjMediaCast.php.
References ilObject\$db, $ilDB, getAutoplayMode(), getComments(), getDefaultAccess(), getDownloadable(), ilObject\getId(), getNewItemsInLearningProgress(), getNumberInitialVideos(), getOnline(), getOrder(), getPublicFiles(), getViewMode(), and ilObject\updateMetaData().
|
protected |
Definition at line 54 of file class.ilObjMediaCast.php.
Referenced by getAutoplayMode().
|
protected |
Definition at line 37 of file class.ilObjMediaCast.php.
Referenced by getComments(), and setComments().
|
protected |
Definition at line 50 of file class.ilObjMediaCast.php.
Referenced by getDefaultAccess().
|
protected |
Definition at line 39 of file class.ilObjMediaCast.php.
|
protected |
Definition at line 47 of file class.ilObjMediaCast.php.
Referenced by getDownloadable().
|
protected |
Definition at line 42 of file class.ilObjMediaCast.php.
Referenced by getItemsArray(), and readItems().
|
protected |
Definition at line 51 of file class.ilObjMediaCast.php.
|
protected |
Definition at line 40 of file class.ilObjMediaCast.php.
|
protected |
Definition at line 53 of file class.ilObjMediaCast.php.
Referenced by getNewItemsInLearningProgress().
|
protected |
Definition at line 38 of file class.ilObjMediaCast.php.
|
protected |
Definition at line 52 of file class.ilObjMediaCast.php.
Referenced by getNumberInitialVideos().
|
protected |
Definition at line 45 of file class.ilObjMediaCast.php.
Referenced by getOnline().
|
protected |
Definition at line 48 of file class.ilObjMediaCast.php.
Referenced by getOrder(), and getSortedItemsArray().
|
protected |
Definition at line 46 of file class.ilObjMediaCast.php.
Referenced by getPublicFiles().
|
static |
Definition at line 44 of file class.ilObjMediaCast.php.
Referenced by ilMediaCastTableGUI\fillRow(), ilMediaCastManageTableGUI\fillRow(), ilObjMediaCastGUI\getCastItemValues(), ilObjMediaCastGUI\initAddCastItemForm(), ilMediaCastSettings\initStorage(), ilObjMediaCastGUI\populateFormFromPost(), and ilObjMediaCastGUI\updateCastItemObject().
|
protected |
Definition at line 43 of file class.ilObjMediaCast.php.
Referenced by copyItems().
|
protected |
Definition at line 49 of file class.ilObjMediaCast.php.
Referenced by getViewMode().
const ilObjMediaCast::AUTOPLAY_ACT = 1 |
Definition at line 35 of file class.ilObjMediaCast.php.
Referenced by ILIAS\MetaData\Vocabularies\Dispatch\Presentation\Presentation\VideoViewGUI\getAutoplay(), and ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsGUI\getEditForm().
const ilObjMediaCast::AUTOPLAY_INACT = 2 |
Definition at line 36 of file class.ilObjMediaCast.php.
Referenced by ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsGUI\getEditForm().
const ilObjMediaCast::AUTOPLAY_NO = 0 |
Definition at line 34 of file class.ilObjMediaCast.php.
Referenced by ILIAS\MetaData\Vocabularies\Dispatch\Presentation\Presentation\VideoViewGUI\getAutoplay(), ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsGUI\getEditForm(), and ILIAS\MetaData\Vocabularies\Dispatch\Presentation\Presentation\VideoViewGUI\renderToolbar().
const ilObjMediaCast::ORDER_CREATION_DATE_ASC = 2 |
Definition at line 26 of file class.ilObjMediaCast.php.
Referenced by ilObjMediaCastGUI\editOrderObject(), ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsGUI\getEditForm(), and getSortedItemsArray().
const ilObjMediaCast::ORDER_CREATION_DATE_DESC = 3 |
Definition at line 27 of file class.ilObjMediaCast.php.
Referenced by ilObjMediaCastGUI\editOrderObject(), ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsGUI\getEditForm(), and getSortedItemsArray().
const ilObjMediaCast::ORDER_MANUAL = 4 |
Definition at line 28 of file class.ilObjMediaCast.php.
Referenced by ilObjMediaCastGUI\addContentSubTabs(), ilObjMediaCastGUI\editOrderObject(), ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsGUI\getEditForm(), and getSortedItemsArray().
const ilObjMediaCast::ORDER_TITLE = 1 |
Definition at line 25 of file class.ilObjMediaCast.php.
Referenced by ilObjMediaCastGUI\editOrderObject(), ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsGUI\getEditForm(), and getSortedItemsArray().
const ilObjMediaCast::VIEW_GALLERY = "gallery" |
Definition at line 30 of file class.ilObjMediaCast.php.
Referenced by ilObjMediaCastGUI\showContentObject().
const ilObjMediaCast::VIEW_IMG_GALLERY = "img_gallery" |
Definition at line 31 of file class.ilObjMediaCast.php.
Referenced by ilMediaCastManageTableGUI\__construct(), ilObjMediaCastGUI\executeCommand(), ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsGUI\getEditForm(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjMediaCastGUI\listItemsObject(), ilObjMediaCastGUI\showContentObject(), and ilObjMediaCastGUI\updateCastItemObject().
const ilObjMediaCast::VIEW_LIST = "" |
Definition at line 29 of file class.ilObjMediaCast.php.
const ilObjMediaCast::VIEW_PODCAST = "podcast" |
const ilObjMediaCast::VIEW_VCAST = "video" |
Definition at line 33 of file class.ilObjMediaCast.php.
Referenced by ilObjMediaCastGUI\executeCommand(), ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsGUI\getEditForm(), ilObjMediaCastGUI\listItemsObject(), and ilObjMediaCastGUI\showContentObject().