| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
Class ilMediaAliasItem. More...
 Collaboration diagram for ilMediaAliasItem:
 Collaboration diagram for ilMediaAliasItem:| Public Member Functions | |
| ilMediaAliasItem (&$a_dom, $a_hier_id, $a_purpose, $a_pc_id="") | |
| 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. | |
| getPcId () | |
| Get PC Id. | |
| exists () | |
| check if item node exists | |
| insert () | |
| inserts new node in dom | |
| setWidth ($a_width) | |
| Set width. | |
| getWidth () | |
| Get width. | |
| definesSize () | |
| check if alias item defines own size or derives size from object | |
| deriveSize () | |
| derive size from object (-> width and height attributes are removed from layout element) | |
| setHeight ($a_height) | |
| Set Height. | |
| getHeight () | |
| Get Height. | |
| setCaption ($a_caption) | |
| Set Caption. | |
| getCaption () | |
| Get Caption. | |
| definesCaption () | |
| check if alias item defines own caption or derives caption from object | |
| deriveCaption () | |
| derive caption from object (-> caption element is removed from media alias item) | |
| setTextRepresentation ($a_text_representation) | |
| Set TextRepresentation. | |
| getTextRepresentation () | |
| Get TextRepresentation. | |
| definesTextRepresentation () | |
| check if alias item defines own TextRepresentation or derives TextRepresentation from object | |
| deriveTextRepresentation () | |
| derive TextRepresentation from object (-> TextRepresentation element is removed from media alias item) | |
| setHorizontalAlign ($a_halign) | |
| getHorizontalAlign () | |
| setParameters ($a_par_array) | |
| set parameter | |
| getParameterString () | |
| Get all parameters as string. | |
| getParameters () | |
| Get all parameters as array. | |
| getParameter ($a_name) | |
| get a single parameter | |
| definesParameters () | |
| check if alias item defines own parameters or derives parameters from object | |
| deriveParameters () | |
| derive parameters from object (-> all parameter elements are removed from media alias item) | |
| getMapAreas () | |
| Get all map areas. | |
| setAreaTitle ($a_nr, $a_title) | |
| Set title of area. | |
| setAreaIntLink ($a_nr, $a_type, $a_target, $a_target_frame) | |
| Set link of area to an internal one. | |
| setAreaExtLink ($a_nr, $a_href) | |
| Set link of area to an external one. | |
| setShape ($a_nr, $a_shape_type, $a_coords) | |
| Set shape and coords of single area. | |
| addMapArea ($a_shape_type, $a_coords, $a_title, $a_link) | |
| Add a new area to the map. | |
| deleteMapArea ($a_nr) | |
| Delete a sinlge map area. | |
| deleteAllMapAreas () | |
| Delete all map areas. | |
| getLinkTypeOfArea ($a_nr) | |
| Get link type. | |
| getTypeOfArea ($a_nr) | |
| Get type (only interna link. | |
| getTargetOfArea ($a_nr) | |
| Get target (only interna link. | |
| getTargetFrameOfArea ($a_nr) | |
| Get target frame (only interna link. | |
| getHrefOfArea ($a_nr) | |
| Get href (only external link) | |
| getTitleOfArea ($a_nr) | |
| Get title. | |
| delete () | |
| delete full item node from dom | |
| 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 | |
| Data Fields | |
| $dom | |
| $hier_id | |
| $purpose | |
| $item_node | |
Class ilMediaAliasItem.
Media Alias Item, component of a media object (file or reference)
Definition at line 14 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::addMapArea | ( | $a_shape_type, | |
| $a_coords, | |||
| $a_title, | |||
| $a_link | |||
| ) | 
Add a new area to the map.
Definition at line 574 of file class.ilMediaAliasItem.php.
References ilDOMUtil\addElementToList(), and ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCImageMapEditorGUI\saveArea().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 270 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMediaAliasItem::definesParameters | ( | ) | 
check if alias item defines own parameters or derives parameters from object
Definition at line 438 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMediaAliasItem::definesSize | ( | ) | 
check if alias item defines own size or derives size from object
Definition at line 185 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMediaAliasItem::definesTextRepresentation | ( | ) | 
check if alias item defines own TextRepresentation or derives TextRepresentation from object
Definition at line 322 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMediaAliasItem::delete | ( | ) | 
delete full item node from dom
Definition at line 719 of file class.ilMediaAliasItem.php.
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::deleteAllMapAreas | ( | ) | 
Delete all map areas.
Definition at line 614 of file class.ilMediaAliasItem.php.
References $path, $res, xpath_eval(), and xpath_new_context().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMediaAliasItem::deleteMapArea | ( | $a_nr | ) | 
Delete a sinlge map area.
Definition at line 601 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\deleteAreas().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 284 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 452 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 ilPCMediaObjectGUI\saveAliasProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 336 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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.
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getCaption | ( | ) | 
Get Caption.
Definition at line 255 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\getAliasValues().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getHeight | ( | ) | 
Get Height.
Definition at line 230 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\getAliasValues(), ilPCMediaObjectGUI\initAliasForm(), and makeMapWorkCopy().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getHorizontalAlign | ( | ) | 
Definition at line 354 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMediaAliasItem::getHrefOfArea | ( | $a_nr | ) | 
Get href (only external link)
Definition at line 691 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\getHrefOfArea().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getLinkTypeOfArea | ( | $a_nr | ) | 
Get link type.
Definition at line 628 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\getLinkTypeOfArea().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getMAItemNode | ( | $a_hier_id, | |
| $a_purpose, | |||
| $a_pc_id = "", | |||
| $a_sub_element = "" | |||
| ) | 
Definition at line 33 of file class.ilMediaAliasItem.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by definesCaption(), definesSize(), definesTextRepresentation(), deriveCaption(), deriveSize(), deriveTextRepresentation(), getCaption(), getHeight(), getHorizontalAlign(), getTextRepresentation(), getWidth(), and ilMediaAliasItem().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 78 of file class.ilMediaAliasItem.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by deleteMapArea(), getHrefOfArea(), getLinkTypeOfArea(), getMapAreas(), getTargetFrameOfArea(), getTargetOfArea(), getTitleOfArea(), getTypeOfArea(), setAreaExtLink(), setAreaIntLink(), setAreaTitle(), and setShape().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getMapAreas | ( | ) | 
Get all map areas.
Definition at line 470 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapTableGUI\getItems(), makeMapWorkCopy(), and ilPCImageMapEditorGUI\updateAreas().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 55 of file class.ilMediaAliasItem.php.
References $path, $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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getParameters | ( | ) | 
Get all parameters as array.
Definition at line 412 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by ilPCMediaObjectGUI\initAliasForm().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getParameterString | ( | ) | 
Get all parameters as string.
Definition at line 396 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by ilPCMediaObjectGUI\getAliasValues().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getPcId | ( | ) | 
Get PC Id.
Definition at line 116 of file class.ilMediaAliasItem.php.
Referenced by definesCaption(), definesParameters(), definesSize(), definesTextRepresentation(), deleteMapArea(), deriveCaption(), deriveParameters(), deriveSize(), deriveTextRepresentation(), getCaption(), getHeight(), getHorizontalAlign(), getHrefOfArea(), getLinkTypeOfArea(), getMapAreas(), getParameters(), getParameterString(), getTargetFrameOfArea(), getTargetOfArea(), getTextRepresentation(), getTitleOfArea(), getTypeOfArea(), getWidth(), ilMediaAliasItem(), setAreaExtLink(), setAreaIntLink(), setAreaTitle(), setParameters(), and setShape().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getTargetFrameOfArea | ( | $a_nr | ) | 
Get target frame (only interna link.
Definition at line 677 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\getTargetFrameOfArea().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getTargetOfArea | ( | $a_nr | ) | 
Get target (only interna link.
Definition at line 663 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\getTargetOfArea().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getTextRepresentation | ( | ) | 
Get TextRepresentation.
Definition at line 307 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\getAliasValues().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getTitleOfArea | ( | $a_nr | ) | 
Get title.
Definition at line 705 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getTypeOfArea | ( | $a_nr | ) | 
Get type (only interna link.
Definition at line 649 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\getTypeOfArea().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::getWidth | ( | ) | 
Get width.
Definition at line 170 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\getAliasValues(), and makeMapWorkCopy().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::ilMediaAliasItem | ( | & | $a_dom, | 
| $a_hier_id, | |||
| $a_purpose, | |||
| $a_pc_id = "" | |||
| ) | 
Definition at line 21 of file class.ilMediaAliasItem.php.
References getMAItemNode(), getPcId(), and setPcId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMediaAliasItem::insert | ( | ) | 
inserts new node in dom
Definition at line 141 of file class.ilMediaAliasItem.php.
References $item_node, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller 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 733 of file class.ilMediaAliasItem.php.
References $lng, $size, getHeight(), getMapAreas(), and getWidth().
Referenced by ilPCImageMapEditorGUI\makeMapWorkCopy().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::setAreaExtLink | ( | $a_nr, | |
| $a_href | |||
| ) | 
Set link of area to an external one.
Definition at line 543 of file class.ilMediaAliasItem.php.
References $title, ilDOMUtil\deleteAllChildsByName(), getMapAreaNodes(), getPcId(), getTitleOfArea(), and ilDOMUtil\setFirstOptionalElement().
 Here is the call graph for this function:
 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 525 of file class.ilMediaAliasItem.php.
References $title, ilDOMUtil\deleteAllChildsByName(), getMapAreaNodes(), getPcId(), getTitleOfArea(), and ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCImageMapEditorGUI\saveArea().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::setAreaTitle | ( | $a_nr, | |
| $a_title | |||
| ) | 
Set title of area.
Definition at line 507 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMediaAliasItem::setCaption | ( | $a_caption | ) | 
Set Caption.
Definition at line 244 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::setHeight | ( | $a_height | ) | 
Set Height.
Definition at line 219 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::setHorizontalAlign | ( | $a_halign | ) | 
Definition at line 346 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCMediaObjectGUI\centerAlign(), ilPCMediaObjectGUI\leftAlign(), ilPCMediaObjectGUI\leftFloatAlign(), ilPCMediaObjectGUI\rightAlign(), and ilPCMediaObjectGUI\rightFloatAlign().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::setParameters | ( | $a_par_array | ) | 
set parameter
Definition at line 367 of file class.ilMediaAliasItem.php.
References ilDOMUtil\addElementToList(), getParameterNodes(), and getPcId().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::setPcId | ( | $a_pcid | ) | 
Set PC Id.
| string | $a_pcid | PC Id | 
Definition at line 106 of file class.ilMediaAliasItem.php.
Referenced by ilMediaAliasItem().
 Here is the caller graph for this function:
 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 560 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\saveArea().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::setTextRepresentation | ( | $a_text_representation | ) | 
Set TextRepresentation.
Definition at line 297 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::setWidth | ( | $a_width | ) | 
Set width.
Definition at line 159 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMediaAliasItem::$dom | 
Definition at line 16 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::$hier_id | 
Definition at line 17 of file class.ilMediaAliasItem.php.
| ilMediaAliasItem::$item_node | 
Definition at line 19 of file class.ilMediaAliasItem.php.
Referenced by insert().
| ilMediaAliasItem::$purpose | 
Definition at line 18 of file class.ilMediaAliasItem.php.