|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilMediaAliasItem:Public Member Functions | |
| __construct (DOMDocument $dom, string $a_hier_id, string $a_purpose, string $a_pc_id="", string $a_parent_node_name="MediaObject") | |
| getMAItemNode (string $a_hier_id, string $a_purpose, string $a_pc_id="", string $a_sub_element="") | |
| getParameterNodes (string $a_hier_id, string $a_purpose, string $a_pc_id="") | |
| getMapAreaNodes (string $a_hier_id, string $a_purpose, string $a_pc_id="") | |
| setPcId (string $a_pcid) | |
| getPcId () | |
| exists () | |
| check if item node exists More... | |
| insert () | |
| inserts new node in dom More... | |
| setWidth (string $a_width) | |
| getWidth () | |
| definesSize () | |
| check if alias item defines own size or derives size from object More... | |
| deriveSize () | |
| derive size from object (-> width and height attributes are removed from layout element) More... | |
| setHeight (string $a_height) | |
| getHeight () | |
| setCaption (string $a_caption) | |
| getCaption () | |
| definesCaption () | |
| check if alias item defines own caption or derives caption from object More... | |
| deriveCaption () | |
| derive caption from object (-> caption element is removed from media alias item) More... | |
| setTextRepresentation (string $a_text_representation) | |
| getTextRepresentation () | |
| definesTextRepresentation () | |
| check if alias item defines own TextRepresentation or derives TextRepresentation from object More... | |
| deriveTextRepresentation () | |
| derive TextRepresentation from object (-> TextRepresentation element is removed from media alias item) More... | |
| setHorizontalAlign (string $a_halign) | |
| getHorizontalAlign () | |
| setParameters (array $a_par_array) | |
| getParameterString () | |
| Get all parameters as string. More... | |
| getParameters () | |
| Get all parameters as array. More... | |
| definesParameters () | |
| check if alias item defines own parameters or derives parameters from object More... | |
| deriveParameters () | |
| derive parameters from object (-> all parameter elements are removed from media alias item) More... | |
| getMapAreas () | |
| Get all map areas. More... | |
| setAreaTitle (int $a_nr, string $a_title) | |
| setAreaIntLink (int $a_nr, string $a_type, string $a_target, string $a_target_frame) | |
| Set link of area to an internal one. More... | |
| setAreaExtLink (int $a_nr, string $a_href) | |
| Set link of area to an external one. More... | |
| setShape (int $a_nr, string $a_shape_type, string $a_coords) | |
| Set shape and coords of single area. More... | |
| setAreaHighlightMode (int $a_nr, string $a_mode) | |
| Set highlight mode single area. More... | |
| setAreaHighlightClass (int $a_nr, string $a_class) | |
| Set highlight class single area. More... | |
| addMapArea (string $a_shape_type, string $a_coords, string $a_title, array $a_link, string $a_id="", string $hl_mode="", string $hl_class="",) | |
| Add a new area to the map. More... | |
| deleteMapArea (int $a_nr) | |
| Delete a sinlge map area. More... | |
| deleteMapAreaById (string $a_id) | |
| Delete map areas by id. More... | |
| deleteAllMapAreas () | |
| Delete all map areas. More... | |
| getLinkTypeOfArea (int $a_nr) | |
| Get link type. More... | |
| getTypeOfArea (int $a_nr) | |
| Get type (only internal link) More... | |
| getTargetOfArea (int $a_nr) | |
| Get target (only internal link) More... | |
| getTargetFrameOfArea (int $a_nr) | |
| Get target frame (only internal link) More... | |
| getHrefOfArea (int $a_nr) | |
| Get href (only external link) More... | |
| getTitleOfArea (int $a_nr) | |
| Get title. More... | |
| delete () | |
| delete full item node from dom More... | |
| makeMapWorkCopy (ilMediaItem $a_st_item, int $a_area_nr, bool $a_exclude, bool $a_output_new_area, string $a_area_type, string $a_coords) | |
| make map work copy of image More... | |
| hasAnyPropertiesSet () | |
| Has the alias any properties set? More... | |
| getModel () | |
Data Fields | |
| string | $hier_id = "" |
| string | $purpose = "" |
| DOMNode | $item_node = null |
Protected Member Functions | |
| getItemNode () | |
Protected Attributes | |
| DOMDocument | $dom_doc |
| ILIAS COPage Dom DomUtil | $dom_util |
| string | $parent_node_name |
| string | $pcid |
| ilLanguage | $lng |
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 ilMediaAliasItem Media Alias Item, component of a media object (file or reference)
Definition at line 24 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::__construct | ( | DOMDocument | $dom, |
| string | $a_hier_id, | ||
| string | $a_purpose, | ||
| string | $a_pc_id = "", |
||
| string | $a_parent_node_name = "MediaObject" |
||
| ) |
Definition at line 35 of file class.ilMediaAliasItem.php.
References $DIC, getMAItemNode(), getPcId(), ILIAS\Repository\lng(), and setPcId().
Here is the call graph for this function:| ilMediaAliasItem::addMapArea | ( | string | $a_shape_type, |
| string | $a_coords, | ||
| string | $a_title, | ||
| array | $a_link, | ||
| string | $a_id = "", |
||
| string | $hl_mode = "", |
||
| string | $hl_class = "" |
||
| ) |
Add a new area to the map.
Definition at line 658 of file class.ilMediaAliasItem.php.
References getItemNode().
Referenced by ilPCInteractiveImage\setMapAreaProperties(), PCMediaObjectTest\testAddMapArea(), PCMediaObjectTest\testAreaProps(), PCMediaObjectTest\testDeleteAllMapAreas(), PCMediaObjectTest\testDeleteMapArea(), and PCMediaObjectTest\testDeleteMapAreaById().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::definesCaption | ( | ) |
check if alias item defines own caption or derives caption from object
Definition at line 273 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by hasAnyPropertiesSet(), PCMediaObjectTest\testCaption(), and PCMediaObjectTest\testDeriveCaption().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::definesParameters | ( | ) |
check if alias item defines own parameters or derives parameters from object
Definition at line 458 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by hasAnyPropertiesSet(), PCMediaObjectTest\testDeriveParameters(), and PCMediaObjectTest\testParameters().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::definesSize | ( | ) |
check if alias item defines own size or derives size from object
Definition at line 182 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by hasAnyPropertiesSet(), PCMediaObjectTest\testDeriveSize(), and PCMediaObjectTest\testWidth().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::definesTextRepresentation | ( | ) |
check if alias item defines own TextRepresentation or derives TextRepresentation from object
Definition at line 333 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by hasAnyPropertiesSet(), PCMediaObjectTest\testDeriveTextRepresentation(), and PCMediaObjectTest\testTextRepresentation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::delete | ( | ) |
delete full item node from dom
Definition at line 860 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::deleteAllMapAreas | ( | ) |
Delete all map areas.
Definition at line 741 of file class.ilMediaAliasItem.php.
References $path.
Referenced by PCMediaObjectTest\testDeleteAllMapAreas().
Here is the caller graph for this function:| ilMediaAliasItem::deleteMapArea | ( | int | $a_nr | ) |
Delete a sinlge map area.
Definition at line 706 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testDeleteMapArea().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::deleteMapAreaById | ( | string | $a_id | ) |
Delete map areas by id.
Definition at line 723 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCInteractiveImage\deleteTrigger(), ilPCInteractiveImage\setMapAreaProperties(), and PCMediaObjectTest\testDeleteMapAreaById().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::deriveCaption | ( | ) |
derive caption from object (-> caption element is removed from media alias item)
Definition at line 290 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by PCMediaObjectTest\testDeriveCaption().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::deriveParameters | ( | ) |
derive parameters from object (-> all parameter elements are removed from media alias item)
Definition at line 474 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by PCMediaObjectTest\testDeriveParameters().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::deriveSize | ( | ) |
derive size from object (-> width and height attributes are removed from layout element)
Definition at line 199 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by PCMediaObjectTest\testDeriveSize().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::deriveTextRepresentation | ( | ) |
derive TextRepresentation from object (-> TextRepresentation element is removed from media alias item)
Definition at line 350 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by PCMediaObjectTest\testDeriveTextRepresentation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::exists | ( | ) |
check if item node exists
Definition at line 126 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getCaption | ( | ) |
Definition at line 255 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by getModel(), and PCMediaObjectTest\testCaption().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getHeight | ( | ) |
Definition at line 230 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by makeMapWorkCopy(), and PCMediaObjectTest\testHeight().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getHorizontalAlign | ( | ) |
Definition at line 376 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by PCMediaObjectTest\testHorizontalAlign().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getHrefOfArea | ( | int | $a_nr | ) |
Get href (only external link)
Definition at line 826 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testAddMapArea().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 58 of file class.ilMediaAliasItem.php.
References $item_node.
Referenced by addMapArea(), setCaption(), setHeight(), setHorizontalAlign(), setParameters(), setTextRepresentation(), and setWidth().
Here is the caller graph for this function:| ilMediaAliasItem::getLinkTypeOfArea | ( | int | $a_nr | ) |
Get link type.
Definition at line 753 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testAreaProps().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getMAItemNode | ( | string | $a_hier_id, |
| string | $a_purpose, | ||
| string | $a_pc_id = "", |
||
| string | $a_sub_element = "" |
||
| ) |
Definition at line 63 of file class.ilMediaAliasItem.php.
References $path.
Referenced by __construct(), definesCaption(), definesSize(), definesTextRepresentation(), deriveCaption(), deriveSize(), deriveTextRepresentation(), getCaption(), getHeight(), getHorizontalAlign(), getTextRepresentation(), and getWidth().
Here is the caller graph for this function:| ilMediaAliasItem::getMapAreaNodes | ( | string | $a_hier_id, |
| string | $a_purpose, | ||
| string | $a_pc_id = "" |
||
| ) |
Definition at line 99 of file class.ilMediaAliasItem.php.
References $path.
Referenced by deleteMapArea(), deleteMapAreaById(), getHrefOfArea(), getLinkTypeOfArea(), getMapAreas(), getTargetFrameOfArea(), getTargetOfArea(), getTitleOfArea(), getTypeOfArea(), setAreaExtLink(), setAreaHighlightClass(), setAreaHighlightMode(), setAreaIntLink(), setAreaTitle(), and setShape().
Here is the caller graph for this function:| ilMediaAliasItem::getMapAreas | ( | ) |
Get all map areas.
Definition at line 490 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapTableGUI\getItems(), getModel(), makeMapWorkCopy(), and PCMediaObjectTest\testAddMapArea().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getModel | ( | ) |
Definition at line 950 of file class.ilMediaAliasItem.php.
References getCaption(), and getMapAreas().
Here is the call graph for this function:| ilMediaAliasItem::getParameterNodes | ( | string | $a_hier_id, |
| string | $a_purpose, | ||
| string | $a_pc_id = "" |
||
| ) |
Definition at line 85 of file class.ilMediaAliasItem.php.
References $path.
Referenced by definesParameters(), deriveParameters(), getParameters(), getParameterString(), and setParameters().
Here is the caller graph for this function:| ilMediaAliasItem::getParameters | ( | ) |
Get all parameters as array.
Definition at line 438 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by PCMediaObjectTest\testParameters().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getParameterString | ( | ) |
Get all parameters as string.
Definition at line 421 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by PCMediaObjectTest\testParameters().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getPcId | ( | ) |
Definition at line 118 of file class.ilMediaAliasItem.php.
References $pcid.
Referenced by __construct(), definesCaption(), definesParameters(), definesSize(), definesTextRepresentation(), deleteMapArea(), deleteMapAreaById(), deriveCaption(), deriveParameters(), deriveSize(), deriveTextRepresentation(), getCaption(), getHeight(), getHorizontalAlign(), getHrefOfArea(), getLinkTypeOfArea(), getMapAreas(), getParameters(), getParameterString(), getTargetFrameOfArea(), getTargetOfArea(), getTextRepresentation(), getTitleOfArea(), getTypeOfArea(), getWidth(), setAreaExtLink(), setAreaHighlightClass(), setAreaHighlightMode(), setAreaIntLink(), setAreaTitle(), setParameters(), and setShape().
Here is the caller graph for this function:| ilMediaAliasItem::getTargetFrameOfArea | ( | int | $a_nr | ) |
Get target frame (only internal link)
Definition at line 809 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testAreaProps().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getTargetOfArea | ( | int | $a_nr | ) |
Get target (only internal link)
Definition at line 792 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testAreaProps().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getTextRepresentation | ( | ) |
Definition at line 315 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by PCMediaObjectTest\testTextRepresentation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getTitleOfArea | ( | int | $a_nr | ) |
Get title.
Definition at line 843 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by setAreaExtLink(), setAreaIntLink(), and PCMediaObjectTest\testAreaProps().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getTypeOfArea | ( | int | $a_nr | ) |
Get type (only internal link)
Definition at line 775 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testAreaProps().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getWidth | ( | ) |
Definition at line 164 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by makeMapWorkCopy(), and PCMediaObjectTest\testWidth().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::hasAnyPropertiesSet | ( | ) |
Has the alias any properties set?
Definition at line 942 of file class.ilMediaAliasItem.php.
References definesCaption(), definesParameters(), definesSize(), and definesTextRepresentation().
Here is the call graph for this function:| ilMediaAliasItem::insert | ( | ) |
inserts new node in dom
Definition at line 138 of file class.ilMediaAliasItem.php.
References $item_node, $parent_node_name, and $path.
| ilMediaAliasItem::makeMapWorkCopy | ( | ilMediaItem | $a_st_item, |
| int | $a_area_nr, | ||
| bool | $a_exclude, | ||
| bool | $a_output_new_area, | ||
| string | $a_area_type, | ||
| string | $a_coords | ||
| ) |
make map work copy of image
| int | $a_area_nr | draw area $a_area_nr only |
| bool | $a_exclude | true: draw all areas but area $a_area_nr |
Definition at line 872 of file class.ilMediaAliasItem.php.
References ilMediaItem\buildMapWorkImage(), getHeight(), ilMediaItem\getHeight(), getMapAreas(), ilMediaItem\getMapWorkImage(), ilMediaItem\getOriginalSource(), getWidth(), and ilMediaItem\getWidth().
Referenced by ilPCImageMapEditorGUI\makeMapWorkCopy().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::setAreaExtLink | ( | int | $a_nr, |
| string | $a_href | ||
| ) |
Set link of area to an external one.
Definition at line 579 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), getPcId(), and getTitleOfArea().
Here is the call graph for this function:| ilMediaAliasItem::setAreaHighlightClass | ( | int | $a_nr, |
| string | $a_class | ||
| ) |
Set highlight class single area.
Definition at line 641 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::setAreaHighlightMode | ( | int | $a_nr, |
| string | $a_mode | ||
| ) |
Set highlight mode single area.
Definition at line 624 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::setAreaIntLink | ( | int | $a_nr, |
| string | $a_type, | ||
| string | $a_target, | ||
| string | $a_target_frame | ||
| ) |
Set link of area to an internal one.
Definition at line 550 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), getPcId(), and getTitleOfArea().
Here is the call graph for this function:| ilMediaAliasItem::setAreaTitle | ( | int | $a_nr, |
| string | $a_title | ||
| ) |
Definition at line 529 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::setCaption | ( | string | $a_caption | ) |
Definition at line 244 of file class.ilMediaAliasItem.php.
References getItemNode().
Referenced by PCMediaObjectTest\testCaption(), PCMediaObjectTest\testDeriveCaption(), and ilPCInteractiveImageGUI\update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::setHeight | ( | string | $a_height | ) |
Definition at line 217 of file class.ilMediaAliasItem.php.
References getItemNode().
Referenced by PCMediaObjectTest\testDeriveSize(), and PCMediaObjectTest\testHeight().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::setHorizontalAlign | ( | string | $a_halign | ) |
Definition at line 363 of file class.ilMediaAliasItem.php.
References getItemNode().
Referenced by ilPCInteractiveImageGUI\centerAlign(), ilPCInteractiveImageGUI\leftAlign(), ilPCInteractiveImageGUI\leftFloatAlign(), ilPCInteractiveImageGUI\rightAlign(), ilPCInteractiveImageGUI\rightFloatAlign(), and PCMediaObjectTest\testHorizontalAlign().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::setParameters | ( | array | $a_par_array | ) |
Definition at line 390 of file class.ilMediaAliasItem.php.
References ilMediaItem\checkParameter(), getItemNode(), getParameterNodes(), and getPcId().
Referenced by PCMediaObjectTest\testDeriveParameters(), and PCMediaObjectTest\testParameters().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::setPcId | ( | string | $a_pcid | ) |
Definition at line 113 of file class.ilMediaAliasItem.php.
Referenced by __construct().
Here is the caller graph for this function:| ilMediaAliasItem::setShape | ( | int | $a_nr, |
| string | $a_shape_type, | ||
| string | $a_coords | ||
| ) |
Set shape and coords of single area.
Definition at line 605 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::setTextRepresentation | ( | string | $a_text_representation | ) |
Definition at line 303 of file class.ilMediaAliasItem.php.
References getItemNode().
Referenced by PCMediaObjectTest\testDeriveTextRepresentation(), and PCMediaObjectTest\testTextRepresentation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::setWidth | ( | string | $a_width | ) |
Definition at line 151 of file class.ilMediaAliasItem.php.
References getItemNode().
Referenced by PCMediaObjectTest\testDeriveSize(), and PCMediaObjectTest\testWidth().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 26 of file class.ilMediaAliasItem.php.
|
protected |
Definition at line 27 of file class.ilMediaAliasItem.php.
| string ilMediaAliasItem::$hier_id = "" |
Definition at line 31 of file class.ilMediaAliasItem.php.
| DOMNode ilMediaAliasItem::$item_node = null |
Definition at line 33 of file class.ilMediaAliasItem.php.
Referenced by getItemNode(), and insert().
|
protected |
Definition at line 30 of file class.ilMediaAliasItem.php.
|
protected |
Definition at line 28 of file class.ilMediaAliasItem.php.
Referenced by insert().
|
protected |
Definition at line 29 of file class.ilMediaAliasItem.php.
Referenced by getPcId().
| string ilMediaAliasItem::$purpose = "" |
Definition at line 32 of file class.ilMediaAliasItem.php.