| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Collaboration diagram for ilImagemapPreview:Public Member Functions | |
| __construct ($imagemap_filename="") | |
| ilImagemapPreview constructor  More... | |
| getAreaCount () | |
| getPointCount () | |
| addArea ( $index, $shape, $coords, $title="", $href="", $target="", $visible=true, $linecolor="red", $bordercolor="white", $fillcolor="#FFFFFFA0") | |
| addPoint ( $index, $coords, $visible=true, $linecolor="red", $bordercolor="white", $fillcolor="#FFFFFFA0") | |
| getAreaIdent () | |
| createPreview () | |
| getPreviewFilename (string $image_path, string $base_file_name) | |
| getImagemap ($title) | |
| get imagemap html code note: html code should be placed in template files  More... | |
Static Public Member Functions | |
| static | escapeShellCmd ($a_arg) | 
| static | execQuoted ($cmd, $args=null) | 
Data Fields | |
| $imagemap_filename | |
| $preview_filename | |
| $areas | |
| $points | |
| $linewidth_outer | |
| $linewidth_inner | |
| $lng | |
Private Attributes | |
| ilGlobalTemplateInterface | $main_tpl | 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Image map image preview creator
Takes an image and imagemap areas and creates a preview image containing the imagemap areas.
Definition at line 29 of file class.ilImagemapPreview.php.
| ilImagemapPreview::__construct | ( | $imagemap_filename = "" | ) | 
ilImagemapPreview constructor
Creates an instance of the ilImagemapPreview class
| integer | $id | The database id of a image map question object public | 
Definition at line 48 of file class.ilImagemapPreview.php.
References $DIC, $imagemap_filename, $lng, ilFileUtils\ilTempnam(), and ILIAS\Repository\lng().
 Here is the call graph for this function:| ilImagemapPreview::addArea | ( | $index, | |
| $shape, | |||
| $coords, | |||
$title = "",  | 
        |||
$href = "",  | 
        |||
$target = "",  | 
        |||
$visible = true,  | 
        |||
$linecolor = "red",  | 
        |||
$bordercolor = "white",  | 
        |||
$fillcolor = "#FFFFFFA0"  | 
        |||
| ) | 
Definition at line 79 of file class.ilImagemapPreview.php.
References ILIAS\Repository\int().
Referenced by assImagemapQuestionGUI\areaEditor(), assImagemapQuestionGUI\getPreview(), assImagemapQuestionGUI\getSolutionOutput(), and assImagemapQuestionGUI\getTestOutput().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilImagemapPreview::addPoint | ( | $index, | |
| $coords, | |||
$visible = true,  | 
        |||
$linecolor = "red",  | 
        |||
$bordercolor = "white",  | 
        |||
$fillcolor = "#FFFFFFA0"  | 
        |||
| ) | 
Definition at line 109 of file class.ilImagemapPreview.php.
References ILIAS\Repository\int().
 Here is the call graph for this function:| ilImagemapPreview::createPreview | ( | ) | 
Definition at line 142 of file class.ilImagemapPreview.php.
References $r, escapeShellCmd(), and execQuoted().
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 216 of file class.ilImagemapPreview.php.
Referenced by createPreview().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 225 of file class.ilImagemapPreview.php.
References $DIC, and ilUtil\isWindows().
Referenced by createPreview().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilImagemapPreview::getAreaCount | ( | ) | 
Definition at line 69 of file class.ilImagemapPreview.php.
| ilImagemapPreview::getAreaIdent | ( | ) | 
Definition at line 126 of file class.ilImagemapPreview.php.
References ILIAS\UI\examples\Symbol\Glyph\Sort\sort().
Referenced by getPreviewFilename().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilImagemapPreview::getImagemap | ( | $title | ) | 
get imagemap html code note: html code should be placed in template files
Definition at line 273 of file class.ilImagemapPreview.php.
| ilImagemapPreview::getPointCount | ( | ) | 
Definition at line 74 of file class.ilImagemapPreview.php.
| ilImagemapPreview::getPreviewFilename | ( | string | $image_path, | 
| string | $base_file_name | ||
| ) | 
Definition at line 244 of file class.ilImagemapPreview.php.
References $preview_filename, getAreaIdent(), and ILIAS\Repository\lng().
 Here is the call graph for this function:| ilImagemapPreview::$areas | 
Definition at line 33 of file class.ilImagemapPreview.php.
| ilImagemapPreview::$imagemap_filename | 
Definition at line 31 of file class.ilImagemapPreview.php.
Referenced by __construct().
| ilImagemapPreview::$linewidth_inner | 
Definition at line 36 of file class.ilImagemapPreview.php.
| ilImagemapPreview::$linewidth_outer | 
Definition at line 35 of file class.ilImagemapPreview.php.
| ilImagemapPreview::$lng | 
Definition at line 37 of file class.ilImagemapPreview.php.
Referenced by __construct().
      
  | 
  private | 
Definition at line 38 of file class.ilImagemapPreview.php.
| ilImagemapPreview::$points | 
Definition at line 34 of file class.ilImagemapPreview.php.
| ilImagemapPreview::$preview_filename | 
Definition at line 32 of file class.ilImagemapPreview.php.
Referenced by getPreviewFilename().