Du meinst wahrscheinlich PHP Doc...
Ein Auszug aus meinen Codes mal
PHP-Code:
/**
* Editor Functions
* @author Nico Meier <nico@pc-heaven.de>
* @version 0.1a
* @copyright Copyright (C) 2007-2008, Nico Meier
* @license GNU
* @package nicocms
* @subpackage nicocms.editor
*/
/**
* Error Handling
*/
@include_once("error.inc.php");
/*
* Funktion zur Generierung eines BBCode Buttons der bei Klick einen Text (str_bbcode)
* in ein bestimmtes Feld (str_areaname) einfügt.
* @param string $str_bbcode
* @param string $str_areaname
* @param string $str_image
* @return string
* @since 0.1a
*/
function bbcode_click($str_bbcode, $str_areaname, $str_image=0) {
$str_bbcode = htmlspecialchars($str_bbcode); #Verhindern dass HTML Entities verwendet werden
$str_areaname = htmlspecialchars($str_areaname); #Verhindern dass HTML Entities verwendet werden
if ($str_image==0) {
#Keine Bilddatei
return "<a style=\"cursor: pointer;\" onclick=\"with(document.getElementById('" . $str_areaname . "')){value+='" . $str_bbcode . "';focus()}\" onmouseover=\"this.style.cursor='pointer'\">" . $str_bbcode ."</a>\"";
} else {
#Eine Bilddatei
$str_image = htmlspecialchars($str_image); #Verhindern dass HTML Entities verwendet werden
list($width, $height, $type, $attr) = getimagesize($str_image); #Werte des Bildes auslesen und zuweisen
return "<a style=\"cursor: pointer;\" onclick=\"with(document.getElementById('" . $str_areaname . "')){value+='" . $str_bbcode . "';focus()}\" onmouseover=\"this.style.cursor='pointer'\"><img src=\"" . $str_image . "\" $attr alt=\"" . $type . $str_bbcode . "\" height=\"" . $height . "\" width=\"" . $width . "\" style=\"border: 0px;\" /></a>\"";
}
}
Gugg mal hier
http://manual.phpdoc.org/HTMLSmartyC...entor.pkg.html