ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
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 (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="") | |
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().
ilMediaAliasItem::addMapArea | ( | string | $a_shape_type, |
string | $a_coords, | ||
string | $a_title, | ||
array | $a_link, | ||
string | $a_id = "" |
||
) |
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().
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().
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().
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().
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().
ilMediaAliasItem::delete | ( | ) |
delete full item node from dom
Definition at line 857 of file class.ilMediaAliasItem.php.
ilMediaAliasItem::deleteAllMapAreas | ( | ) |
Delete all map areas.
Definition at line 738 of file class.ilMediaAliasItem.php.
References $path.
Referenced by PCMediaObjectTest\testDeleteAllMapAreas().
ilMediaAliasItem::deleteMapArea | ( | int | $a_nr | ) |
Delete a sinlge map area.
Definition at line 703 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testDeleteMapArea().
ilMediaAliasItem::deleteMapAreaById | ( | string | $a_id | ) |
Delete map areas by id.
Definition at line 720 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCInteractiveImage\deleteTrigger(), ilPCInteractiveImage\setMapAreaProperties(), and PCMediaObjectTest\testDeleteMapAreaById().
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().
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().
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().
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().
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().
ilMediaAliasItem::getHeight | ( | ) |
Definition at line 230 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by makeMapWorkCopy(), and PCMediaObjectTest\testHeight().
ilMediaAliasItem::getHorizontalAlign | ( | ) |
Definition at line 376 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by PCMediaObjectTest\testHorizontalAlign().
ilMediaAliasItem::getHrefOfArea | ( | int | $a_nr | ) |
Get href (only external link)
Definition at line 823 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testAddMapArea().
|
protected |
Definition at line 58 of file class.ilMediaAliasItem.php.
References $item_node.
Referenced by addMapArea(), setCaption(), setHeight(), setHorizontalAlign(), setParameters(), setTextRepresentation(), and setWidth().
ilMediaAliasItem::getLinkTypeOfArea | ( | int | $a_nr | ) |
Get link type.
Definition at line 750 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testAreaProps().
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.
Referenced by __construct(), definesCaption(), definesSize(), definesTextRepresentation(), deriveCaption(), deriveSize(), deriveTextRepresentation(), getCaption(), getHeight(), getHorizontalAlign(), getTextRepresentation(), and getWidth().
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().
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().
ilMediaAliasItem::getModel | ( | ) |
Definition at line 947 of file class.ilMediaAliasItem.php.
References getCaption(), and getMapAreas().
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().
ilMediaAliasItem::getParameters | ( | ) |
Get all parameters as array.
Definition at line 438 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by PCMediaObjectTest\testParameters().
ilMediaAliasItem::getParameterString | ( | ) |
Get all parameters as string.
Definition at line 421 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by PCMediaObjectTest\testParameters().
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().
ilMediaAliasItem::getTargetFrameOfArea | ( | int | $a_nr | ) |
Get target frame (only internal link)
Definition at line 806 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testAreaProps().
ilMediaAliasItem::getTargetOfArea | ( | int | $a_nr | ) |
Get target (only internal link)
Definition at line 789 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testAreaProps().
ilMediaAliasItem::getTextRepresentation | ( | ) |
Definition at line 315 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by PCMediaObjectTest\testTextRepresentation().
ilMediaAliasItem::getTitleOfArea | ( | int | $a_nr | ) |
Get title.
Definition at line 840 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by setAreaExtLink(), setAreaIntLink(), and PCMediaObjectTest\testAreaProps().
ilMediaAliasItem::getTypeOfArea | ( | int | $a_nr | ) |
Get type (only internal link)
Definition at line 772 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by PCMediaObjectTest\testAreaProps().
ilMediaAliasItem::getWidth | ( | ) |
Definition at line 164 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by makeMapWorkCopy(), and PCMediaObjectTest\testWidth().
ilMediaAliasItem::hasAnyPropertiesSet | ( | ) |
Has the alias any properties set?
Definition at line 939 of file class.ilMediaAliasItem.php.
References definesCaption(), definesParameters(), definesSize(), and definesTextRepresentation().
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 869 of file class.ilMediaAliasItem.php.
References ilMediaItem\buildMapWorkImage(), getHeight(), ilMediaItem\getHeight(), getMapAreas(), ilMediaItem\getMapWorkImage(), ilMediaItem\getOriginalSource(), getWidth(), and ilMediaItem\getWidth().
Referenced by ilPCImageMapEditorGUI\makeMapWorkCopy().
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().
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().
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().
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().
ilMediaAliasItem::setAreaTitle | ( | int | $a_nr, |
string | $a_title | ||
) |
Definition at line 529 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
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().
ilMediaAliasItem::setHeight | ( | string | $a_height | ) |
Definition at line 217 of file class.ilMediaAliasItem.php.
References getItemNode().
Referenced by PCMediaObjectTest\testDeriveSize(), and PCMediaObjectTest\testHeight().
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().
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().
ilMediaAliasItem::setPcId | ( | string | $a_pcid | ) |
Definition at line 113 of file class.ilMediaAliasItem.php.
Referenced by __construct().
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().
ilMediaAliasItem::setTextRepresentation | ( | string | $a_text_representation | ) |
Definition at line 303 of file class.ilMediaAliasItem.php.
References getItemNode().
Referenced by PCMediaObjectTest\testDeriveTextRepresentation(), and PCMediaObjectTest\testTextRepresentation().
ilMediaAliasItem::setWidth | ( | string | $a_width | ) |
Definition at line 151 of file class.ilMediaAliasItem.php.
References getItemNode().
Referenced by PCMediaObjectTest\testDeriveSize(), and PCMediaObjectTest\testWidth().
|
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.