|
ILIAS
release_8 Revision v8.24
|
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 (php4DOMDocument $a_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... | |
Data Fields | |
| php4DOMDocument | $dom |
| string | $hier_id = "" |
| string | $purpose = "" |
| php4DOMElement | $item_node = null |
Protected Attributes | |
| 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 | ( | php4DOMDocument | $a_dom, |
| string | $a_hier_id, | ||
| string | $a_purpose, | ||
| string | $a_pc_id = "", |
||
| string | $a_parent_node_name = "MediaObject" |
||
| ) |
Definition at line 34 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 = "" |
||
| ) |
Add a new area to the map.
Definition at line 682 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::definesCaption | ( | ) |
check if alias item defines own caption or derives caption from object
Definition at line 290 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::definesParameters | ( | ) |
check if alias item defines own parameters or derives parameters from object
Definition at line 479 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::definesSize | ( | ) |
check if alias item defines own size or derives size from object
Definition at line 197 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::definesTextRepresentation | ( | ) |
check if alias item defines own TextRepresentation or derives TextRepresentation from object
Definition at line 351 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::delete | ( | ) |
delete full item node from dom
Definition at line 884 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::deleteAllMapAreas | ( | ) |
Delete all map areas.
Definition at line 764 of file class.ilMediaAliasItem.php.
References $i, $path, $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilMediaAliasItem::deleteMapArea | ( | int | $a_nr | ) |
Delete a sinlge map area.
Definition at line 730 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::deleteMapAreaById | ( | string | $a_id | ) |
Delete map areas by id.
Definition at line 746 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::deriveCaption | ( | ) |
derive caption from object (-> caption element is removed from media alias item)
Definition at line 307 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::deriveParameters | ( | ) |
derive parameters from object (-> all parameter elements are removed from media alias item)
Definition at line 495 of file class.ilMediaAliasItem.php.
References $i.
| ilMediaAliasItem::deriveSize | ( | ) |
derive size from object (-> width and height attributes are removed from layout element)
Definition at line 214 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::deriveTextRepresentation | ( | ) |
derive TextRepresentation from object (-> TextRepresentation element is removed from media alias item)
Definition at line 368 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::exists | ( | ) |
check if item node exists
Definition at line 139 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getCaption | ( | ) |
Definition at line 272 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getHeight | ( | ) |
Definition at line 246 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getHorizontalAlign | ( | ) |
Definition at line 395 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getHrefOfArea | ( | int | $a_nr | ) |
Get href (only external link)
Definition at line 850 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getLinkTypeOfArea | ( | int | $a_nr | ) |
Get link type.
Definition at line 777 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getMAItemNode | ( | string | $a_hier_id, |
| string | $a_purpose, | ||
| string | $a_pc_id = "", |
||
| string | $a_sub_element = "" |
||
| ) |
Definition at line 56 of file class.ilMediaAliasItem.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getMapAreaNodes | ( | string | $a_hier_id, |
| string | $a_purpose, | ||
| string | $a_pc_id = "" |
||
| ) |
Definition at line 103 of file class.ilMediaAliasItem.php.
References $path, $res, and xpath_eval().
Here is the call graph for this function:| ilMediaAliasItem::getMapAreas | ( | ) |
Get all map areas.
Definition at line 514 of file class.ilMediaAliasItem.php.
References $i.
| ilMediaAliasItem::getParameterNodes | ( | string | $a_hier_id, |
| string | $a_purpose, | ||
| string | $a_pc_id = "" |
||
| ) |
Definition at line 80 of file class.ilMediaAliasItem.php.
References $path, $res, and xpath_eval().
Here is the call graph for this function:| ilMediaAliasItem::getParameters | ( | ) |
Get all parameters as array.
Definition at line 459 of file class.ilMediaAliasItem.php.
References $i.
| ilMediaAliasItem::getParameterString | ( | ) |
Get all parameters as string.
Definition at line 441 of file class.ilMediaAliasItem.php.
References $i.
| ilMediaAliasItem::getPcId | ( | ) |
Definition at line 131 of file class.ilMediaAliasItem.php.
Referenced by __construct().
Here is the caller graph for this function:| ilMediaAliasItem::getTargetFrameOfArea | ( | int | $a_nr | ) |
Get target frame (only internal link)
Definition at line 833 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getTargetOfArea | ( | int | $a_nr | ) |
Get target (only internal link)
Definition at line 816 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getTextRepresentation | ( | ) |
Definition at line 333 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getTitleOfArea | ( | int | $a_nr | ) |
Get title.
Definition at line 867 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getTypeOfArea | ( | int | $a_nr | ) |
Get type (only internal link)
Definition at line 799 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getWidth | ( | ) |
Definition at line 179 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::hasAnyPropertiesSet | ( | ) |
Has the alias any properties set?
Definition at line 968 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::insert | ( | ) |
inserts new node in dom
Definition at line 151 of file class.ilMediaAliasItem.php.
References $path, $res, php4DOMNode\append_child(), php4DOMElement\set_attribute(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| 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 896 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::setAreaExtLink | ( | int | $a_nr, |
| string | $a_href | ||
| ) |
Set link of area to an external one.
Definition at line 602 of file class.ilMediaAliasItem.php.
References $attributes, ilDOMUtil\deleteAllChildsByName(), and ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setAreaHighlightClass | ( | int | $a_nr, |
| string | $a_class | ||
| ) |
Set highlight class single area.
Definition at line 665 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::setAreaHighlightMode | ( | int | $a_nr, |
| string | $a_mode | ||
| ) |
Set highlight mode single area.
Definition at line 648 of file class.ilMediaAliasItem.php.
| 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 572 of file class.ilMediaAliasItem.php.
References $attributes, ilDOMUtil\deleteAllChildsByName(), and ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setAreaTitle | ( | int | $a_nr, |
| string | $a_title | ||
| ) |
Definition at line 551 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::setCaption | ( | string | $a_caption | ) |
Definition at line 260 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setHeight | ( | string | $a_height | ) |
Definition at line 232 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setHorizontalAlign | ( | string | $a_halign | ) |
Definition at line 381 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setParameters | ( | array | $a_par_array | ) |
Definition at line 409 of file class.ilMediaAliasItem.php.
References $attributes, $i, ilDOMUtil\addElementToList(), and ilMediaItem\checkParameter().
Here is the call graph for this function:| ilMediaAliasItem::setPcId | ( | string | $a_pcid | ) |
Definition at line 126 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 629 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::setTextRepresentation | ( | string | $a_text_representation | ) |
Definition at line 320 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::setWidth | ( | string | $a_width | ) |
Definition at line 165 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| php4DOMDocument ilMediaAliasItem::$dom |
Definition at line 29 of file class.ilMediaAliasItem.php.
| string ilMediaAliasItem::$hier_id = "" |
Definition at line 30 of file class.ilMediaAliasItem.php.
| php4DOMElement ilMediaAliasItem::$item_node = null |
Definition at line 32 of file class.ilMediaAliasItem.php.
|
protected |
Definition at line 28 of file class.ilMediaAliasItem.php.
|
protected |
Definition at line 26 of file class.ilMediaAliasItem.php.
|
protected |
Definition at line 27 of file class.ilMediaAliasItem.php.
| string ilMediaAliasItem::$purpose = "" |
Definition at line 31 of file class.ilMediaAliasItem.php.