|
ILIAS
Release_3_10_x_branch Revision 61812
|
Class ilMediaItem. More...
Collaboration diagram for ilMediaItem:Public Member Functions | |
| ilMediaItem ($a_id=0) | |
| setId ($a_id) | |
| set media item id | |
| getId () | |
| get media item id | |
| setMobId ($a_mob_id) | |
| set id of parent media object | |
| getMobId () | |
| get id of parent media object | |
| setNr ($a_nr) | |
| set number of media item within media object | |
| getNr () | |
| create () | |
| create persistent media item | |
| update () | |
| update media item data (without map areas!) | |
| read () | |
| read media item data (item id or (mob_id and nr) must be set) | |
| writeThumbTried ($a_tried) | |
| write thumbnail creation try data ("y"/"n") | |
| _getMediaItemsOfMObId ($a_mobId, $a_purpose) | |
| _getMediaItemsOfMOb (&$a_mob) | |
| read media items into media objects (static) | |
| deleteAllItemsOfMob ($a_mob_id) | |
| static | |
| setPurpose ($a_purpose) | |
| getPurpose () | |
| setLocation ($a_location) | |
| getLocation () | |
| setLocationType ($a_type) | |
| getLocationType () | |
| setFormat ($a_format) | |
| getFormat () | |
| setThumbTried ($a_tried) | |
| getThumbTried () | |
| addMapArea (&$a_map_area) | |
| deleteMapArea ($nr) | |
| delete map area | |
| & | getMapArea ($nr) |
| get map area | |
| getMapAreas () | |
| get map areas | |
| getWidth () | |
| get width | |
| setWidth ($a_width) | |
| set width | |
| getHeight () | |
| get height | |
| setHeight ($a_height) | |
| set height | |
| getOriginalSize () | |
| get original size | |
| setCaption ($a_caption) | |
| set caption | |
| getCaption () | |
| get caption | |
| setHAlign ($a_halign) | |
| set horizontal align | |
| getHAlign () | |
| get horizontal align | |
| setParameter ($a_name, $a_value) | |
| set parameter | |
| resetParameters () | |
| reset parameters | |
| setParameters ($a_par) | |
| set alle parameters via parameter string (format: par1="value1", par2="value2", ...) | |
| getParameters () | |
| get all parameters (in array) | |
| getParameterString () | |
| get all parameters (as string) | |
| getParameter ($a_name) | |
| get a single parameter | |
| getWorkDirectory () | |
| get work directory for image map editing | |
| createWorkDirectory () | |
| create work directory for image map editing | |
| getSuffix () | |
| get location suffix | |
| getMapWorkCopyType () | |
| get image type of image map work copy | |
| getMapWorkCopyName ($a_reference_copy=false) | |
| Get name of image map work copy file. | |
| getDirectory () | |
| get media file directory | |
| getThumbnailDirectory ($a_mode="filesystem") | |
| get media file directory | |
| getThumbnailTarget ($a_size="") | |
| get thumbnail target | |
| copyOriginal () | |
| Copy the orginal file. | |
| makeMapWorkCopy ($a_area_nr=0, $a_exclude=false) | |
| make map work copy of image | |
| addAreaToMapWorkCopy ($a_shape, $a_coords) | |
| draw a new area in work image | |
| outputMapWorkCopy () | |
| output raw map work copy file | |
| buildMapWorkImage () | |
| build image map work image | |
| saveMapWorkImage () | |
| save image map work image | |
| & | getMapWorkImage () |
| get image map work image | |
| getMapAreasXML ($a_insert_inst=false, $a_inst=0) | |
| get xml code of media items' areas | |
| _resolveMapAreaLinks ($a_mob_id) | |
| resolve internal links of all media items of a media object | |
| _getMapAreasIntLinks ($a_mob_id) | |
| get all internal links of map areas of a mob | |
| extractUrlParameters () | |
| Extract parameters of special external references to parameter array. | |
Static Public Member Functions | |
| static | _lookupLocationForMobId ($a_mob_id, $a_purpose) |
| Lookup location for mob id. | |
| static | _lookupMobId ($a_med_id) |
| Lookup Mob ID. | |
Data Fields | |
| $ilias | |
| $id | |
| $purpose | |
| $location | |
| $location_type | |
| $format | |
| $width | |
| $height | |
| $caption | |
| $halign | |
| $parameters | |
| $mob_id | |
| $nr | |
| $mapareas | |
| $map_cnt | |
| $map_image | |
| $color1 | |
| $color2 | |
Class ilMediaItem.
Media Item, component of a media object (file or reference)
Definition at line 36 of file class.ilMediaItem.php.
| ilMediaItem::_getMapAreasIntLinks | ( | $a_mob_id | ) |
get all internal links of map areas of a mob
| int | $a_mob_id | media object id |
Definition at line 1095 of file class.ilMediaItem.php.
References ilMapArea\_getIntLinks(), and DB_FETCHMODE_ASSOC.
Referenced by ilPageObjectGUI\displayMediaFullscreen(), ilPageObject\getInternalLinks(), ilLMPresentationGUI\ilMedia(), ilGlossaryPresentationGUI\media(), and ilObjMediaPoolGUI\showMedia().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::_getMediaItemsOfMOb | ( | & | $a_mob | ) |
read media items into media objects (static)
| object | $a_mob | media object |
Definition at line 349 of file class.ilMediaItem.php.
References ilMapArea\_getMaxNr(), DB_FETCHMODE_ASSOC, and ilMediaItem().
Referenced by ilObjMediaObject\read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::_getMediaItemsOfMObId | ( | $a_mobId, | |
| $a_purpose | |||
| ) |
Definition at line 328 of file class.ilMediaItem.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilObjectFeedWriter\ilObjectFeedWriter().
Here is the caller graph for this function:
|
static |
Lookup location for mob id.
| int | $a_mob_id | media object id |
| string | $a_purpose | purpose |
Definition at line 286 of file class.ilMediaItem.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilObjMediaObject\_lookupItemPath().
Here is the caller graph for this function:
|
static |
Lookup Mob ID.
| int | $a_med_id | media item id |
Definition at line 307 of file class.ilMediaItem.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilMapArea\_getMobsForTarget().
Here is the caller graph for this function:| ilMediaItem::_resolveMapAreaLinks | ( | $a_mob_id | ) |
resolve internal links of all media items of a media object
| int | $a_mob_id | media object id |
Definition at line 1075 of file class.ilMediaItem.php.
References ilMapArea\_resolveIntLinks(), and DB_FETCHMODE_ASSOC.
Referenced by ilContObjParser\processPagesToParse(), and ilPageObject\resolveIntLinks().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::addAreaToMapWorkCopy | ( | $a_shape, | |
| $a_coords | |||
| ) |
draw a new area in work image
| string | $a_shape | shape |
| string | $a_coords | coordinates string |
Definition at line 914 of file class.ilMediaItem.php.
References $size, buildMapWorkImage(), getHeight(), getMapWorkCopyName(), getMapWorkImage(), getWidth(), and saveMapWorkImage().
Here is the call graph for this function:| ilMediaItem::addMapArea | ( | & | $a_map_area | ) |
Definition at line 475 of file class.ilMediaItem.php.
References $map_cnt.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::buildMapWorkImage | ( | ) |
build image map work image
Definition at line 959 of file class.ilMediaItem.php.
References getMapWorkCopyName(), and getMapWorkCopyType().
Referenced by addAreaToMapWorkCopy(), and makeMapWorkCopy().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::copyOriginal | ( | ) |
Copy the orginal file.
Definition at line 814 of file class.ilMediaItem.php.
References $lng, ilUtil\convertImage(), createWorkDirectory(), getDirectory(), getLocation(), getLocationType(), getMapWorkCopyName(), getMapWorkCopyType(), and ilUtil\sendInfo().
Referenced by makeMapWorkCopy().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::create | ( | ) |
create persistent media item
Definition at line 129 of file class.ilMediaItem.php.
References getCaption(), getFormat(), getHAlign(), getHeight(), getId(), getLocation(), getLocationType(), getMobId(), getNr(), getParameters(), getPurpose(), getWidth(), and setId().
Here is the call graph for this function:| ilMediaItem::createWorkDirectory | ( | ) |
create work directory for image map editing
Definition at line 684 of file class.ilMediaItem.php.
References ilUtil\createDirectory(), ilUtil\getDataDir(), and getWorkDirectory().
Referenced by copyOriginal().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::deleteAllItemsOfMob | ( | $a_mob_id | ) |
static
Definition at line 398 of file class.ilMediaItem.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilObjMediaObject\delete(), and ilObjMediaObject\update().
Here is the caller graph for this function:| ilMediaItem::deleteMapArea | ( | $nr | ) |
delete map area
Definition at line 484 of file class.ilMediaItem.php.
| ilMediaItem::extractUrlParameters | ( | ) |
Extract parameters of special external references to parameter array.
Definition at line 1119 of file class.ilMediaItem.php.
References getLocation(), getParameters(), and setParameter().
Here is the call graph for this function:| ilMediaItem::getCaption | ( | ) |
get caption
Definition at line 587 of file class.ilMediaItem.php.
References $caption.
Referenced by create(), and update().
Here is the caller graph for this function:| ilMediaItem::getDirectory | ( | ) |
get media file directory
Definition at line 741 of file class.ilMediaItem.php.
References ilObjMediaObject\_getDirectory(), and getMobId().
Referenced by copyOriginal(), and getThumbnailTarget().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::getFormat | ( | ) |
Definition at line 460 of file class.ilMediaItem.php.
References $format.
Referenced by create(), getOriginalSize(), getThumbnailTarget(), and update().
Here is the caller graph for this function:| ilMediaItem::getHAlign | ( | ) |
get horizontal align
Definition at line 603 of file class.ilMediaItem.php.
References $halign.
Referenced by create(), and update().
Here is the caller graph for this function:| ilMediaItem::getHeight | ( | ) |
get height
Definition at line 536 of file class.ilMediaItem.php.
References $height.
Referenced by addAreaToMapWorkCopy(), create(), makeMapWorkCopy(), and update().
Here is the caller graph for this function:| ilMediaItem::getId | ( | ) |
get media item id
Definition at line 88 of file class.ilMediaItem.php.
References $id.
Referenced by create(), getWorkDirectory(), read(), update(), and writeThumbTried().
Here is the caller graph for this function:| ilMediaItem::getLocation | ( | ) |
Definition at line 440 of file class.ilMediaItem.php.
References $location.
Referenced by copyOriginal(), create(), extractUrlParameters(), getMapWorkCopyName(), getOriginalSize(), getSuffix(), getThumbnailTarget(), and update().
Here is the caller graph for this function:| ilMediaItem::getLocationType | ( | ) |
Definition at line 450 of file class.ilMediaItem.php.
References $location_type.
Referenced by copyOriginal(), create(), getOriginalSize(), getThumbnailTarget(), and update().
Here is the caller graph for this function:| & ilMediaItem::getMapArea | ( | $nr | ) |
| ilMediaItem::getMapAreas | ( | ) |
| ilMediaItem::getMapAreasXML | ( | $a_insert_inst = false, |
|
$a_inst = 0 |
|||
| ) |
get xml code of media items' areas
Definition at line 1029 of file class.ilMediaItem.php.
References IL_INT_LINK.
| ilMediaItem::getMapWorkCopyName | ( | $a_reference_copy = false | ) |
Get name of image map work copy file.
| string | Get name, for copy of external referenced image |
Definition at line 720 of file class.ilMediaItem.php.
References $file, getLocation(), getMapWorkCopyType(), and getWorkDirectory().
Referenced by addAreaToMapWorkCopy(), buildMapWorkImage(), copyOriginal(), makeMapWorkCopy(), outputMapWorkCopy(), and saveMapWorkImage().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::getMapWorkCopyType | ( | ) |
get image type of image map work copy
Definition at line 710 of file class.ilMediaItem.php.
References ilUtil\getGDSupportedImageType(), and getSuffix().
Referenced by buildMapWorkImage(), copyOriginal(), getMapWorkCopyName(), outputMapWorkCopy(), and saveMapWorkImage().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilMediaItem::getMapWorkImage | ( | ) |
get image map work image
Definition at line 1020 of file class.ilMediaItem.php.
References $map_image.
Referenced by addAreaToMapWorkCopy(), and makeMapWorkCopy().
Here is the caller graph for this function:| ilMediaItem::getMobId | ( | ) |
get id of parent media object
Definition at line 108 of file class.ilMediaItem.php.
References $mob_id.
Referenced by create(), getDirectory(), getOriginalSize(), getThumbnailDirectory(), getThumbnailTarget(), read(), and update().
Here is the caller graph for this function:| ilMediaItem::getNr | ( | ) |
| ilMediaItem::getOriginalSize | ( | ) |
get original size
Definition at line 552 of file class.ilMediaItem.php.
References $file, $size, ilObjMediaObject\_getDirectory(), ilUtil\deducibleSize(), getFormat(), getLocation(), getLocationType(), and getMobId().
Here is the call graph for this function:| ilMediaItem::getParameter | ( | $a_name | ) |
get a single parameter
Definition at line 668 of file class.ilMediaItem.php.
| ilMediaItem::getParameters | ( | ) |
get all parameters (in array)
Definition at line 650 of file class.ilMediaItem.php.
References $parameters.
Referenced by create(), extractUrlParameters(), and update().
Here is the caller graph for this function:| ilMediaItem::getParameterString | ( | ) |
get all parameters (as string)
Definition at line 659 of file class.ilMediaItem.php.
References ilUtil\assembleParameterString().
Here is the call graph for this function:| ilMediaItem::getPurpose | ( | ) |
Definition at line 430 of file class.ilMediaItem.php.
References $purpose.
Referenced by create(), getThumbnailTarget(), and update().
Here is the caller graph for this function:| ilMediaItem::getSuffix | ( | ) |
get location suffix
Definition at line 700 of file class.ilMediaItem.php.
References getLocation().
Referenced by getMapWorkCopyType().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::getThumbnailDirectory | ( | $a_mode = "filesystem" | ) |
get media file directory
Definition at line 749 of file class.ilMediaItem.php.
References ilObjMediaObject\_getThumbnailDirectory(), and getMobId().
Referenced by getThumbnailTarget().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::getThumbnailTarget | ( | $a_size = "" | ) |
get thumbnail target
Definition at line 757 of file class.ilMediaItem.php.
References ilObjMediaObject\_createThumbnailDirectory(), ilUtil\convertImage(), getDirectory(), getFormat(), getLocation(), getLocationType(), getMobId(), getPurpose(), getThumbnailDirectory(), getThumbTried(), and writeThumbTried().
Here is the call graph for this function:| ilMediaItem::getThumbTried | ( | ) |
Definition at line 470 of file class.ilMediaItem.php.
Referenced by getThumbnailTarget().
Here is the caller graph for this function:| ilMediaItem::getWidth | ( | ) |
get width
Definition at line 520 of file class.ilMediaItem.php.
References $width.
Referenced by addAreaToMapWorkCopy(), create(), makeMapWorkCopy(), and update().
Here is the caller graph for this function:| ilMediaItem::getWorkDirectory | ( | ) |
get work directory for image map editing
Definition at line 676 of file class.ilMediaItem.php.
References ilUtil\getDataDir(), and getId().
Referenced by createWorkDirectory(), and getMapWorkCopyName().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::ilMediaItem | ( | $a_id = 0 | ) |
Definition at line 57 of file class.ilMediaItem.php.
References $ilias, read(), and setId().
Referenced by _getMediaItemsOfMOb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::makeMapWorkCopy | ( | $a_area_nr = 0, |
|
$a_exclude = false |
|||
| ) |
make map work copy of image
| int | $a_area_nr | draw area $a_area_nr only |
| boolean | $a_exclude | true: draw all areas but area $a_area_nr |
Definition at line 865 of file class.ilMediaItem.php.
References $lng, $size, buildMapWorkImage(), copyOriginal(), getHeight(), getMapWorkCopyName(), getMapWorkImage(), getWidth(), and saveMapWorkImage().
Here is the call graph for this function:| ilMediaItem::outputMapWorkCopy | ( | ) |
output raw map work copy file
Definition at line 944 of file class.ilMediaItem.php.
References exit, getMapWorkCopyName(), and getMapWorkCopyType().
Here is the call graph for this function:| ilMediaItem::read | ( | ) |
read media item data (item id or (mob_id and nr) must be set)
Definition at line 211 of file class.ilMediaItem.php.
References $mob_id, $nr, ilMapArea\_getMaxNr(), addMapArea(), DB_FETCHMODE_ASSOC, getId(), getMobId(), getNr(), setCaption(), setFormat(), setHAlign(), setHeight(), setId(), setLocation(), setLocationType(), setMobId(), setNr(), setParameter(), setPurpose(), setThumbTried(), and setWidth().
Referenced by ilMediaItem().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::resetParameters | ( | ) |
reset parameters
Definition at line 623 of file class.ilMediaItem.php.
Referenced by setParameters().
Here is the caller graph for this function:| ilMediaItem::saveMapWorkImage | ( | ) |
save image map work image
Definition at line 994 of file class.ilMediaItem.php.
References getMapWorkCopyName(), and getMapWorkCopyType().
Referenced by addAreaToMapWorkCopy(), and makeMapWorkCopy().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::setCaption | ( | $a_caption | ) |
set caption
Definition at line 579 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::setFormat | ( | $a_format | ) |
Definition at line 455 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::setHAlign | ( | $a_halign | ) |
set horizontal align
Definition at line 595 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::setHeight | ( | $a_height | ) |
set height
Definition at line 544 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::setId | ( | $a_id | ) |
set media item id
| int | $a_id | media item id |
Definition at line 78 of file class.ilMediaItem.php.
Referenced by create(), ilMediaItem(), and read().
Here is the caller graph for this function:| ilMediaItem::setLocation | ( | $a_location | ) |
Definition at line 435 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::setLocationType | ( | $a_type | ) |
Definition at line 445 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::setMobId | ( | $a_mob_id | ) |
set id of parent media object
| int | $a_mob_id | media object id |
Definition at line 98 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::setNr | ( | $a_nr | ) |
set number of media item within media object
Definition at line 116 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::setParameter | ( | $a_name, | |
| $a_value | |||
| ) |
set parameter
| string | $a_name | parameter name |
| string | $a_value | parameter value |
Definition at line 615 of file class.ilMediaItem.php.
Referenced by extractUrlParameters(), read(), and setParameters().
Here is the caller graph for this function:| ilMediaItem::setParameters | ( | $a_par | ) |
set alle parameters via parameter string (format: par1="value1", par2="value2", ...)
| string | $a_par | parameter string |
Definition at line 633 of file class.ilMediaItem.php.
References ilUtil\extractParameterString(), resetParameters(), and setParameter().
Here is the call graph for this function:| ilMediaItem::setPurpose | ( | $a_purpose | ) |
Definition at line 425 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::setThumbTried | ( | $a_tried | ) |
Definition at line 465 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::setWidth | ( | $a_width | ) |
set width
Definition at line 528 of file class.ilMediaItem.php.
Referenced by read().
Here is the caller graph for this function:| ilMediaItem::update | ( | ) |
update media item data (without map areas!)
Definition at line 174 of file class.ilMediaItem.php.
References getCaption(), getFormat(), getHAlign(), getHeight(), getId(), getLocation(), getLocationType(), getMobId(), getNr(), getParameters(), getPurpose(), and getWidth().
Here is the call graph for this function:| ilMediaItem::writeThumbTried | ( | $a_tried | ) |
write thumbnail creation try data ("y"/"n")
Definition at line 269 of file class.ilMediaItem.php.
References getId().
Referenced by getThumbnailTarget().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaItem::$caption |
Definition at line 46 of file class.ilMediaItem.php.
Referenced by getCaption().
| ilMediaItem::$color1 |
Definition at line 54 of file class.ilMediaItem.php.
| ilMediaItem::$color2 |
Definition at line 55 of file class.ilMediaItem.php.
| ilMediaItem::$format |
Definition at line 43 of file class.ilMediaItem.php.
Referenced by getFormat().
| ilMediaItem::$halign |
Definition at line 47 of file class.ilMediaItem.php.
Referenced by getHAlign().
| ilMediaItem::$height |
Definition at line 45 of file class.ilMediaItem.php.
Referenced by getHeight().
| ilMediaItem::$id |
Definition at line 39 of file class.ilMediaItem.php.
Referenced by getId().
| ilMediaItem::$ilias |
Definition at line 38 of file class.ilMediaItem.php.
Referenced by ilMediaItem().
| ilMediaItem::$location |
Definition at line 41 of file class.ilMediaItem.php.
Referenced by getLocation().
| ilMediaItem::$location_type |
Definition at line 42 of file class.ilMediaItem.php.
Referenced by getLocationType().
| ilMediaItem::$map_cnt |
Definition at line 52 of file class.ilMediaItem.php.
Referenced by addMapArea(), and deleteMapArea().
| ilMediaItem::$map_image |
Definition at line 53 of file class.ilMediaItem.php.
Referenced by getMapWorkImage().
| ilMediaItem::$mapareas |
Definition at line 51 of file class.ilMediaItem.php.
Referenced by getMapAreas().
| ilMediaItem::$mob_id |
Definition at line 49 of file class.ilMediaItem.php.
Referenced by getMobId(), and read().
| ilMediaItem::$nr |
Definition at line 50 of file class.ilMediaItem.php.
Referenced by deleteMapArea(), getMapArea(), getNr(), and read().
| ilMediaItem::$parameters |
Definition at line 48 of file class.ilMediaItem.php.
Referenced by getParameters().
| ilMediaItem::$purpose |
Definition at line 40 of file class.ilMediaItem.php.
Referenced by getPurpose().
| ilMediaItem::$width |
Definition at line 44 of file class.ilMediaItem.php.
Referenced by getWidth().