|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Collaboration diagram for ilMapArea:Public Member Functions | |
| __construct ($a_item_id=0, $a_nr=0) | |
| map area More... | |
| create () | |
| create persistent map area object in db More... | |
| read () | |
| read map area data into object (item id and nr must be set) More... | |
| update () | |
| update map area More... | |
| setHighlightMode ($a_val) | |
| Set highlight mode. More... | |
| getHighlightMode () | |
| Get highlight mode. More... | |
| setHighlightClass ($a_val) | |
| Set highlight class. More... | |
| getHighlightClass () | |
| Get highlight class. More... | |
| setItemId ($a_item_id) | |
| set media item id More... | |
| getItemId () | |
| get item id More... | |
| setNr ($a_nr) | |
| set area number More... | |
| getNr () | |
| get area number More... | |
| setShape ($a_shape) | |
| set shape (IL_AREA_RECT, IL_AREA_CIRCLE, IL_AREA_POLY, IL_AREA_WHOLE_PICTURE) More... | |
| getShape () | |
| get shape More... | |
| setCoords ($a_coords) | |
| set coords of area More... | |
| getCoords () | |
| get coords More... | |
| setTitle ($a_title) | |
| set (tooltip)title of area More... | |
| appendTitle ($a_title_str) | |
| append string to (tooltip) title of area More... | |
| getTitle () | |
| get (tooltip) title More... | |
| setLinkType ($a_link_type) | |
| set link type More... | |
| getLinkType () | |
| get link type More... | |
| setHref ($a_href) | |
| set hyper reference (external link only) More... | |
| getHref () | |
| get hyper reference url (external link only) More... | |
| setExtTitle ($a_title) | |
| set link text (external link only) More... | |
| getExtTitle () | |
| get link text (external link only) More... | |
| setTarget ($a_target) | |
| set link target (internal link only) More... | |
| getTarget ($a_insert_inst=false) | |
| get link target (internal link only) More... | |
| setType ($a_type) | |
| set link type (internal link only) More... | |
| getType () | |
| get link type (internal link only) More... | |
| setTargetFrame ($a_target_frame) | |
| set link target frame (internal link only) More... | |
| getTargetFrame () | |
| get link target frame (internal link only) More... | |
| draw (&$a_image, $a_col1, $a_col2, $a_close_poly=true, $a_x_ratio=1, $a_y_ratio=1) | |
| draw image to More... | |
| drawLine (&$im, $x1, $y1, $x2, $y2, $c1, $c2) | |
| draws an outlined two color line in an image More... | |
| drawRect (&$im, $coords, $c1, $c2, $a_x_ratio=1, $a_y_ratio=1) | |
| draws an outlined two color rectangle More... | |
| drawPoly (&$im, $coords, $c1, $c2, $closed, $a_x_ratio=1, $a_y_ratio=1) | |
| draws an outlined two color polygon More... | |
| drawCircle (&$im, $coords, $c1, $c2, $a_x_ratio=1, $a_y_ratio=1) | |
| draws an outlined two colored circle More... | |
Static Public Member Functions | |
| static | _getMaxNr ($a_item_id) |
| get maximum nr of media item (static) More... | |
| static | _resolveIntLinks ($a_item_id) |
| resolve internal links of an item id More... | |
| static | _getIntLinks ($a_item_id) |
| get all internal links of a media items map areas More... | |
| static | _getMobsForTarget ($a_type, $a_target) |
| Get areas for a certain target. More... | |
| static | getAllHighlightModes () |
| Get all highlight modes. More... | |
| static | getAllHighlightClasses () |
| Get all highlight classes. More... | |
| static | countCoords ($c) |
| count the number of coordinates (x,y) in a coordinate string (format: "x1,y1,x2,y2,x3,y3,...") More... | |
Data Fields | |
| const | HL_NONE = "" |
| const | HL_HOVER = "Hover" |
| const | HL_ALWAYS = "Always" |
| const | HLCL_ACCENTED = "" |
| const | HLCL_LIGHT = "Light" |
| const | HLCL_DARK = "Dark" |
| $item_id | |
| $nr | |
| $shape | |
| $coords | |
| $title | |
| $linktype | |
| $xl_title | |
| $xl_href | |
| $il_target | |
| $il_type | |
| $il_target_frame | |
Protected Attributes | |
| $db | |
Class ilMapArea.
Map Area of an Image Map, subobject of Media Item
Definition at line 36 of file class.ilMapArea.php.
| ilMapArea::__construct | ( | $a_item_id = 0, |
|
$a_nr = 0 |
|||
| ) |
map area
| int | $a_item_id | parent media item id |
| int | $a_nr | map area number within media item |
Definition at line 69 of file class.ilMapArea.php.
References $DIC, read(), setItemId(), and setNr().
Here is the call graph for this function:
|
static |
get all internal links of a media items map areas
| int | $a_item_id | media item id |
Definition at line 214 of file class.ilMapArea.php.
References $DIC, $ilDB, $links, $target, $type, and IL_INT_LINK.
Referenced by ilMediaItem\_getMapAreasIntLinks(), and ilObjMediaObject\getLinkedMediaObjects().
Here is the caller graph for this function:
|
static |
get maximum nr of media item (static)
| int | $a_item_id | item id |
Definition at line 114 of file class.ilMapArea.php.
Referenced by ilMediaItem\_getMediaItemsOfMOb(), ilImageMapEditorGUI\deleteAreas(), ilImageMapTableGUI\getItems(), ilMediaItem\read(), ilImageMapEditorGUI\saveArea(), and ilImageMapEditorGUI\updateAreas().
Here is the caller graph for this function:
|
static |
Get areas for a certain target.
Definition at line 243 of file class.ilMapArea.php.
References $a_type, $DIC, $ilDB, $mobs, and ilMediaItem\_lookupMobId().
Referenced by ilLMObject\updateInternalLinks().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
resolve internal links of an item id
Definition at line 180 of file class.ilMapArea.php.
References $DIC, $ilDB, $item_id, $nr, $query, $target, $type, ilInternalLink\_getIdForImportId(), and IL_INT_LINK.
Referenced by ilMediaItem\_resolveMapAreaLinks().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMapArea::appendTitle | ( | $a_title_str | ) |
append string to (tooltip) title of area
| string | $a_title_str | title string |
Definition at line 436 of file class.ilMapArea.php.
|
static |
count the number of coordinates (x,y) in a coordinate string (format: "x1,y1,x2,y2,x3,y3,...")
| string | $c | coordinate string |
Definition at line 792 of file class.ilMapArea.php.
Referenced by ilImageMapEditorGUI\addArea(), drawPoly(), ilImageMapEditorGUI\editMapArea(), and ilImageMapEditorGUI\setShape().
Here is the caller graph for this function:| ilMapArea::create | ( | ) |
create persistent map area object in db
Definition at line 85 of file class.ilMapArea.php.
References $db, $ilDB, getCoords(), getHighlightClass(), getHighlightMode(), getHref(), getItemId(), getLinkType(), getNr(), getShape(), getTarget(), getTargetFrame(), getTitle(), and getType().
Here is the call graph for this function:| ilMapArea::draw | ( | & | $a_image, |
| $a_col1, | |||
| $a_col2, | |||
$a_close_poly = true, |
|||
$a_x_ratio = 1, |
|||
$a_y_ratio = 1 |
|||
| ) |
draw image to
| boolean | $a_close_poly | close polygon |
Definition at line 585 of file class.ilMapArea.php.
References drawCircle(), drawPoly(), drawRect(), getCoords(), and getShape().
Here is the call graph for this function:| ilMapArea::drawCircle | ( | & | $im, |
| $coords, | |||
| $c1, | |||
| $c2, | |||
$a_x_ratio = 1, |
|||
$a_y_ratio = 1 |
|||
| ) |
draws an outlined two colored circle
| int | $im | image identifier as returned by ImageCreateFromGIF() |
| string | $coords | coordinate string, format : "x,y,r" with (x,y) as center point and r as radius |
| int | $c1 | color identifier 1 |
| int | $c3 | color identifier 2 |
Definition at line 751 of file class.ilMapArea.php.
References $coords.
Referenced by draw().
Here is the caller graph for this function:| ilMapArea::drawLine | ( | & | $im, |
| $x1, | |||
| $y1, | |||
| $x2, | |||
| $y2, | |||
| $c1, | |||
| $c2 | |||
| ) |
draws an outlined two color line in an image
| int | $im | image identifier as returned by ImageCreateFromGIF() etc. |
| int | $x1 | x-coordinate of starting point |
| int | $y1 | y-coordinate of starting point |
| int | $x2 | x-coordinate of ending point |
| int | $y2 | y-coordinate of ending point |
| int | $c1 | color identifier 1 |
| int | $c2 | color identifier 2 |
Definition at line 641 of file class.ilMapArea.php.
Referenced by drawPoly(), and drawRect().
Here is the caller graph for this function:| ilMapArea::drawPoly | ( | & | $im, |
| $coords, | |||
| $c1, | |||
| $c2, | |||
| $closed, | |||
$a_x_ratio = 1, |
|||
$a_y_ratio = 1 |
|||
| ) |
draws an outlined two color polygon
| int | $im | image identifier as returned by ImageCreateFromGIF() etc. |
| string | $coords | coordinate string, format : "x1,y1,x2,y2,..." with every (x,y) pair is an ending point of a line of the polygon |
| int | $c1 | color identifier 1 |
| int | $c3 | color identifier 2 |
| boolean | $closed | true: the first and the last point will be connected with a line |
Definition at line 712 of file class.ilMapArea.php.
References $coords, $i, countCoords(), and drawLine().
Referenced by draw().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMapArea::drawRect | ( | & | $im, |
| $coords, | |||
| $c1, | |||
| $c2, | |||
$a_x_ratio = 1, |
|||
$a_y_ratio = 1 |
|||
| ) |
draws an outlined two color rectangle
| int | $im | image identifier as returned by ImageCreateFromGIF() etc. |
| string | $coords | coordinate string, format : "x1,y1,x2,y2" with (x1,y1) is top left and (x2,y2) is bottom right point of the rectangle |
| int | $c1 | color identifier 1 |
| int | $c2 | color identifier 2 |
Definition at line 659 of file class.ilMapArea.php.
References $coords, and drawLine().
Referenced by draw().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get all highlight classes.
Definition at line 308 of file class.ilMapArea.php.
Referenced by ilImageMapTableGUI\__construct().
Here is the caller graph for this function:
|
static |
Get all highlight modes.
return
Definition at line 269 of file class.ilMapArea.php.
Referenced by ilImageMapTableGUI\__construct().
Here is the caller graph for this function:| ilMapArea::getCoords | ( | ) |
| ilMapArea::getExtTitle | ( | ) |
get link text (external link only)
Definition at line 506 of file class.ilMapArea.php.
References $xl_title.
| ilMapArea::getHighlightClass | ( | ) |
Get highlight class.
Definition at line 336 of file class.ilMapArea.php.
Referenced by create(), and update().
Here is the caller graph for this function:| ilMapArea::getHighlightMode | ( | ) |
Get highlight mode.
Definition at line 298 of file class.ilMapArea.php.
Referenced by create(), and update().
Here is the caller graph for this function:| ilMapArea::getHref | ( | ) |
get hyper reference url (external link only)
| string | hyper ref url |
Definition at line 486 of file class.ilMapArea.php.
References $xl_href.
Referenced by create(), and update().
Here is the caller graph for this function:| ilMapArea::getItemId | ( | ) |
| ilMapArea::getLinkType | ( | ) |
get link type
Definition at line 466 of file class.ilMapArea.php.
References $linktype.
Referenced by create(), and update().
Here is the caller graph for this function:| ilMapArea::getNr | ( | ) |
| ilMapArea::getShape | ( | ) |
| ilMapArea::getTarget | ( | $a_insert_inst = false | ) |
get link target (internal link only)
Definition at line 526 of file class.ilMapArea.php.
References $il_target, and $target.
Referenced by create(), and update().
Here is the caller graph for this function:| ilMapArea::getTargetFrame | ( | ) |
get link target frame (internal link only)
Definition at line 575 of file class.ilMapArea.php.
References $il_target_frame.
Referenced by create(), and update().
Here is the caller graph for this function:| ilMapArea::getTitle | ( | ) |
get (tooltip) title
Definition at line 446 of file class.ilMapArea.php.
References $title.
Referenced by create(), and update().
Here is the caller graph for this function:| ilMapArea::getType | ( | ) |
get link type (internal link only)
Definition at line 553 of file class.ilMapArea.php.
References $il_type.
Referenced by create(), and update().
Here is the caller graph for this function:| ilMapArea::read | ( | ) |
read map area data into object (item id and nr must be set)
Definition at line 131 of file class.ilMapArea.php.
References $db, $ilDB, getItemId(), getNr(), setCoords(), setHighlightClass(), setHighlightMode(), setHref(), setLinkType(), setNr(), setShape(), setTarget(), setTargetFrame(), setTitle(), and setType().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMapArea::setCoords | ( | $a_coords | ) |
set coords of area
| string | $a_coords | coords (comma separated integers) |
Definition at line 406 of file class.ilMapArea.php.
Referenced by read().
Here is the caller graph for this function:| ilMapArea::setExtTitle | ( | $a_title | ) |
set link text (external link only)
| string | $a_title | link text |
Definition at line 496 of file class.ilMapArea.php.
| ilMapArea::setHighlightClass | ( | $a_val | ) |
Set highlight class.
| string | $a_val | highlight class |
Definition at line 326 of file class.ilMapArea.php.
Referenced by read().
Here is the caller graph for this function:| ilMapArea::setHighlightMode | ( | $a_val | ) |
Set highlight mode.
| string | $a_val | highlight mode |
Definition at line 288 of file class.ilMapArea.php.
Referenced by read().
Here is the caller graph for this function:| ilMapArea::setHref | ( | $a_href | ) |
set hyper reference (external link only)
| string | $a_href | hyper ref url |
Definition at line 476 of file class.ilMapArea.php.
Referenced by read().
Here is the caller graph for this function:| ilMapArea::setItemId | ( | $a_item_id | ) |
set media item id
| int | $a_item_id | media item id |
Definition at line 346 of file class.ilMapArea.php.
Referenced by __construct().
Here is the caller graph for this function:| ilMapArea::setLinkType | ( | $a_link_type | ) |
set link type
| string | $a_linktype | link type (IL_INT_LINK, IL_EXT_LINK) |
Definition at line 456 of file class.ilMapArea.php.
Referenced by read().
Here is the caller graph for this function:| ilMapArea::setNr | ( | $a_nr | ) |
set area number
| int | $a_nr | number (of area within parent media object) |
Definition at line 366 of file class.ilMapArea.php.
Referenced by __construct(), and read().
Here is the caller graph for this function:| ilMapArea::setShape | ( | $a_shape | ) |
set shape (IL_AREA_RECT, IL_AREA_CIRCLE, IL_AREA_POLY, IL_AREA_WHOLE_PICTURE)
| string | $a_shape | shape of map area |
Definition at line 386 of file class.ilMapArea.php.
Referenced by read().
Here is the caller graph for this function:| ilMapArea::setTarget | ( | $a_target | ) |
set link target (internal link only)
| string | $a_target | link target (e.g. "il__pg_23") |
Definition at line 516 of file class.ilMapArea.php.
Referenced by read().
Here is the caller graph for this function:| ilMapArea::setTargetFrame | ( | $a_target_frame | ) |
set link target frame (internal link only)
| string | $a_target_frame | target frame (IL_TF_MEDIA | IL_TF_FAQ | IL_TF_GLOSSARY | IL_TF_NEW) |
Definition at line 564 of file class.ilMapArea.php.
Referenced by read().
Here is the caller graph for this function:| ilMapArea::setTitle | ( | $a_title | ) |
set (tooltip)title of area
| string | $a_title | title |
Definition at line 426 of file class.ilMapArea.php.
Referenced by read().
Here is the caller graph for this function:| ilMapArea::setType | ( | $a_type | ) |
set link type (internal link only)
| string | $a_type | link type (IL_LT_STRUCTURE | IL_LT_PAGE | IL_LT_MEDIA | IL_LT_GLITEM) |
Definition at line 543 of file class.ilMapArea.php.
References $a_type.
Referenced by read().
Here is the caller graph for this function:| ilMapArea::update | ( | ) |
update map area
Definition at line 158 of file class.ilMapArea.php.
References $db, $ilDB, getCoords(), getHighlightClass(), getHighlightMode(), getHref(), getItemId(), getLinkType(), getNr(), getShape(), getTarget(), getTargetFrame(), getTitle(), and getType().
Here is the call graph for this function:| ilMapArea::$coords |
Definition at line 53 of file class.ilMapArea.php.
Referenced by drawCircle(), drawPoly(), drawRect(), and getCoords().
|
protected |
Definition at line 41 of file class.ilMapArea.php.
| ilMapArea::$il_target |
Definition at line 58 of file class.ilMapArea.php.
Referenced by getTarget().
| ilMapArea::$il_target_frame |
Definition at line 60 of file class.ilMapArea.php.
Referenced by getTargetFrame().
| ilMapArea::$il_type |
Definition at line 59 of file class.ilMapArea.php.
Referenced by getType().
| ilMapArea::$item_id |
Definition at line 50 of file class.ilMapArea.php.
Referenced by _resolveIntLinks(), and getItemId().
| ilMapArea::$linktype |
Definition at line 55 of file class.ilMapArea.php.
Referenced by getLinkType().
| ilMapArea::$nr |
Definition at line 51 of file class.ilMapArea.php.
Referenced by _resolveIntLinks(), and getNr().
| ilMapArea::$shape |
Definition at line 52 of file class.ilMapArea.php.
Referenced by getShape().
| ilMapArea::$title |
Definition at line 54 of file class.ilMapArea.php.
Referenced by getTitle().
| ilMapArea::$xl_href |
Definition at line 57 of file class.ilMapArea.php.
Referenced by getHref().
| ilMapArea::$xl_title |
Definition at line 56 of file class.ilMapArea.php.
Referenced by getExtTitle().
| const ilMapArea::HL_ALWAYS = "Always" |
Definition at line 45 of file class.ilMapArea.php.
| const ilMapArea::HL_HOVER = "Hover" |
Definition at line 44 of file class.ilMapArea.php.
| const ilMapArea::HL_NONE = "" |
Definition at line 43 of file class.ilMapArea.php.
| const ilMapArea::HLCL_ACCENTED = "" |
Definition at line 46 of file class.ilMapArea.php.
| const ilMapArea::HLCL_DARK = "Dark" |
Definition at line 48 of file class.ilMapArea.php.
| const ilMapArea::HLCL_LIGHT = "Light" |
Definition at line 47 of file class.ilMapArea.php.