ILIAS
Release_3_10_x_branch Revision 61812
|
Class ilMediaAliasItem. More...
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) | |
setHorizontalAlign ($a_halign) | |
getHorizontalAlign () | |
setParameters ($a_par_array) | |
set parameter | |
getParameterString () | |
get all parameters | |
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 35 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 527 of file class.ilMediaAliasItem.php.
References ilDOMUtil\addElementToList(), and ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCImageMapEditorGUI\saveArea().
ilMediaAliasItem::definesCaption | ( | ) |
check if alias item defines own caption or derives caption from object
Definition at line 291 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
ilMediaAliasItem::definesParameters | ( | ) |
check if alias item defines own parameters or derives parameters from object
Definition at line 391 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
ilMediaAliasItem::definesSize | ( | ) |
check if alias item defines own size or derives size from object
Definition at line 206 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
ilMediaAliasItem::delete | ( | ) |
delete full item node from dom
Definition at line 672 of file class.ilMediaAliasItem.php.
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
ilMediaAliasItem::deleteAllMapAreas | ( | ) |
Delete all map areas.
Definition at line 567 of file class.ilMediaAliasItem.php.
References $res, xpath_eval(), and xpath_new_context().
ilMediaAliasItem::deleteMapArea | ( | $a_nr | ) |
Delete a sinlge map area.
Definition at line 554 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\deleteAreas().
ilMediaAliasItem::deriveCaption | ( | ) |
derive caption from object (-> caption element is removed from media alias item)
Definition at line 305 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
ilMediaAliasItem::deriveParameters | ( | ) |
derive parameters from object (-> all parameter elements are removed from media alias item)
Definition at line 405 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
ilMediaAliasItem::deriveSize | ( | ) |
derive size from object (-> width and height attributes are removed from layout element)
Definition at line 220 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
ilMediaAliasItem::exists | ( | ) |
check if item node exists
Definition at line 147 of file class.ilMediaAliasItem.php.
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
ilMediaAliasItem::getCaption | ( | ) |
Get Caption.
Definition at line 276 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\editAlias().
ilMediaAliasItem::getHeight | ( | ) |
Get Height.
Definition at line 251 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\editAlias(), and makeMapWorkCopy().
ilMediaAliasItem::getHorizontalAlign | ( | ) |
Definition at line 323 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
ilMediaAliasItem::getHrefOfArea | ( | $a_nr | ) |
Get href (only external link)
Definition at line 644 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\getHrefOfArea().
ilMediaAliasItem::getLinkTypeOfArea | ( | $a_nr | ) |
Get link type.
Definition at line 581 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\getLinkTypeOfArea().
ilMediaAliasItem::getMAItemNode | ( | $a_hier_id, | |
$a_purpose, | |||
$a_pc_id = "" , |
|||
$a_sub_element = "" |
|||
) |
Definition at line 54 of file class.ilMediaAliasItem.php.
References $res, xpath_eval(), and xpath_new_context().
Referenced by definesCaption(), definesSize(), deriveCaption(), deriveSize(), getCaption(), getHeight(), getHorizontalAlign(), getWidth(), and ilMediaAliasItem().
ilMediaAliasItem::getMapAreaNodes | ( | $a_hier_id, | |
$a_purpose, | |||
$a_pc_id = "" |
|||
) |
Definition at line 99 of file class.ilMediaAliasItem.php.
References $res, xpath_eval(), and xpath_new_context().
Referenced by deleteMapArea(), getHrefOfArea(), getLinkTypeOfArea(), getMapAreas(), getTargetFrameOfArea(), getTargetOfArea(), getTitleOfArea(), getTypeOfArea(), setAreaExtLink(), setAreaIntLink(), setAreaTitle(), and setShape().
ilMediaAliasItem::getMapAreas | ( | ) |
Get all map areas.
Definition at line 423 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapTableGUI\getItems(), makeMapWorkCopy(), and ilPCImageMapEditorGUI\updateAreas().
ilMediaAliasItem::getParameter | ( | $a_name | ) |
ilMediaAliasItem::getParameterNodes | ( | $a_hier_id, | |
$a_purpose, | |||
$a_pc_id = "" |
|||
) |
Definition at line 76 of file class.ilMediaAliasItem.php.
References $res, xpath_eval(), and xpath_new_context().
Referenced by definesParameters(), deriveParameters(), getParameterString(), and setParameters().
ilMediaAliasItem::getParameterString | ( | ) |
get all parameters
Definition at line 365 of file class.ilMediaAliasItem.php.
References getParameterNodes(), and getPcId().
Referenced by ilPCMediaObjectGUI\editAlias().
ilMediaAliasItem::getPcId | ( | ) |
Get PC Id.
Definition at line 137 of file class.ilMediaAliasItem.php.
Referenced by definesCaption(), definesParameters(), definesSize(), deleteMapArea(), deriveCaption(), deriveParameters(), deriveSize(), getCaption(), getHeight(), getHorizontalAlign(), getHrefOfArea(), getLinkTypeOfArea(), getMapAreas(), getParameterString(), getTargetFrameOfArea(), getTargetOfArea(), getTitleOfArea(), getTypeOfArea(), getWidth(), ilMediaAliasItem(), setAreaExtLink(), setAreaIntLink(), setAreaTitle(), setParameters(), and setShape().
ilMediaAliasItem::getTargetFrameOfArea | ( | $a_nr | ) |
Get target frame (only interna link.
Definition at line 630 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\getTargetFrameOfArea().
ilMediaAliasItem::getTargetOfArea | ( | $a_nr | ) |
Get target (only interna link.
Definition at line 616 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\getTargetOfArea().
ilMediaAliasItem::getTitleOfArea | ( | $a_nr | ) |
Get title.
Definition at line 658 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by setAreaExtLink(), and setAreaIntLink().
ilMediaAliasItem::getTypeOfArea | ( | $a_nr | ) |
Get type (only interna link.
Definition at line 602 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\getTypeOfArea().
ilMediaAliasItem::getWidth | ( | ) |
Get width.
Definition at line 191 of file class.ilMediaAliasItem.php.
References getMAItemNode(), and getPcId().
Referenced by ilPCMediaObjectGUI\editAlias(), and makeMapWorkCopy().
ilMediaAliasItem::ilMediaAliasItem | ( | & | $a_dom, |
$a_hier_id, | |||
$a_purpose, | |||
$a_pc_id = "" |
|||
) |
Definition at line 42 of file class.ilMediaAliasItem.php.
References getMAItemNode(), getPcId(), and setPcId().
ilMediaAliasItem::insert | ( | ) |
inserts new node in dom
Definition at line 162 of file class.ilMediaAliasItem.php.
References $item_node, $res, xpath_eval(), and xpath_new_context().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
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 686 of file class.ilMediaAliasItem.php.
References $lng, $size, getHeight(), getMapAreas(), and getWidth().
Referenced by ilPCImageMapEditorGUI\makeMapWorkCopy().
ilMediaAliasItem::setAreaExtLink | ( | $a_nr, | |
$a_href | |||
) |
Set link of area to an external one.
Definition at line 496 of file class.ilMediaAliasItem.php.
References $title, ilDOMUtil\deleteAllChildsByName(), getMapAreaNodes(), getPcId(), getTitleOfArea(), and ilDOMUtil\setFirstOptionalElement().
ilMediaAliasItem::setAreaIntLink | ( | $a_nr, | |
$a_type, | |||
$a_target, | |||
$a_target_frame | |||
) |
Set link of area to an internal one.
Definition at line 478 of file class.ilMediaAliasItem.php.
References $title, ilDOMUtil\deleteAllChildsByName(), getMapAreaNodes(), getPcId(), getTitleOfArea(), and ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCImageMapEditorGUI\saveArea().
ilMediaAliasItem::setAreaTitle | ( | $a_nr, | |
$a_title | |||
) |
Set title of area.
Definition at line 460 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
ilMediaAliasItem::setCaption | ( | $a_caption | ) |
Set Caption.
Definition at line 265 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
ilMediaAliasItem::setHeight | ( | $a_height | ) |
Set Height.
Definition at line 240 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
ilMediaAliasItem::setHorizontalAlign | ( | $a_halign | ) |
Definition at line 315 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCMediaObjectGUI\centerAlign(), ilPCMediaObjectGUI\leftAlign(), ilPCMediaObjectGUI\leftFloatAlign(), ilPCMediaObjectGUI\rightAlign(), and ilPCMediaObjectGUI\rightFloatAlign().
ilMediaAliasItem::setParameters | ( | $a_par_array | ) |
set parameter
Definition at line 336 of file class.ilMediaAliasItem.php.
References ilDOMUtil\addElementToList(), getParameterNodes(), and getPcId().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
ilMediaAliasItem::setPcId | ( | $a_pcid | ) |
Set PC Id.
string | $a_pcid | PC Id |
Definition at line 127 of file class.ilMediaAliasItem.php.
Referenced by ilMediaAliasItem().
ilMediaAliasItem::setShape | ( | $a_nr, | |
$a_shape_type, | |||
$a_coords | |||
) |
Set shape and coords of single area.
Definition at line 513 of file class.ilMediaAliasItem.php.
References getMapAreaNodes(), and getPcId().
Referenced by ilPCImageMapEditorGUI\saveArea().
ilMediaAliasItem::setWidth | ( | $a_width | ) |
Set width.
Definition at line 180 of file class.ilMediaAliasItem.php.
References ilDOMUtil\setFirstOptionalElement().
Referenced by ilPCMediaObjectGUI\saveAliasProperties().
ilMediaAliasItem::$dom |
Definition at line 37 of file class.ilMediaAliasItem.php.
ilMediaAliasItem::$hier_id |
Definition at line 38 of file class.ilMediaAliasItem.php.
ilMediaAliasItem::$item_node |
Definition at line 40 of file class.ilMediaAliasItem.php.
Referenced by insert().
ilMediaAliasItem::$purpose |
Definition at line 39 of file class.ilMediaAliasItem.php.