|
ILIAS
release_8 Revision v8.24
|
Collaboration diagram for ilMapArea:Public Member Functions | |
| __construct (int $a_item_id=0, int $a_nr=0) | |
| create () | |
| create persistent map area object in db More... | |
| read () | |
| update () | |
| setHighlightMode (string $a_val) | |
| getHighlightMode () | |
| setHighlightClass (string $a_val) | |
| getHighlightClass () | |
| setItemId (int $a_item_id) | |
| getItemId () | |
| setNr (int $a_nr) | |
| getNr () | |
| setShape (string $a_shape) | |
| set shape (IL_AREA_RECT, IL_AREA_CIRCLE, IL_AREA_POLY, IL_AREA_WHOLE_PICTURE) More... | |
| getShape () | |
| setCoords (string $a_coords) | |
| set coords of area More... | |
| getCoords () | |
| setTitle (string $a_title) | |
| set (tooltip)title of area More... | |
| appendTitle (string $a_title_str) | |
| getTitle () | |
| setLinkType (string $a_link_type) | |
| set link type More... | |
| getLinkType () | |
| setHref (string $a_href) | |
| set hyper reference (external link only) More... | |
| getHref () | |
| setExtTitle (string $a_title) | |
| set link text (external link only) More... | |
| getExtTitle () | |
| setTarget (string $a_target) | |
| set link target (internal link only) More... | |
| getTarget (bool $a_insert_inst=false) | |
| get link target (internal link only) More... | |
| setType (string $a_type) | |
| set link type (internal link only) More... | |
| getType () | |
| setTargetFrame (string $a_target_frame) | |
| set link target frame (internal link only) More... | |
| getTargetFrame () | |
| draw ( $a_image, int $a_col1, int $a_col2, bool $a_close_poly=true, float $a_x_ratio=1, float $a_y_ratio=1) | |
| drawLine ( $im, int $x1, int $y1, int $x2, int $y2, int $c1, int $c2) | |
| draws an outlined two color line in an image More... | |
| drawRect ( $im, string $coords, int $c1, int $c2, float $a_x_ratio=1, float $a_y_ratio=1) | |
| draws an outlined two color rectangle More... | |
| drawPoly ( $im, string $coords, int $c1, int $c2, bool $closed, float $a_x_ratio=1, float $a_y_ratio=1) | |
| draws an outlined two color polygon More... | |
| drawCircle ( $im, string $coords, int $c1, int $c2, float $a_x_ratio=1, float $a_y_ratio=1) | |
| draws an outlined two colored circle More... | |
Static Public Member Functions | |
| static | _getMaxNr (int $a_item_id) |
| get maximum nr of media item (static) More... | |
| static | _resolveIntLinks (int $a_item_id) |
| resolve internal links of an item id More... | |
| static | _getIntLinks (int $a_item_id) |
| get all internal links of a media items map areas More... | |
| static | _getMobsForTarget (string $a_type, string $a_target) |
| Get areas for a certain target. More... | |
| static | getAllHighlightModes () |
| static | getAllHighlightClasses () |
| static | countCoords (string $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" |
| int | $item_id = 0 |
| int | $nr = 0 |
| string | $shape = "" |
| string | $coords = "" |
| string | $title = "" |
| string | $linktype = "" |
| string | $xl_title = "" |
| string | $xl_href = "" |
| string | $il_target = "" |
| string | $il_type = "" |
| string | $il_target_frame = "" |
Protected Attributes | |
| string | $highlight_mode = "" |
| string | $highlight_class = "" |
| ilDBInterface | $db |
Class ilMapArea.
Map Area of an Image Map, subobject of Media Item
Definition at line 46 of file class.ilMapArea.php.
| ilMapArea::__construct | ( | int | $a_item_id = 0, |
| int | $a_nr = 0 |
||
| ) |
| int | $a_item_id | parent media item id |
| int | $a_nr | map area number within media item |
Definition at line 74 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 212 of file class.ilMapArea.php.
|
static |
get maximum nr of media item (static)
Definition at line 117 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 242 of file class.ilMapArea.php.
Referenced by ilLMObject\updateInternalLinks().
Here is the caller graph for this function:
|
static |
resolve internal links of an item id
Definition at line 177 of file class.ilMapArea.php.
References $ilDB, $query, $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 | ( | string | $a_title_str | ) |
Definition at line 366 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 702 of file class.ilMapArea.php.
References $c.
| ilMapArea::create | ( | ) |
create persistent map area object in db
Definition at line 92 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, | |
| int | $a_col1, | ||
| int | $a_col2, | ||
| bool | $a_close_poly = true, |
||
| float | $a_x_ratio = 1, |
||
| float | $a_y_ratio = 1 |
||
| ) |
| resource | GdImage | $a_image | (GdImage comes with 8.0) |
Definition at line 474 of file class.ilMapArea.php.
| ilMapArea::drawCircle | ( | $im, | |
| string | $coords, | ||
| int | $c1, | ||
| int | $c2, | ||
| float | $a_x_ratio = 1, |
||
| float | $a_y_ratio = 1 |
||
| ) |
draws an outlined two colored circle
| resource | GdImage | $im | (GdImage comes with 8.0) |
| string | $coords | coordinate string, format : "x,y,r" with (x,y) as center point and r as radius |
| int | $c1 | color identifier 1 |
| int | $c2 | color identifier 2 |
Definition at line 656 of file class.ilMapArea.php.
| ilMapArea::drawLine | ( | $im, | |
| int | $x1, | ||
| int | $y1, | ||
| int | $x2, | ||
| int | $y2, | ||
| int | $c1, | ||
| int | $c2 | ||
| ) |
draws an outlined two color line in an image
| resource | GdImage | $im | (GdImage comes with 8.0) |
| 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 529 of file class.ilMapArea.php.
| ilMapArea::drawPoly | ( | $im, | |
| string | $coords, | ||
| int | $c1, | ||
| int | $c2, | ||
| bool | $closed, | ||
| float | $a_x_ratio = 1, |
||
| float | $a_y_ratio = 1 |
||
| ) |
draws an outlined two color polygon
| resource | GdImage | $im | (GdImage comes with 8.0) |
| 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 | $c2 | color identifier 2 |
| bool | $closed | true: the first and the last point will be connected with a line |
Definition at line 611 of file class.ilMapArea.php.
| ilMapArea::drawRect | ( | $im, | |
| string | $coords, | ||
| int | $c1, | ||
| int | $c2, | ||
| float | $a_x_ratio = 1, |
||
| float | $a_y_ratio = 1 |
||
| ) |
draws an outlined two color rectangle
| resource | GdImage | $im | (GdImage comes with 8.0) |
| 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 553 of file class.ilMapArea.php.
|
static |
Definition at line 288 of file class.ilMapArea.php.
Referenced by ilImageMapTableGUI\__construct().
Here is the caller graph for this function:
|
static |
Definition at line 264 of file class.ilMapArea.php.
Referenced by ilImageMapTableGUI\__construct().
Here is the caller graph for this function:| ilMapArea::getCoords | ( | ) |
Definition at line 353 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getExtTitle | ( | ) |
Definition at line 412 of file class.ilMapArea.php.
| ilMapArea::getHighlightClass | ( | ) |
Definition at line 306 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getHighlightMode | ( | ) |
Definition at line 283 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getHref | ( | ) |
Definition at line 398 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getItemId | ( | ) |
Definition at line 316 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getLinkType | ( | ) |
Definition at line 385 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getNr | ( | ) |
Definition at line 326 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getShape | ( | ) |
Definition at line 339 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getTarget | ( | bool | $a_insert_inst = false | ) |
get link target (internal link only)
Definition at line 429 of file class.ilMapArea.php.
References IL_INST_ID.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getTargetFrame | ( | ) |
Definition at line 466 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getTitle | ( | ) |
Definition at line 371 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::getType | ( | ) |
Definition at line 450 of file class.ilMapArea.php.
Referenced by create().
Here is the caller graph for this function:| ilMapArea::read | ( | ) |
Definition at line 132 of file class.ilMapArea.php.
References $ilDB.
Referenced by __construct().
Here is the caller graph for this function:| ilMapArea::setCoords | ( | string | $a_coords | ) |
set coords of area
| string | $a_coords | coords (comma separated integers) |
Definition at line 348 of file class.ilMapArea.php.
| ilMapArea::setExtTitle | ( | string | $a_title | ) |
set link text (external link only)
| string | $a_title | link text |
Definition at line 407 of file class.ilMapArea.php.
| ilMapArea::setHighlightClass | ( | string | $a_val | ) |
Definition at line 301 of file class.ilMapArea.php.
| ilMapArea::setHighlightMode | ( | string | $a_val | ) |
Definition at line 277 of file class.ilMapArea.php.
| ilMapArea::setHref | ( | string | $a_href | ) |
set hyper reference (external link only)
Definition at line 393 of file class.ilMapArea.php.
| ilMapArea::setItemId | ( | int | $a_item_id | ) |
Definition at line 311 of file class.ilMapArea.php.
Referenced by __construct().
Here is the caller graph for this function:| ilMapArea::setLinkType | ( | string | $a_link_type | ) |
set link type
| string | $a_link_type | link type (IL_INT_LINK, IL_EXT_LINK) |
Definition at line 380 of file class.ilMapArea.php.
| ilMapArea::setNr | ( | int | $a_nr | ) |
Definition at line 321 of file class.ilMapArea.php.
Referenced by __construct().
Here is the caller graph for this function:| ilMapArea::setShape | ( | string | $a_shape | ) |
set shape (IL_AREA_RECT, IL_AREA_CIRCLE, IL_AREA_POLY, IL_AREA_WHOLE_PICTURE)
Definition at line 334 of file class.ilMapArea.php.
| ilMapArea::setTarget | ( | string | $a_target | ) |
set link target (internal link only)
| string | $a_target | link target (e.g. "il__pg_23") |
Definition at line 421 of file class.ilMapArea.php.
| ilMapArea::setTargetFrame | ( | string | $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 461 of file class.ilMapArea.php.
| ilMapArea::setTitle | ( | string | $a_title | ) |
set (tooltip)title of area
Definition at line 361 of file class.ilMapArea.php.
| ilMapArea::setType | ( | string | $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 445 of file class.ilMapArea.php.
| ilMapArea::update | ( | ) |
Definition at line 155 of file class.ilMapArea.php.
References $ilDB.
| string ilMapArea::$coords = "" |
Definition at line 61 of file class.ilMapArea.php.
|
protected |
Definition at line 57 of file class.ilMapArea.php.
Referenced by create().
|
protected |
Definition at line 55 of file class.ilMapArea.php.
|
protected |
Definition at line 54 of file class.ilMapArea.php.
| string ilMapArea::$il_target = "" |
Definition at line 66 of file class.ilMapArea.php.
| string ilMapArea::$il_target_frame = "" |
Definition at line 68 of file class.ilMapArea.php.
| string ilMapArea::$il_type = "" |
Definition at line 67 of file class.ilMapArea.php.
| int ilMapArea::$item_id = 0 |
Definition at line 58 of file class.ilMapArea.php.
| string ilMapArea::$linktype = "" |
Definition at line 63 of file class.ilMapArea.php.
| int ilMapArea::$nr = 0 |
Definition at line 59 of file class.ilMapArea.php.
| string ilMapArea::$shape = "" |
Definition at line 60 of file class.ilMapArea.php.
| string ilMapArea::$title = "" |
Definition at line 62 of file class.ilMapArea.php.
| string ilMapArea::$xl_href = "" |
Definition at line 65 of file class.ilMapArea.php.
| string ilMapArea::$xl_title = "" |
Definition at line 64 of file class.ilMapArea.php.
| const ilMapArea::HL_ALWAYS = "Always" |
Definition at line 50 of file class.ilMapArea.php.
| const ilMapArea::HL_HOVER = "Hover" |
Definition at line 49 of file class.ilMapArea.php.
| const ilMapArea::HL_NONE = "" |
Definition at line 48 of file class.ilMapArea.php.
| const ilMapArea::HLCL_ACCENTED = "" |
Definition at line 51 of file class.ilMapArea.php.
| const ilMapArea::HLCL_DARK = "Dark" |
Definition at line 53 of file class.ilMapArea.php.
| const ilMapArea::HLCL_LIGHT = "Light" |
Definition at line 52 of file class.ilMapArea.php.