function stri($string) { parent::addString($string); }
/** * creates an image * * @access private * @param string $pic the image * @param string $alt the alt-text (optional) * @param string $args additional options (optional) * @return string the image (html) */ function createImage($pic, $alt = "", $args = NULL) { if (!isset($args['alt'])) { $args['alt'] = $alt; $args['title'] = $alt; } $args['border'] = 0; $args['style'] = "vertical-align:middle;"; $img = new HTMLempty("img"); $img->addString(tooltip($alt, TRUE, TRUE)); $img->addAttr("src", $pic); $img->addAttr("border", "0"); $img->addAttr("style", "vertical-align:middle;"); if (empty($args)) { $img->addAttr("alt", $alt); $img->addAttr("title", $alt); } else { $img->addString($alt); } if ($args) { } $img->addString($args); return $img->createContent(); }
/** * Creates a simple image for the normal top of an modulepage * @param string $imgURL The URL for the icon * @param string $imgALT The description for the icon */ static function createImage($imgURL, $imgALT, $extra = "") { $img = new HTMLempty("img"); $img->addAttr("border", "0"); $img->addAttr("valign", "middle"); $img->addAttr("src", $imgURL); if (empty($extra)) { $img->addAttr("alt", $imgALT); $img->addAttr("title", $imgALT); } else { $img->addString($extra); } return $img; }