|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilMediaAliasItem. More...
Collaboration diagram for ilMediaAliasItem:Public Member Functions | |
| __construct (&$a_dom, $a_hier_id, $a_purpose, $a_pc_id="", $a_parent_node_name="MediaObject") | |
| getMAItemNode ($a_hier_id, $a_purpose, $a_pc_id="", $a_sub_element="") | |
| getParameterNodes ($a_hier_id, $a_purpose, $a_pc_id="") | |
| getMapAreaNodes ($a_hier_id, $a_purpose, $a_pc_id="") | |
| setPcId ($a_pcid) | |
| Set PC Id. More... | |
| getPcId () | |
| Get PC Id. More... | |
| exists () | |
| check if item node exists More... | |
| insert () | |
| inserts new node in dom More... | |
| setWidth ($a_width) | |
| Set width. More... | |
| getWidth () | |
| Get width. More... | |
| 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 ($a_height) | |
| Set Height. More... | |
| getHeight () | |
| Get Height. More... | |
| setCaption ($a_caption) | |
| Set Caption. More... | |
| getCaption () | |
| Get Caption. More... | |
| 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 ($a_text_representation) | |
| Set TextRepresentation. More... | |
| getTextRepresentation () | |
| Get TextRepresentation. More... | |
| 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 ($a_halign) | |
| getHorizontalAlign () | |
| setParameters ($a_par_array) | |
| set parameter More... | |
| getParameterString () | |
| Get all parameters as string. More... | |
| getParameters () | |
| Get all parameters as array. More... | |
| getParameter ($a_name) | |
| get a single parameter 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 ($a_nr, $a_title) | |
| Set title of area. More... | |
| setAreaIntLink ($a_nr, $a_type, $a_target, $a_target_frame) | |
| Set link of area to an internal one. More... | |
| setAreaExtLink ($a_nr, $a_href) | |
| Set link of area to an external one. More... | |
| setShape ($a_nr, $a_shape_type, $a_coords) | |
| Set shape and coords of single area. More... | |
| setAreaHighlightMode ($a_nr, $a_mode) | |
| Set highlight mode single area. More... | |
| setAreaHighlightClass ($a_nr, $a_class) | |
| Set highlight class single area. More... | |
| addMapArea ( $a_shape_type, $a_coords, $a_title, $a_link, $a_id="") | |
| Add a new area to the map. More... | |
| deleteMapArea ($a_nr) | |
| Delete a sinlge map area. More... | |
| deleteMapAreaById ($a_id) | |
| Delete map areas by id. More... | |
| deleteAllMapAreas () | |
| Delete all map areas. More... | |
| getLinkTypeOfArea ($a_nr) | |
| Get link type. More... | |
| getTypeOfArea ($a_nr) | |
| Get type (only interna link. More... | |
| getTargetOfArea ($a_nr) | |
| Get target (only interna link. More... | |
| getTargetFrameOfArea ($a_nr) | |
| Get target frame (only interna link. More... | |
| getHrefOfArea ($a_nr) | |
| Get href (only external link) More... | |
| getTitleOfArea ($a_nr) | |
| Get title. More... | |
| delete () | |
| delete full item node from dom More... | |
| makeMapWorkCopy ( $a_st_item, $a_area_nr=0, $a_exclude=false, $a_output_new_area, $a_area_type, $a_coords) | |
| make map work copy of image More... | |
| hasAnyPropertiesSet () | |
| Has the alias any properties set? More... | |
Data Fields | |
| $dom | |
| $hier_id | |
| $purpose | |
| $item_node | |
Protected Attributes | |
| $lng | |
Class ilMediaAliasItem.
Media Alias Item, component of a media object (file or reference)
Definition at line 16 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::__construct | ( | & | $a_dom, |
| $a_hier_id, | |||
| $a_purpose, | |||
$a_pc_id = "", |
|||
$a_parent_node_name = "MediaObject" |
|||
| ) |
Definition at line 28 of file class.ilMediaAliasItem.php.
References $DIC, getMAItemNode(), getPcId(), and setPcId().
Here is the call graph for this function:| ilMediaAliasItem::addMapArea | ( | $a_shape_type, | |
| $a_coords, | |||
| $a_title, | |||
| $a_link, | |||
$a_id = "" |
|||
| ) |
Add a new area to the map.
Definition at line 701 of file class.ilMediaAliasItem.php.
References $attributes, ilDOMUtil\addElementToList(), and ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::definesCaption | ( | ) |
check if alias item defines own caption or derives caption from object
Definition at line 305 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by hasAnyPropertiesSet().
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 510 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by hasAnyPropertiesSet().
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 199 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by hasAnyPropertiesSet().
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 371 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by hasAnyPropertiesSet().
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 896 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::deleteAllMapAreas | ( | ) |
Delete all map areas.
Definition at line 782 of file class.ilMediaAliasItem.php.
References $i, $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilMediaAliasItem::deleteMapArea | ( | $a_nr | ) |
Delete a sinlge map area.
Definition at line 749 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::deleteMapAreaById | ( | $a_id | ) |
Delete map areas by id.
Definition at line 765 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::deriveCaption | ( | ) |
derive caption from object (-> caption element is removed from media alias item)
Definition at line 322 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::deriveParameters | ( | ) |
derive parameters from object (-> all parameter elements are removed from media alias item)
Definition at line 526 of file class.ilMediaAliasItem.php.
References $i, getParameterNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::deriveSize | ( | ) |
derive size from object (-> width and height attributes are removed from layout element)
Definition at line 216 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::deriveTextRepresentation | ( | ) |
derive TextRepresentation from object (-> TextRepresentation element is removed from media alias item)
Definition at line 388 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::exists | ( | ) |
check if item node exists
Definition at line 135 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::getCaption | ( | ) |
Get Caption.
Definition at line 287 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::getHeight | ( | ) |
Get Height.
Definition at line 254 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by makeMapWorkCopy().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getHorizontalAlign | ( | ) |
Definition at line 415 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::getHrefOfArea | ( | $a_nr | ) |
Get href (only external link)
Definition at line 864 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::getLinkTypeOfArea | ( | $a_nr | ) |
Get link type.
Definition at line 795 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::getMAItemNode | ( | $a_hier_id, | |
| $a_purpose, | |||
$a_pc_id = "", |
|||
$a_sub_element = "" |
|||
| ) |
Definition at line 50 of file class.ilMediaAliasItem.php.
References $res, xpath_eval(), and xpath_new_context().
Referenced by __construct(), definesCaption(), definesSize(), definesTextRepresentation(), deriveCaption(), deriveSize(), deriveTextRepresentation(), getCaption(), getHeight(), getHorizontalAlign(), getTextRepresentation(), and getWidth().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getMapAreaNodes | ( | $a_hier_id, | |
| $a_purpose, | |||
$a_pc_id = "" |
|||
| ) |
Definition at line 89 of file class.ilMediaAliasItem.php.
References $res, xpath_eval(), and xpath_new_context().
Referenced by deleteMapArea(), deleteMapAreaById(), getHrefOfArea(), getLinkTypeOfArea(), getMapAreas(), getTargetFrameOfArea(), getTargetOfArea(), getTitleOfArea(), getTypeOfArea(), setAreaExtLink(), setAreaHighlightClass(), setAreaHighlightMode(), setAreaIntLink(), setAreaTitle(), and setShape().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getMapAreas | ( | ) |
Get all map areas.
Definition at line 545 of file class.ilMediaAliasItem.php.
References $i, getMapAreaNodes(), and getPcId().
Referenced by makeMapWorkCopy().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getParameter | ( | $a_name | ) |
| ilMediaAliasItem::getParameterNodes | ( | $a_hier_id, | |
| $a_purpose, | |||
$a_pc_id = "" |
|||
| ) |
Definition at line 69 of file class.ilMediaAliasItem.php.
References $res, xpath_eval(), and xpath_new_context().
Referenced by definesParameters(), deriveParameters(), getParameters(), getParameterString(), and setParameters().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getParameters | ( | ) |
Get all parameters as array.
Definition at line 482 of file class.ilMediaAliasItem.php.
References $i, getParameterNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::getParameterString | ( | ) |
Get all parameters as string.
Definition at line 464 of file class.ilMediaAliasItem.php.
References $i, getParameterNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::getPcId | ( | ) |
Get PC Id.
Definition at line 125 of file class.ilMediaAliasItem.php.
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 | ( | $a_nr | ) |
Get target frame (only interna link.
Definition at line 848 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::getTargetOfArea | ( | $a_nr | ) |
Get target (only interna link.
Definition at line 832 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::getTextRepresentation | ( | ) |
Get TextRepresentation.
Definition at line 353 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::getTitleOfArea | ( | $a_nr | ) |
Get title.
Definition at line 880 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by setAreaExtLink(), and setAreaIntLink().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMediaAliasItem::getTypeOfArea | ( | $a_nr | ) |
Get type (only interna link.
Definition at line 816 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::getWidth | ( | ) |
Get width.
Definition at line 181 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by makeMapWorkCopy().
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 986 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 147 of file class.ilMediaAliasItem.php.
References $item_node, $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilMediaAliasItem::makeMapWorkCopy | ( | $a_st_item, | |
$a_area_nr = 0, |
|||
$a_exclude = false, |
|||
| $a_output_new_area, | |||
| $a_area_type, | |||
| $a_coords | |||
| ) |
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 909 of file class.ilMediaAliasItem.php.
References $i, $lng, $size, getHeight(), getMapAreas(), and getWidth().
Here is the call graph for this function:| ilMediaAliasItem::setAreaExtLink | ( | $a_nr, | |
| $a_href | |||
| ) |
Set link of area to an external one.
Definition at line 630 of file class.ilMediaAliasItem.php.
References $attributes, ilDOMUtil\deleteAllChildsByName(), getMapAreaNodes(), getPcId(), getTitleOfArea(), and ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setAreaHighlightClass | ( | $a_nr, | |
| $a_class | |||
| ) |
Set highlight class single area.
Definition at line 686 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::setAreaHighlightMode | ( | $a_nr, | |
| $a_mode | |||
| ) |
Set highlight mode single area.
Definition at line 671 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::setAreaIntLink | ( | $a_nr, | |
| $a_type, | |||
| $a_target, | |||
| $a_target_frame | |||
| ) |
Set link of area to an internal one.
Definition at line 604 of file class.ilMediaAliasItem.php.
References $attributes, ilDOMUtil\deleteAllChildsByName(), getMapAreaNodes(), getPcId(), getTitleOfArea(), and ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setAreaTitle | ( | $a_nr, | |
| $a_title | |||
| ) |
Set title of area.
Definition at line 585 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::setCaption | ( | $a_caption | ) |
Set Caption.
Definition at line 271 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setHeight | ( | $a_height | ) |
Set Height.
Definition at line 237 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setHorizontalAlign | ( | $a_halign | ) |
Definition at line 401 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setParameters | ( | $a_par_array | ) |
set parameter
Definition at line 431 of file class.ilMediaAliasItem.php.
References $attributes, $i, ilDOMUtil\addElementToList(), ilMediaItem\checkParameter(), getParameterNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::setPcId | ( | $a_pcid | ) |
Set PC Id.
| string | $a_pcid | PC Id |
Definition at line 115 of file class.ilMediaAliasItem.php.
Referenced by __construct().
Here is the caller graph for this function:| ilMediaAliasItem::setShape | ( | $a_nr, | |
| $a_shape_type, | |||
| $a_coords | |||
| ) |
Set shape and coords of single area.
Definition at line 655 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Here is the call graph for this function:| ilMediaAliasItem::setTextRepresentation | ( | $a_text_representation | ) |
Set TextRepresentation.
Definition at line 338 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::setWidth | ( | $a_width | ) |
Set width.
Definition at line 164 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Here is the call graph for this function:| ilMediaAliasItem::$dom |
Definition at line 23 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::$hier_id |
Definition at line 24 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::$item_node |
Definition at line 26 of file class.ilMediaAliasItem.php.
Referenced by insert().
|
protected |
Definition at line 21 of file class.ilMediaAliasItem.php.
Referenced by makeMapWorkCopy().
| ilMediaAliasItem::$purpose |
Definition at line 25 of file class.ilMediaAliasItem.php.