cvs: pear /PhpDocumentor/phpDocumentor Converter.inc ParserData.inc ParserElements.inc
/PhpDocumentor/phpDocumentor/Converters/CHM/default/templates/default/templates method.tpl /PhpDocumentor/phpDocumentor/Converters/HTML/Smarty
HTMLSmartyConverter.inc /PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates class.tpl classtrees.tpl header.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates class.tpl classtrees.tpl header.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates class.tpl classtrees.tpl header.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames HTMLframesConverter.inc
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/p! hpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates class.tpl classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates classtrees.tpl left_frame.tpl method.tpl
/! PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates classtrees.tpl left_frame.tpl method.tpl

From: Date: Thu, 02 Mar 2006 19:17:09 +0000
Subject: cvs: pear /PhpDocumentor/phpDocumentor Converter.inc ParserData.inc ParserElements.inc
/PhpDocumentor/phpDocumentor/Converters/CHM/default/templates/default/templates method.tpl /PhpDocumentor/phpDocumentor/Converters/HTML/Smarty
HTMLSmartyConverter.inc /PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates class.tpl classtrees.tpl header.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates class.tpl classtrees.tpl header.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates class.tpl classtrees.tpl header.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames HTMLframesConverter.inc
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/p! hpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates class.tpl classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates classtrees.tpl left_frame.tpl method.tpl
/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates classtrees.tpl left_frame.tpl method.tpl
/! PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates classtrees.tpl left_frame.tpl method.tpl
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38866@lists.php.net to get a copy of this message
cellog Thu Mar 2 19:17:09 2006 UTC Modified files: /pear/PhpDocumentor/phpDocumentor Converter.inc ParserData.inc ParserElements.inc /pear/PhpDocumentor/phpDocumentor/Converters/CHM/default/templates/default/templates method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty HTMLSmartyConverter.inc /pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates class.tpl classtrees.tpl header.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates class.tpl classtrees.tpl header.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates class.tpl classtrees.tpl header.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames HTMLframesConverter.inc /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates classtrees.tpl left_frame.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates classtrees.tpl left_frame.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates classtrees.tpl left_frame.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates classtrees.tpl left_frame.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates classtrees.tpl left_frame.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates classtrees.tpl left_frame.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates class.tpl classtrees.tpl left_frame.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates classtrees.tpl left_frame.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates classtrees.tpl left_frame.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates classtrees.tpl left_frame.tpl method.tpl /pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates classtrees.tpl left_frame.tpl method.tpl Log: complete interface support merge in ezComponents fixes to source highlighting and docblock information

http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converter.inc?r1=1.14&r2=1.15&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converter.inc diff -u pear/PhpDocumentor/phpDocumentor/Converter.inc:1.14 pear/PhpDocumentor/phpDocumentor/Converter.inc:1.15 --- pear/PhpDocumentor/phpDocumentor/Converter.inc:1.14 Tue Feb 28 05:18:02 2006 +++ pear/PhpDocumentor/phpDocumentor/Converter.inc Thu Mar 2 19:17:07 2006 @@ -22,7 +22,7 @@ * @package Converters * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: Converter.inc,v 1.14 2006/02/28 05:18:02 cellog Exp $ + * @version $Id: Converter.inc,v 1.15 2006/03/02 19:17:07 cellog Exp $ */ /** * Smarty template files @@ -56,7 +56,7 @@ * @abstract * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: Converter.inc,v 1.14 2006/02/28 05:18:02 cellog Exp $ + * @version $Id: Converter.inc,v 1.15 2006/03/02 19:17:07 cellog Exp $ */ class Converter { @@ -760,8 +760,18 @@ $obj = new phpDocumentorTWordParser; $obj->setup($example); $e = $obj->getFileSource(); - if (!isset($e[0]) || !is_array($e[0][0]) || $e[0][0][0] != T_OPEN_TAG) + $bOpenTagFound = false; + foreach ($e as $ke => $ee) { + foreach ($ee as $kee => $eee) + { + if ((int) $e[$ke][$kee][0] == T_OPEN_TAG) + { + $bOpenTagFound = true; + } + } + } + if (!$bOpenTagFound) { $example = "<?php\n".$example; $obj->setup($example); $e = $obj->getFileSource(); @@ -4038,31 +4048,34 @@ $params[] = $param_i[$param] = array("var" => $param,"datatype" => $val->converted_returnType,"data" => $a); } - if ($element->docblock->hasaccess) - $acc = $element->docblock->tags['access'][0]->value; - else - $acc = 'public'; - + if ($element->docblock->hasaccess) { + $acc = $docblock['access']; + } else { + $acc = 'public'; + } if ($this->hasSourceCode($element->getPath())) $additions["slink"] = $this->getSourceAnchor($element->getPath(),$element->getLineNumber(),$element->getLineNumber(),true); $this->class_data->append('methods',array_merge( array('sdesc' => $docblock['sdesc'], 'desc' => $docblock['desc'], - 'access' => $docblock['access'], - 'abstract' => $docblock['abstract'], + 'static' => $docblock['static'], + 'abstract' => $docblock['abstract'], 'tags' => $docblock['tags'], 'api_tags' => $docblock['api_tags'], + 'see_tags' => $docblock['see_tags'], + 'info_tags_sorted' => $docblock['info_tags_sorted'], 'info_tags' => $docblock['info_tags'], 'utags' => $docblock['utags'], 'constructor' => $element->isConstructor, - 'access' => $acc, + 'access' => $acc, 'function_name' => $fname, 'function_return' => $returntype, 'function_call' => $element->getFunctionCall(), 'ifunction_call' => $element->getIntricateFunctionCall($this, $param_i), 'descmethod' => $this->getFormattedDescMethods($element), 'method_overrides' => $this->getFormattedOverrides($element), + 'method_implements' => $this->getFormattedMethodImplements($element), 'line_number' => $element->getLineNumber(), 'id' => $this->getId($element), 'params' => $params), @@ -4168,6 +4181,8 @@ $this->page_data->assign("defines",array()); $this->page_data->assign("globals",array()); $this->page_data->assign("classes",$this->getClassesOnPage($element)); + $this->page_data->assign("hasclasses",$element->hasClasses()); + $this->page_data->assign("hasinterfaces",$element->hasInterfaces()); $this->page_data->assign("name", $element->parent->getFile()); if ($t = $element->getTutorial()) { @@ -4408,15 +4423,19 @@ $a = $val->Convert($this); $tags[] = $api_tags[] = array('keyword' => 'staticvar','data' => $val->converted_returnType.' '.$static.': '.$a); } + $info_tags_sorted = array(); foreach($tagses as $tag) { if (isset($names[$tag->keyword])) $tag->keyword = $names[$tag->keyword]; if ($tag->keyword) $tags[] = array("keyword" => $tag->keyword,"data" => $tag->Convert($this)); - if (in_array($tag->keyword, $api_tags_arr)) + if (in_array($tag->keyword, $api_tags_arr)) { $api_tags[] = array("keyword" => $tag->keyword,"data" => $tag->Convert($this)); - else + } else { $info_tags[] = array("keyword" => $tag->keyword,"data" => $tag->Convert($this)); + @list( $className, $desc ) = explode( " ", $tag->Convert($this), 2 ); + $info_tags_sorted[ $tag->keyword ][] = array( 'keyword' => $className, 'data' => $desc ); + } } $utags = array(); foreach($element->docblock->unknown_tags as $keyword => $tag) @@ -4424,20 +4443,31 @@ foreach($tag as $t) $utags[] = array('keyword' => $keyword, 'data' => $t->Convert($this)); } - $ret['abstract'] = FALSE; + $ret['abstract'] = false; + $ret['static'] = false; $ret['access'] = 'public'; + $see_tags = array(); foreach($tags as $tag) { if ($tag['keyword'] == 'access') { $ret['access'] = $tag['data']; } if ($tag['keyword'] == 'abstract') { - $ret['abstract'] = TRUE; + $ret['abstract'] = true; + } + if ($tag['keyword'] == 'static') { + $ret['static'] = true; + } + if ($tag['keyword'] == 'see' || $tag['keyword'] == 'uses' || + $tag['keyword'] == 'usedby') { + $see_tags[] = $tag['data']; } } $ret['sdesc'] = $element->docblock->getSDesc($this); $ret['desc'] = $element->docblock->getDesc($this); $ret['tags'] = $tags; + $ret['see_tags'] = $see_tags; + $ret['info_tags_sorted'] = $info_tags_sorted; $ret['api_tags'] = $api_tags; $ret['info_tags'] = $info_tags; $ret['utags'] = $utags; @@ -4526,7 +4556,23 @@ $ret = array(); foreach ($el->getImplements() as $interface) { - $ret[] = $this->returnSee($this->getLink($interface)); + $link = $this->getLink($interface); + if ($link && is_object($link)) { + $ret[] = $this->returnSee($link); + } else { + if (class_exists('ReflectionClass')) { + if (interface_exists($interface)) { + $inter = new ReflectionClass($interface); + if ($inter->isInternal()) { + $ret[] = $interface . ' (internal interface)'; + } else { + $ret[] = $interface; + } + } + } else { + $ret[] = $interface; + } + } } return $ret; } @@ -4615,6 +4661,27 @@ } /** + * Get the method this method(s) implemented from an interface, if any + * @return array|false array('link'=>link to implemented method, + * 'sdesc'=>short description + * @uses parserMethod::getImplements() + * @param parserMethod + */ + function getFormattedMethodImplements(&$element) + { + $ovr = $element->getImplements($this); + if (!$ovr) return false; + $ret = array(); + foreach ($ovr as $impl) { + $sdesc = $impl->docblock->getSDesc($this); + $name = $impl->getName(); + $link = ($link = $impl->getLink($this)) ? $link : $impl->getClass() . '::' . $name; + $ret[] = array('link' => $link,'sdesc' => $sdesc); + } + return $ret; + } + + /** * returns a list of child classes * * @param parserClass class variable @@ -4770,6 +4837,16 @@ $info['abstract'] = isset ($method->docblock->tags['abstract'][0]); if ($method->isConstructor) $info['constructor'] = 1; + $returntype = 'void'; + if ($method->isConstructor) { + $returntype = $method->getClass(); + } + if ($method->docblock->return) { + $a = $method->docblock->return->Convert($this); + $returntype = $method->docblock->return->converted_returnType; + } + $info['function_return'] = $returntype; + $info['static'] = isset ($method->docblock->tags['static'][0]); $info['link'] = $method->getLink($this); if (!$info['link']) { $info['link'] = $method->getFunctionCall(); http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/ParserData.inc?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/ParserData.inc diff -u pear/PhpDocumentor/phpDocumentor/ParserData.inc:1.1 pear/PhpDocumentor/phpDocumentor/ParserData.inc:1.2 --- pear/PhpDocumentor/phpDocumentor/ParserData.inc:1.1 Mon Oct 17 18:36:57 2005 +++ pear/PhpDocumentor/phpDocumentor/ParserData.inc Thu Mar 2 19:17:07 2006 @@ -23,7 +23,7 @@ * @subpackage ParserData * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserData.inc,v 1.1 2005/10/17 18:36:57 jeichorn Exp $ + * @version $Id: ParserData.inc,v 1.2 2006/03/02 19:17:07 cellog Exp $ */ /** * Contains information about a PHP file, used to group procedural elements @@ -32,7 +32,7 @@ * @subpackage ParserData * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserData.inc,v 1.1 2005/10/17 18:36:57 jeichorn Exp $ + * @version $Id: ParserData.inc,v 1.2 2006/03/02 19:17:07 cellog Exp $ */ class parserPage { @@ -264,7 +264,7 @@ * @subpackage ParserData * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserData.inc,v 1.1 2005/10/17 18:36:57 jeichorn Exp $ + * @version $Id: ParserData.inc,v 1.2 2006/03/02 19:17:07 cellog Exp $ */ class parserData { @@ -280,6 +280,16 @@ */ var $elements = array(); /** + * @var boolean + * @access private + */ + var $_hasclasses = false; + /** + * @var boolean + * @access private + */ + var $_hasinterfaces = false; + /** * array of parsed elements with @access private * @var array */ @@ -343,6 +353,13 @@ if ($element->getType() == 'class' || $element->getType() == 'method' || $element->getType() == 'var' || $element->getType() == 'const') { + if ($element->getType() == 'class') { + if ($element->isInterface()) { + $this->_hasinterfaces = true; + } else { + $this->_hasclasses = true; + } + } $this->classelements[] = $element; } else { @@ -350,7 +367,27 @@ } $this->clean = false; } - + + /** + * Does this package have interfaces? + * + * @return boolean + */ + function hasInterfaces() + { + return $this->_hasinterfaces; + } + + /** + * Does this package have classes? + * + * @return boolean + */ + function hasClasses() + { + return $this->_hasclasses; + } + /** * @param parserTutorial * @param Converter @@ -505,7 +542,7 @@ * @abstract * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserData.inc,v 1.1 2005/10/17 18:36:57 jeichorn Exp $ + * @version $Id: ParserData.inc,v 1.2 2006/03/02 19:17:07 cellog Exp $ */ class parserBase { @@ -554,7 +591,7 @@ * @subpackage ParserData * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserData.inc,v 1.1 2005/10/17 18:36:57 jeichorn Exp $ + * @version $Id: ParserData.inc,v 1.2 2006/03/02 19:17:07 cellog Exp $ */ class parserStringWithInlineTags extends parserBase { http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/ParserElements.inc?r1=1.5&r2=1.6&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/ParserElements.inc diff -u pear/PhpDocumentor/phpDocumentor/ParserElements.inc:1.5 pear/PhpDocumentor/phpDocumentor/ParserElements.inc:1.6 --- pear/PhpDocumentor/phpDocumentor/ParserElements.inc:1.5 Mon Feb 27 04:05:08 2006 +++ pear/PhpDocumentor/phpDocumentor/ParserElements.inc Thu Mar 2 19:17:07 2006 @@ -22,7 +22,7 @@ * @package phpDocumentor * @subpackage ParserElements * @since 1.1 - * @version $Id: ParserElements.inc,v 1.5 2006/02/27 04:05:08 cellog Exp $ + * @version $Id: ParserElements.inc,v 1.6 2006/03/02 19:17:07 cellog Exp $ */ /** @@ -32,7 +32,7 @@ * @subpackage ParserElements * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserElements.inc,v 1.5 2006/02/27 04:05:08 cellog Exp $ + * @version $Id: ParserElements.inc,v 1.6 2006/03/02 19:17:07 cellog Exp $ */ class parserElement extends parserBase { @@ -185,7 +185,7 @@ * @subpackage ParserElements * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserElements.inc,v 1.5 2006/02/27 04:05:08 cellog Exp $ + * @version $Id: ParserElements.inc,v 1.6 2006/03/02 19:17:07 cellog Exp $ */ class parserInclude extends parserElement { @@ -201,7 +201,7 @@ * @subpackage ParserElements * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.1 - * @version $Id: ParserElements.inc,v 1.5 2006/02/27 04:05:08 cellog Exp $ + * @version $Id: ParserElements.inc,v 1.6 2006/03/02 19:17:07 cellog Exp $ */ class parserGlobal extends parserElement { @@ -304,7 +304,7 @@ * @subpackage ParserElements * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserElements.inc,v 1.5 2006/02/27 04:05:08 cellog Exp $ + * @version $Id: ParserElements.inc,v 1.6 2006/03/02 19:17:07 cellog Exp $ */ class parserFunction extends parserElement { @@ -665,7 +665,7 @@ * @subpackage ParserElements * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserElements.inc,v 1.5 2006/02/27 04:05:08 cellog Exp $ + * @version $Id: ParserElements.inc,v 1.6 2006/03/02 19:17:07 cellog Exp $ */ class parserClass extends parserElement { @@ -895,10 +895,21 @@ * @return mixed {@link parserMethod} or false if not found * @param Converter this function will not work before the Conversion stage of parsing * @param string method name in this class + * @param boolean determines whether to search inherited methods as well */ - function getMethod(&$c, $name) + function getMethod(&$c, $name, $inherited = false) { - return $c->classes->getMethod($this->name,$this->curfile,$name); + $ret = $c->classes->getMethod($this->name, $this->curfile, $name); + if ($ret) return $ret; + if ($inherited) { + $x = $this; + while ($x->parent && is_array($x->parent)) { + $par = $x->getParent($c); + $x = $par; + if ($meth = $x->getMethod($c, $name)) return $meth; + } + } + return false; } /** @@ -930,11 +941,22 @@ /** * @param Converter this function will not work before the Conversion stage of parsing * @param string method name + * @param boolean determines whether to search inherited methods as well * @return boolean whether this class has a method of name $name */ - function hasMethod(&$c,$name) + function hasMethod(&$c, $name, $inherited = false) { - return $c->classes->hasMethod($this->name, $this->curfile, $name); + $ret = $c->classes->hasMethod($this->name, $this->curfile, $name); + if ($ret) return $ret; + if ($inherited) { + $x = $this; + while ($x->parent && is_array($x->parent)) { + $par = $x->getParent($c); + $x = $par; + if ($x->hasMethod($c, $name)) return true; + } + } + return false; } /** @@ -1373,7 +1395,7 @@ * @subpackage ParserElements * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserElements.inc,v 1.5 2006/02/27 04:05:08 cellog Exp $ + * @version $Id: ParserElements.inc,v 1.6 2006/03/02 19:17:07 cellog Exp $ */ class parserVar extends parserElement { @@ -1585,7 +1607,7 @@ * @subpackage ParserElements * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserElements.inc,v 1.5 2006/02/27 04:05:08 cellog Exp $ + * @version $Id: ParserElements.inc,v 1.6 2006/03/02 19:17:07 cellog Exp $ */ class parserMethod extends parserFunction { @@ -1674,7 +1696,8 @@ /** * @param Converter - * @return mixed {@link parserMethod} representing method this method overrides from the parent class, or false if none + * @return mixed {@link parserMethod} representing method this method + * overrides from the parent class, or false if none */ function getOverrides(&$c) { @@ -1758,6 +1781,114 @@ return false; } + /** + * @param Converter + * @return mixed {@link parserMethod} representing method this method implements + * from an interface, or false if none + */ + function getImplements(&$c) + { + $class = $c->classes->getClass($this->class,$this->path); + + $implements = $class->getImplements(); + if (!count($implements)) { + return false; + } + $ret = array(); + $haveAlready = array(); + foreach ($implements as $interface) { + $interface_link = $c->getLink('object ' . $interface); + if (is_a($interface_link, 'classlink')) { + $par = $c->classes->getClass($interface_link->name, + $interface_link->path); + if (is_object($par)) { + if ($par->hasMethod($c, $this->name, true)) + { + $meth = $par->getMethod($c, $this->name); + if (!$meth) { + $meth = $par->getMethod($c, $this->name, true); + } + if (!($meth->docblock && $meth->docblock->hasaccess && + !$c->parseprivate && $meth->docblock->tags['access'][0]->value == 'private')) { + if (isset($haveAlready[$meth->getClass()])) { + // this ensures extended interfaces don't cause + // 2 links to the same method + if ($haveAlready[$meth->getClass()] == $this->name) { + continue; + } + } + $ret[] = $meth; + $haveAlready = array($meth->getClass() => $this->name); + } + } + } + continue; + } + if (class_exists('ReflectionClass')) { + if (interface_exists($interface)) { + $info = new ReflectionClass($interface); + if ($info->hasMethod($this->name)) { + $par = $info; + $method = $par->getMethod($this->name); + $var = new parserMethod($par->getName()); + if ($method->returnsReference()) { + $var->setReturnsReference(); + } + $doc = new parserDocBlock; + foreach ($method->getParameters() as $param) { + $value = $param->isOptional() ? var_export($param->getDefaultValue(), true) : null; + if ($param->isPassedByReference()) { + $var->addParam('&$' . $param->getName(), $value, $param->isOptional(), + $param->getClass()); + } else { + $var->addParam('$' . $param->getName(), $value, $param->isOptional(), + $param->getClass()); + } + } + $var->setName($method->getName()); + $doc->addPackage('package', $this->getPackage()); + $par = $method->getDeclaringClass(); + $var->setLineNumber($par->getStartLine()); + $modifiers = array(); + if ($method->isPrivate()) { + $modifiers[] = 'private'; + $doc->addAccess('private'); + } + $blank = new parserStringWithInlineTags; + if ($method->isAbstract()) { + $modifiers[] = 'abstract'; + $doc->addKeyword('abstract', $blank); + } + if ($method->isFinal()) { + $modifiers[] = 'final'; + $doc->addKeyword('final', $blank); + } + if ($method->isProtected()) { + $modifiers[] = 'protected'; + $doc->addAccess('protected'); + } + if ($method->isPublic()) { + $modifiers[] = 'public'; + $doc->addAccess('public'); + } + if ($method->isStatic()) { + $modifiers[] = 'static'; + $doc->addKeyword('static', $blank); + } + if ($method->isConstructor()) { + $var->setConstructor(); + } + $var->setDocBlock($doc); + $var->setModifiers($modifiers); + $ret[] = $var; + continue; + } + } + } + } + + return $ret; + } /** * quick way to link to this element @@ -1831,7 +1962,7 @@ * @subpackage ParserElements * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserElements.inc,v 1.5 2006/02/27 04:05:08 cellog Exp $ + * @version $Id: ParserElements.inc,v 1.6 2006/03/02 19:17:07 cellog Exp $ */ class parserDefine extends parserElement { @@ -1875,7 +2006,7 @@ * @subpackage ParserElements * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: ParserElements.inc,v 1.5 2006/02/27 04:05:08 cellog Exp $ + * @version $Id: ParserElements.inc,v 1.6 2006/03/02 19:17:07 cellog Exp $ */ class parserPackagePage extends parserStringWithInlineTags { http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/CHM/default/templates/default/templates/method.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/CHM/default/templates/default/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/CHM/default/templates/default/templates/method.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/CHM/default/templates/default/templates/method.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/CHM/default/templates/default/templates/method.tpl:1.2 Fri Feb 24 07:39:32 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/CHM/default/templates/default/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -46,6 +46,18 @@ {if $methods[methods].method_overrides} <p>Overrides {$methods[methods].method_overrides.link} ({$methods[methods].method_overrides.sdesc|default:"parent method not documented"})</p> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {include file="docblock.tpl" sdesc=$methods[methods].sdesc desc=$methods[methods].desc tags=$methods[methods].tags params=$methods[methods].params function=true} <p class="top">[ <a href="#top">Top</a> ]</p> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/HTMLSmartyConverter.inc?r1=1.3&r2=1.4&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/HTMLSmartyConverter.inc diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/HTMLSmartyConverter.inc:1.3 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/HTMLSmartyConverter.inc:1.4 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/HTMLSmartyConverter.inc:1.3 Fri Feb 24 03:13:03 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/HTMLSmartyConverter.inc Thu Mar 2 19:17:08 2006 @@ -25,7 +25,7 @@ * @see parserDocBlock, parserInclude, parserPage, parserClass, parserDefine, parserFunction, parserMethod, parserVar * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ /** * HTML output converter. @@ -36,7 +36,7 @@ * @see parserDocBlock, parserInclude, parserPage, parserClass, parserDefine, parserFunction, parserMethod, parserVar * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ class HTMLSmartyConverter extends Converter { @@ -328,8 +328,10 @@ flush(); } $this->setTargetDir($this->base_dir . PATH_DELIMITER . $this->class_dir); - $this->class_data->assign("compiledclassindex",$this->getClassLeft()); + $classleft = $this->getClassLeft(); $this->class_data->assign("compiledfileindex",$this->getPageLeft()); + $this->class_data->assign("compiledclassindex",$classleft['class']); + $this->class_data->assign("compiledinterfaceindex",$classleft['interface']); $this->class_data->assign("tutorials",$this->getTutorialList()); $this->class_data->assign("contents",$this->getClassContents()); $this->class_data->assign("packageindex",$this->package_index); @@ -413,17 +415,28 @@ { if (isset($this->_classleft_cache[$this->package][$this->subpackage])) return $this->_classleft_cache[$this->package][$this->subpackage]; } - $arr = array(); + $arr = $classarr = $interfacearr = array(); if (isset($this->left['#class'][$this->package])) foreach($this->left['#class'][$this->package] as $subpackage => $pages) { - $arr[$subpackage] = $pages; + for ($i = 0; $i < count($pages); $i++) { + if ($pages[$i]['is_interface']) { + $interfacearr[$subpackage][] = $pages[$i]; + } else { + $classarr[$subpackage][] = $pages[$i]; + } + } } $templ = &$this->newSmarty(); - $templ->assign('classleftindex',$arr); - $arr = $templ->fetch('classleft.tpl'); - $this->_classleft_cache[$this->package][$this->subpackage] = $arr; - return $arr; + $templ->assign('classleftindex',$classarr); + $classarr = $templ->fetch('classleft.tpl'); + $this->_classleft_cache[$this->package][$this->subpackage]['class'] = $classarr; + $templ = &$this->newSmarty(); + $templ->assign('classleftindex',$interfacearr); + $interfacearr = $templ->fetch('classleft.tpl'); + $this->_classleft_cache[$this->package][$this->subpackage]['interface'] = + $interfacearr; + return $this->_classleft_cache[$this->package][$this->subpackage]; } function getClassContents() @@ -489,10 +502,12 @@ $this->subpackage = $this->curpage->subpackage; $a = '../'; if (!empty($this->subpackage)) $a .= '../'; + $classleft = $this->getClassLeft(); $this->setTargetDir($this->base_dir . PATH_DELIMITER . $this->page_dir); $this->page_data->assign("contents",$this->getPageContents()); $this->page_data->assign("compiledfileindex",$this->getPageLeft()); - $this->page_data->assign("compiledclassindex",$this->getClassLeft()); + $this->page_data->assign("compiledclassindex",$classleft['class']); + $this->page_data->assign("compiledinterfaceindex",$classleft['interface']); $this->page_data->assign("tutorials",$this->getTutorialList()); $this->page_data->assign("packageindex",$this->package_index); $this->page_data->assign("package",$this->package); @@ -542,8 +557,16 @@ { for($i=0;$i<count($links);$i++) { + $isinterface = false; + if ($links[$i]->type == 'class') { + $class = $this->classes->getClass($links[$i]->name, + $links[$i]->path); + if ($class) { + $isinterface = $class->isInterface(); + } + } $this->left['#class'][$package][$subpackage][] = - array("link" => $this->getId($links[$i]), "title" => $links[$i]->name); + array("link" => $this->getId($links[$i]), "title" => $links[$i]->name, 'is_interface' => $isinterface); } } } @@ -564,8 +587,10 @@ $template = &$this->newSmarty(); $this->package = $package_indexes[$i]['package']; $this->subpackage = ''; - $template->assign("compiledclassindex",$this->getClassLeft()); + $classleft = $this->getClassLeft(); $template->assign("compiledfileindex",$this->getPageLeft()); + $template->assign("compiledclassindex",$classleft['class']); + $template->assign("compiledinterfaceindex",$classleft['interface']); $template->assign("tutorials",$this->getTutorialList()); $template->assign("index",$package_indexes[$i]['pindex']); $template->assign("package",$package_indexes[$i]['package']); @@ -630,8 +655,10 @@ } $this->package = $start; $this->subpackage = ''; - $index->assign("compiledclassindex",$this->getClassLeft()); + $classleft = $this->getClassLeft(); $index->assign("compiledfileindex",$this->getPageLeft()); + $index->assign("compiledclassindex",$classleft['class']); + $index->assign("compiledinterfaceindex",$classleft['interface']); $index->assign('hastodos',count($this->todoList)); $index->assign('todolink','todolist.html'); $index->assign("tutorials",$this->getTutorialList()); @@ -657,8 +684,10 @@ $template = &$this->newSmarty(); $this->package = $key; $this->subpackage = ''; - $template->assign("compiledclassindex",$this->getClassLeft()); + $classleft = $this->getClassLeft(); $template->assign("compiledfileindex",$this->getPageLeft()); + $template->assign("compiledclassindex",$classleft['class']); + $template->assign("compiledinterfaceindex",$classleft['interface']); $template->assign("tutorials",$this->getTutorialList()); $template->assign("date",date("r",time())); $template->assign("title",$this->title); @@ -699,9 +728,12 @@ if (!isset($this->pkg_elements[$package])) continue; // Create class tree page $template = &$this->newSmarty(); - $template->assign("compiledclassindex",$this->getClassLeft()); + $classleft = $this->getClassLeft(); $template->assign("compiledfileindex",$this->getPageLeft()); + $template->assign("compiledclassindex",$classleft['class']); + $template->assign("compiledinterfaceindex",$classleft['interface']); $template->assign("classtrees",$this->generateFormattedClassTrees($package)); + $template->assign("interfaces",$this->generateFormattedInterfaceTrees($package)); $template->assign("package",$package); $template->assign("date",date("r",time())); $template->assign("title","Class Trees for Package $package"); @@ -952,8 +984,10 @@ $template = &$this->newSmarty(); $this->package = $element->package; $this->subpackage = ''; - $template->assign("compiledclassindex",$this->getClassLeft()); + $classleft = $this->getClassLeft(); $template->assign("compiledfileindex",$this->getPageLeft()); + $template->assign("compiledclassindex",$classleft['class']); + $template->assign("compiledinterfaceindex",$classleft['interface']); $template->assign("tutorials",$this->getTutorialList()); $template->assign("date",date("r",time())); $template->assign("title",$this->title); @@ -980,8 +1014,10 @@ $template = &parent::convertTutorial($element); $this->package = $element->package; $this->subpackage = $element->subpackage; - $template->assign("compiledclassindex",$this->getClassLeft()); + $classleft = $this->getClassLeft(); $template->assign("compiledfileindex",$this->getPageLeft()); + $template->assign("compiledclassindex",$classleft['class']); + $template->assign("compiledinterfaceindex",$classleft['interface']); $template->assign("tutorials",$this->getTutorialList()); $template->assign("title",strip_tags($element->getTitle($this))); $contents = $element->Convert($this); @@ -1203,6 +1239,32 @@ $roots = $this->roots[$package]; for($i=0;$i<count($roots);$i++) { + $root = $this->classes->getClassByPackage($roots[$i], $package); + if ($root && $root->isInterface()) { + continue; + } + $trees[] = array('class' => $roots[$i],'class_tree' => "<ul>\n".$this->getRootTree($this->getSortedClassTreeFromClass($roots[$i],$package,''),$package)."</ul>\n"); + } + return $trees; + } + + /** + * returns a template-enabled array of interface inheritance trees + * + * @param string $package package to generate a class tree for + * @see $roots, HTMLConverter::getRootTree() + */ + function generateFormattedInterfaceTrees($package) + { + if (!isset($this->roots[$package])) return array(); + $roots = $trees = array(); + $roots = $this->roots[$package]; + for($i=0;$i<count($roots);$i++) + { + $root = $this->classes->getClassByPackage($roots[$i], $package); + if ($root && !$root->isInterface()) { + continue; + } $trees[] = array('class' => $roots[$i],'class_tree' => "<ul>\n".$this->getRootTree($this->getSortedClassTreeFromClass($roots[$i],$package,''),$package)."</ul>\n"); } return $trees; @@ -1212,10 +1274,11 @@ * return formatted class tree for the Class Trees page * * @param array $tree output from {@link getSortedClassTreeFromClass()} + * @param string $package package * @see Classes::$definitechild, generateFormattedClassTrees() * @return string */ - function getRootTree($tree,$package) + function getRootTree($tree, $package) { if (!$tree) return ''; $my_tree = ''; @@ -1234,6 +1297,7 @@ else { // debug("parent ".$this->returnSee($tree[$cur]['parent'])." in other package"); + $root = $this->classes->getClassByPackage($tree[$cur]['parent'], $package); $my_tree .= '<li>' . $this->returnSee($tree[$cur]['parent']); if ($tree[$cur]['parent']->package != $package) $my_tree .= ' <b>(Different package)</b><ul>'; } @@ -1248,7 +1312,24 @@ { // debug("set $cur kids"); $kids[$cur] = 1; - $my_tree .= '<li>'.$this->returnSee($tree[$cur]['link']); + $root = $this->classes->getClassByPackage( + $tree[$cur]['link']->name, + $tree[$cur]['link']->package); + if ($implements = $root->getImplements()) { + $my_tree .= '<li>'.$this->returnSee($tree[$cur]['link']) . + ' (implements '; + foreach ($implements as $i => $interface) { + if ($i && $i != count($implements) - 1) $my_tree .= ', '; + if ($link = $this->getLink('object ' . $interface)) { + $my_tree .= $this->returnSee($link); + } else { + $my_tree .= $interface; + } + } + $my_tree .= ')'; + } else { + $my_tree .= '<li>'.$this->returnSee($tree[$cur]['link']); + } $my_tree .= '<ul>'."\n"; } array_push($lastcur,$cur); @@ -1278,125 +1359,127 @@ } while ($cur); return $my_tree; } - /** - * Generate indexing information for given element - * - * @param parserElement descendant of parserElement - * @see generateElementIndex() - * @return array - */ - function getIndexInformation($elt) - { - $Result['type'] = $elt->type; - $Result['file_name'] = $elt->file; - $Result['path'] = $elt->getPath(); - - if (isset($elt->docblock)) - { - $Result['description'] = $elt->docblock->getSDesc($this); - - if ($elt->docblock->hasaccess) - $Result['access'] = $elt->docblock->tags['access'][0]->value; - else - $Result['access'] = 'public'; - $Result['abstract'] = isset ($elt->docblock->tags['abstract'][0]); - } - else - $Result['description'] = ''; - - $aa = $Result['description']; - if (!empty($aa)) $aa = "<br>&nbsp;&nbsp;&nbsp;&nbsp;$aa"; - - switch($elt->type) - { - case 'class': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Class'; - $Result['link'] = $this->getClassLink($elt->getName(), - $elt->docblock->package, - $elt->getPath(), - $elt->getName()); - $Result['listing'] = 'in file '.$elt->file.', class '.$Result['link']."$aa"; - break; - case 'define': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Constant'; - $Result['link'] = $this->getDefineLink($elt->getName(), - $elt->docblock->package, - $elt->getPath(), - $elt->getName()); - $Result['listing'] = 'in file '.$elt->file.', constant '.$Result['link']."$aa"; - break; - case 'global': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Global'; - $Result['link'] = $this->getGlobalLink($elt->getName(), - $elt->docblock->package, - $elt->getPath(), - $elt->getName()); - $Result['listing'] = 'in file '.$elt->file.', global variable '.$Result['link']."$aa"; - break; - case 'function': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Function'; - $Result['link'] = $this->getFunctionLink($elt->getName(), - $elt->docblock->package, - $elt->getPath(), - $elt->getName().'()'); - $Result['listing'] = 'in file '.$elt->file.', function '.$Result['link']."$aa"; - break; - case 'method': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Method'; - $Result['link'] = $this->getMethodLink($elt->getName(), - $elt->class, - $elt->docblock->package, - $elt->getPath(), - $elt->class.'::'.$elt->getName().'()' - ); - if ($elt->isConstructor) $Result['constructor'] = 1; - $Result['listing'] = 'in file '.$elt->file.', method '.$Result['link']."$aa"; - break; - case 'var': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Variable'; - $Result['link'] = $this->getVarLink($elt->getName(), - $elt->class, - $elt->docblock->package, - $elt->getPath(), - $elt->class.'::'.$elt->getName()); - $Result['listing'] = 'in file '.$elt->file.', variable '.$Result['link']."$aa"; - break; - case 'const': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Variable'; - $Result['link'] = $this->getConstLink($elt->getName(), - $elt->class, - $elt->docblock->package, - $elt->getPath(), - $elt->class.'::'.$elt->getName()); - $Result['listing'] = 'in file '.$elt->file.', class constant '.$Result['link']."$aa"; - break; - case 'page': - $Result['name'] = $elt->getFile(); - $Result['title'] = 'Page'; - $Result['link'] = $this->getPageLink($elt->getFile(), - $elt->package, - $elt->getPath(), - $elt->getFile()); - $Result['listing'] = 'procedural page '.$Result['link']; - break; - case 'include': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Include'; - $Result['link'] = $elt->getValue(); - $Result['listing'] = 'include '.$Result['name']; - break; - } + /** + * Generate indexing information for given element + * + * @param parserElement descendant of parserElement + * @see generateElementIndex() + * @return array + */ + function getIndexInformation($elt) + { + $Result['type'] = $elt->type; + $Result['file_name'] = $elt->file; + $Result['path'] = $elt->getPath(); + + if (isset($elt->docblock)) + { + $Result['description'] = $elt->docblock->getSDesc($this); + + if ($elt->docblock->hasaccess) + $Result['access'] = $elt->docblock->tags['access'][0]->value; + else + $Result['access'] = 'public'; + + $Result['abstract'] = isset ($elt->docblock->tags['abstract'][0]); + } + else + $Result['description'] = ''; + + $aa = $Result['description']; + if (!empty($aa)) $aa = "<br>&nbsp;&nbsp;&nbsp;&nbsp;$aa"; - return $Result; + switch($elt->type) + { + case 'class': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Class'; + $Result['link'] = $this->getClassLink($elt->getName(), + $elt->docblock->package, + $elt->getPath(), + $elt->getName()); + $Result['listing'] = 'in file '.$elt->file.', class '.$Result['link']."$aa"; + break; + case 'define': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Constant'; + $Result['link'] = $this->getDefineLink($elt->getName(), + $elt->docblock->package, + $elt->getPath(), + $elt->getName()); + $Result['listing'] = 'in file '.$elt->file.', constant '.$Result['link']."$aa"; + break; + case 'global': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Global'; + $Result['link'] = $this->getGlobalLink($elt->getName(), + $elt->docblock->package, + $elt->getPath(), + $elt->getName()); + $Result['listing'] = 'in file '.$elt->file.', global variable '.$Result['link']."$aa"; + break; + case 'function': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Function'; + $Result['link'] = $this->getFunctionLink($elt->getName(), + $elt->docblock->package, + $elt->getPath(), + $elt->getName().'()'); + $Result['listing'] = 'in file '.$elt->file.', function '.$Result['link']."$aa"; + break; + case 'method': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Method'; + $Result['link'] = $this->getMethodLink($elt->getName(), + $elt->class, + $elt->docblock->package, + $elt->getPath(), + $elt->class.'::'.$elt->getName().'()' + ); + if ($elt->isConstructor) $Result['constructor'] = 1; + $Result['listing'] = 'in file '.$elt->file.', method '.$Result['link']."$aa"; + break; + case 'var': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Variable'; + $Result['link'] = $this->getVarLink($elt->getName(), + $elt->class, + $elt->docblock->package, + $elt->getPath(), + $elt->class.'::'.$elt->getName()); + $Result['listing'] = 'in file '.$elt->file.', variable '.$Result['link']."$aa"; + break; + case 'const': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Variable'; + $Result['link'] = $this->getConstLink($elt->getName(), + $elt->class, + $elt->docblock->package, + $elt->getPath(), + $elt->class.'::'.$elt->getName()); + $Result['listing'] = 'in file '.$elt->file.', class constant '.$Result['link']."$aa"; + break; + case 'page': + $Result['name'] = $elt->getFile(); + $Result['title'] = 'Page'; + $Result['link'] = $this->getPageLink($elt->getFile(), + $elt->package, + $elt->getPath(), + $elt->getFile()); + $Result['listing'] = 'procedural page '.$Result['link']; + break; + case 'include': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Include'; + $Result['link'] = $elt->getValue(); + $Result['listing'] = 'include '.$Result['name']; + break; } + + return $Result; + } + /** * Generate alphabetical index of all elements * http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/class.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/class.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/class.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/class.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/class.tpl:1.1 Mon Oct 17 18:36:59 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/class.tpl Thu Mar 2 19:17:08 2006 @@ -13,6 +13,7 @@ <a href="#sec-descendents">Descendants</a> {if $vars || $ivars || $methods || $imethods || $consts || $iconsts}|{/if} {/if} + {if $ivars || $imethods} <a href="#sec-inherited">Inherited Properties, Constants, and Methods</a> {if $vars || $ivars || $methods || $imethods || $consts || $iconsts}|{/if} @@ -45,6 +46,14 @@ <table width="100%" border="0"> <tr><td valign="top" width="60%" class="class-overview"> + {if $implements} + <p class="implements"> + Implements interfaces: + <ul> + {foreach item="int" from=$implements}<li>{$int}</li>{/foreach} + </ul> + </p> + {/if} {include file="docblock.tpl" type="class" sdesc=$sdesc desc=$desc} <p class="notes"> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/classtrees.tpl:1.1 Mon Oct 17 18:36:59 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -1,8 +1,17 @@ {include file="header.tpl" noleftindex=true} <h1>{$title}</h1> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<hr /> +<div class="classtree">Root interface {$interfaces[classtrees].class}</div><br /> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} -<hr class="separator" /> -<div class="classtree">Root class {$classtrees[classtrees].class}</div> +<hr /> +<div class="classtree">Root class {$classtrees[classtrees].class}</div><br /> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/header.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/header.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/header.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/header.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/header.tpl:1.1 Mon Oct 17 18:36:59 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/header.tpl Thu Mar 2 19:17:08 2006 @@ -81,6 +81,10 @@ {eval var=$compiledfileindex} {/if} <br /> + {if $compiledinterfaceindex} + <b>Interfaces:</b><br /> + {eval var=$compiledinterfaceindex} + {/if} {if $compiledclassindex} <b>Classes:</b><br /> {eval var=$compiledclassindex} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/method.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/method.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/method.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/method.tpl:1.2 Fri Feb 24 07:39:32 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/HandS/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -53,6 +53,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" /> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/class.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/class.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/class.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/class.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/class.tpl:1.1 Mon Oct 17 18:37:01 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/class.tpl Thu Mar 2 19:17:08 2006 @@ -56,6 +56,14 @@ <li>{$copyright}</li> </ul> {/if} + {if $implements} + <p class="implements"> + Implements interfaces: + <ul> + {foreach item="int" from=$implements}<li>{$int}</li>{/foreach} + </ul> + </p> + {/if} </td> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:01 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -1,8 +1,17 @@ {include file="header.tpl" noleftindex=true} <h1>{$title}</h1> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<hr /> +<div class="classtree">Root interface {$interfaces[classtrees].class}</div><br /> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <hr /> -<div class="classtree">Root class {$classtrees[classtrees].class}</div><br> +<div class="classtree">Root class {$classtrees[classtrees].class}</div><br /> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/header.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/header.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/header.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/header.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/header.tpl:1.1 Mon Oct 17 18:37:01 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/header.tpl Thu Mar 2 19:17:08 2006 @@ -68,6 +68,11 @@ {eval var=$compiledfileindex} {/if} + {if $compiledinterfaceindex} + <b>Interfaces:</b><br /> + {eval var=$compiledinterfaceindex} + {/if} + {if $compiledclassindex} <b>Classes:</b><br /> {eval var=$compiledclassindex} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/method.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/method.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/method.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/method.tpl:1.2 Fri Feb 24 07:39:32 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PHP/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -30,6 +30,18 @@ </dl> {/section}</p> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {* original {if $methods[methods].descmethod != "" {$methods[methods].descmethod<br /><br /> {/if *} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/class.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/class.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/class.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/class.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/class.tpl:1.1 Mon Oct 17 18:37:02 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/class.tpl Thu Mar 2 19:17:08 2006 @@ -85,6 +85,12 @@ </div> <div class="leftCol"> + {if $implements} + <h2>Implements interfaces</h2> + <ul> + {foreach item="int" from=$implements}<li>{$int}</li>{/foreach} + </ul> + {/if} <h2>Inherited Variables</h2> {section name=ivars loop=$ivars} <div class="indent"> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:02 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -1,8 +1,17 @@ {include file="header.tpl" noleftindex=true} <h1>{$title}</h1> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<hr /> +<div class="classtree">Root interface {$interfaces[classtrees].class}</div><br /> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} -<hr> -<div class="classtree">Root class {$classtrees[classtrees].class}</div><br> +<hr /> +<div class="classtree">Root class {$classtrees[classtrees].class}</div><br /> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/header.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/header.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/header.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/header.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/header.tpl:1.1 Mon Oct 17 18:37:02 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/header.tpl Thu Mar 2 19:17:08 2006 @@ -72,6 +72,10 @@ Files:<br> {eval var=$compiledfileindex}{/if} </div> + <div id="interfaces"> + {if $compiledinterfaceindex}Interfaces:<br> + {eval var=$compiledinterfaceindex}{/if} + </div> <div id="classes"> {if $compiledclassindex}Classes:<br> {eval var=$compiledclassindex}{/if} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/method.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/method.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/method.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/method.tpl:1.2 Fri Feb 24 07:39:32 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -30,6 +30,18 @@ {/section}</p> {/if} {if $methods[methods].method_overrides}<p>Overrides {$methods[methods].method_overrides.link} ({$methods[methods].method_overrides.sdesc|default:"parent method not documented"})</p>{/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} <h4>Parameters:</h4> <ul> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/HTMLframesConverter.inc?r1=1.4&r2=1.5&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/HTMLframesConverter.inc diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/HTMLframesConverter.inc:1.4 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/HTMLframesConverter.inc:1.5 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/HTMLframesConverter.inc:1.4 Tue Feb 28 05:27:55 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/HTMLframesConverter.inc Thu Mar 2 19:17:08 2006 @@ -25,7 +25,7 @@ * @see parserDocBlock, parserInclude, parserPage, parserClass, parserDefine, parserFunction, parserMethod, parserVar * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.0rc1 - * @version $Id: HTMLframesConverter.inc,v 1.4 2006/02/28 05:27:55 cellog Exp $ + * @version $Id: HTMLframesConverter.inc,v 1.5 2006/03/02 19:17:08 cellog Exp $ */ /** * HTML output converter. @@ -36,7 +36,7 @@ * @see parserDocBlock, parserInclude, parserPage, parserClass, parserDefine, parserFunction, parserMethod, parserVar * @author Greg Beaver <cellog@users.sourceforge.net> * @since 1.2 - * @version $Id: HTMLframesConverter.inc,v 1.4 2006/02/28 05:27:55 cellog Exp $ + * @version $Id: HTMLframesConverter.inc,v 1.5 2006/03/02 19:17:08 cellog Exp $ */ class HTMLframesConverter extends Converter { @@ -366,6 +366,7 @@ } } } + $interfaces = $classes = false; foreach($this->class_elements as $package => $o1) { foreach($o1 as $subpackage => $links) @@ -373,16 +374,28 @@ for($i=0;$i<count($links);$i++) { $class = $this->classes->getClassByPackage($links[$i]->name, $links[$i]->package); + $isinterface = $isclass = false; + if ($class->isInterface()) { + $isinterface = true; + $interfaces = true; + } else { + $isclass = true; + $classes = true; + } if ($class && isset($class->docblock) && $class->docblock->hasaccess) { $left[$package][$subpackage]['classes'][] = array("link" => $this->getId($links[$i]), "title" => $links[$i]->name, + 'is_interface' => $isinterface, + 'is_class' => $isclass, "access" => $class->docblock->tags['access'][0]->value, "abstract" => isset ($class->docblock->tags['abstract'][0])); } else { $left[$package][$subpackage]['classes'][] = array("link" => $this->getId($links[$i]), "title" => $links[$i]->name, + 'is_interface' => $isinterface, + 'is_class' => $isclass, "access" => 'public', "abstract" => isset ($class->docblock->tags['abstract'][0])); } @@ -498,6 +511,8 @@ $my['files'] = $info['files']; if (isset($info['classes'])) $my['classes'] = $info['classes']; + $my['hasclasses'] = $classes; + $my['hasinterfaces'] = $interfaces; if (isset($info['functions'])) $my['functions'] = $info['functions']; $ret[$package][] = $my; @@ -719,6 +734,7 @@ // Create class tree page $template = &$this->newSmarty(); $template->assign("classtrees",$this->generateFormattedClassTrees($package)); + $template->assign("interfaces",$this->generateFormattedInterfaceTrees($package)); $template->assign("package",$package); $template->register_outputfilter('HTMLframes_outputfilter'); $this->writefile("classtrees_$package.html",$template->fetch('classtrees.tpl')); @@ -1171,6 +1187,32 @@ $roots = $this->roots[$package]; for($i=0;$i<count($roots);$i++) { + $root = $this->classes->getClassByPackage($roots[$i], $package); + if ($root && $root->isInterface()) { + continue; + } + $trees[] = array('class' => $roots[$i],'class_tree' => "<ul>\n".$this->getRootTree($this->getSortedClassTreeFromClass($roots[$i],$package,''),$package)."</ul>\n"); + } + return $trees; + } + + /** + * returns a template-enabled array of interface inheritance trees + * + * @param string $package package to generate a class tree for + * @see $roots, HTMLConverter::getRootTree() + */ + function generateFormattedInterfaceTrees($package) + { + if (!isset($this->roots[$package])) return array(); + $roots = $trees = array(); + $roots = $this->roots[$package]; + for($i=0;$i<count($roots);$i++) + { + $root = $this->classes->getClassByPackage($roots[$i], $package); + if ($root && !$root->isInterface()) { + continue; + } $trees[] = array('class' => $roots[$i],'class_tree' => "<ul>\n".$this->getRootTree($this->getSortedClassTreeFromClass($roots[$i],$package,''),$package)."</ul>\n"); } return $trees; @@ -1180,10 +1222,11 @@ * return formatted class tree for the Class Trees page * * @param array $tree output from {@link getSortedClassTreeFromClass()} + * @param string $package package * @see Classes::$definitechild, generateFormattedClassTrees() * @return string */ - function getRootTree($tree,$package) + function getRootTree($tree, $package) { if (!$tree) return ''; $my_tree = ''; @@ -1202,6 +1245,7 @@ else { // debug("parent ".$this->returnSee($tree[$cur]['parent'])." in other package"); + $root = $this->classes->getClassByPackage($tree[$cur]['parent'], $package); $my_tree .= '<li>' . $this->returnSee($tree[$cur]['parent']); if ($tree[$cur]['parent']->package != $package) $my_tree .= ' <b>(Different package)</b><ul>'; } @@ -1216,7 +1260,24 @@ { // debug("set $cur kids"); $kids[$cur] = 1; - $my_tree .= '<li>'.$this->returnSee($tree[$cur]['link']); + $root = $this->classes->getClassByPackage( + $tree[$cur]['link']->name, + $tree[$cur]['link']->package); + if ($implements = $root->getImplements()) { + $my_tree .= '<li>'.$this->returnSee($tree[$cur]['link']) . + ' (implements '; + foreach ($implements as $i => $interface) { + if ($i && $i != count($implements) - 1) $my_tree .= ', '; + if ($link = $this->getLink('object ' . $interface)) { + $my_tree .= $this->returnSee($link); + } else { + $my_tree .= $interface; + } + } + $my_tree .= ')'; + } else { + $my_tree .= '<li>'.$this->returnSee($tree[$cur]['link']); + } $my_tree .= '<ul>'."\n"; } array_push($lastcur,$cur); @@ -1246,125 +1307,126 @@ } while ($cur); return $my_tree; } - /** - * Generate indexing information for given element - * - * @param parserElement descendant of parserElement - * @see generateElementIndex() - * @return array - */ - function getIndexInformation($elt) - { - $Result['type'] = $elt->type; - $Result['file_name'] = $elt->file; - $Result['path'] = $elt->getPath(); - - if (isset($elt->docblock)) - { - $Result['description'] = $elt->docblock->getSDesc($this); - - if ($elt->docblock->hasaccess) - $Result['access'] = $elt->docblock->tags['access'][0]->value; - else - $Result['access'] = 'public'; - $Result['abstract'] = isset ($elt->docblock->tags['abstract'][0]); - } - else - $Result['description'] = ''; - - $aa = $Result['description']; - if (!empty($aa)) $aa = "<br>&nbsp;&nbsp;&nbsp;&nbsp;$aa"; + /** + * Generate indexing information for given element + * + * @param parserElement descendant of parserElement + * @see generateElementIndex() + * @return array + */ + function getIndexInformation($elt) + { + $Result['type'] = $elt->type; + $Result['file_name'] = $elt->file; + $Result['path'] = $elt->getPath(); + + if (isset($elt->docblock)) + { + $Result['description'] = $elt->docblock->getSDesc($this); + + if ($elt->docblock->hasaccess) + $Result['access'] = $elt->docblock->tags['access'][0]->value; + else + $Result['access'] = 'public'; - switch($elt->type) - { - case 'class': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Class'; - $Result['link'] = $this->getClassLink($elt->getName(), - $elt->docblock->package, - $elt->getPath(), - $elt->getName()); - $Result['listing'] = 'in file '.$elt->file.', class '.$Result['link']."$aa"; - break; - case 'define': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Constant'; - $Result['link'] = $this->getDefineLink($elt->getName(), - $elt->docblock->package, - $elt->getPath(), - $elt->getName()); - $Result['listing'] = 'in file '.$elt->file.', constant '.$Result['link']."$aa"; - break; - case 'global': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Global'; - $Result['link'] = $this->getGlobalLink($elt->getName(), - $elt->docblock->package, - $elt->getPath(), - $elt->getName()); - $Result['listing'] = 'in file '.$elt->file.', global variable '.$Result['link']."$aa"; - break; - case 'function': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Function'; - $Result['link'] = $this->getFunctionLink($elt->getName(), - $elt->docblock->package, - $elt->getPath(), - $elt->getName().'()'); - $Result['listing'] = 'in file '.$elt->file.', function '.$Result['link']."$aa"; - break; - case 'method': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Method'; - $Result['link'] = $this->getMethodLink($elt->getName(), - $elt->class, - $elt->docblock->package, - $elt->getPath(), - $elt->class.'::'.$elt->getName().'()' - ); - if ($elt->isConstructor) $Result['constructor'] = 1; - $Result['listing'] = 'in file '.$elt->file.', method '.$Result['link']."$aa"; - break; - case 'var': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Variable'; - $Result['link'] = $this->getVarLink($elt->getName(), - $elt->class, - $elt->docblock->package, - $elt->getPath(), - $elt->class.'::'.$elt->getName()); - $Result['listing'] = 'in file '.$elt->file.', variable '.$Result['link']."$aa"; - break; - case 'const': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Class Constant'; - $Result['link'] = $this->getConstLink($elt->getName(), - $elt->class, - $elt->docblock->package, - $elt->getPath(), - $elt->class.'::'.$elt->getName()); - $Result['listing'] = 'in file '.$elt->file.', class constant '.$Result['link']."$aa"; - break; - case 'page': - $Result['name'] = $elt->getFile(); - $Result['title'] = 'Page'; - $Result['link'] = $this->getPageLink($elt->getFile(), - $elt->package, - $elt->getPath(), - $elt->getFile()); - $Result['listing'] = 'procedural page '.$Result['link']; - break; - case 'include': - $Result['name'] = $elt->getName(); - $Result['title'] = 'Include'; - $Result['link'] = $elt->getValue(); - $Result['listing'] = 'include '.$Result['name']; - break; - } + $Result['abstract'] = isset ($elt->docblock->tags['abstract'][0]); + } + else + $Result['description'] = ''; + + $aa = $Result['description']; + if (!empty($aa)) $aa = "<br>&nbsp;&nbsp;&nbsp;&nbsp;$aa"; - return $Result; + switch($elt->type) + { + case 'class': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Class'; + $Result['link'] = $this->getClassLink($elt->getName(), + $elt->docblock->package, + $elt->getPath(), + $elt->getName()); + $Result['listing'] = 'in file '.$elt->file.', class '.$Result['link']."$aa"; + break; + case 'define': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Constant'; + $Result['link'] = $this->getDefineLink($elt->getName(), + $elt->docblock->package, + $elt->getPath(), + $elt->getName()); + $Result['listing'] = 'in file '.$elt->file.', constant '.$Result['link']."$aa"; + break; + case 'global': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Global'; + $Result['link'] = $this->getGlobalLink($elt->getName(), + $elt->docblock->package, + $elt->getPath(), + $elt->getName()); + $Result['listing'] = 'in file '.$elt->file.', global variable '.$Result['link']."$aa"; + break; + case 'function': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Function'; + $Result['link'] = $this->getFunctionLink($elt->getName(), + $elt->docblock->package, + $elt->getPath(), + $elt->getName().'()'); + $Result['listing'] = 'in file '.$elt->file.', function '.$Result['link']."$aa"; + break; + case 'method': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Method'; + $Result['link'] = $this->getMethodLink($elt->getName(), + $elt->class, + $elt->docblock->package, + $elt->getPath(), + $elt->class.'::'.$elt->getName().'()' + ); + if ($elt->isConstructor) $Result['constructor'] = 1; + $Result['listing'] = 'in file '.$elt->file.', method '.$Result['link']."$aa"; + break; + case 'var': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Variable'; + $Result['link'] = $this->getVarLink($elt->getName(), + $elt->class, + $elt->docblock->package, + $elt->getPath(), + $elt->class.'::'.$elt->getName()); + $Result['listing'] = 'in file '.$elt->file.', variable '.$Result['link']."$aa"; + break; + case 'const': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Class Constant'; + $Result['link'] = $this->getConstLink($elt->getName(), + $elt->class, + $elt->docblock->package, + $elt->getPath(), + $elt->class.'::'.$elt->getName()); + $Result['listing'] = 'in file '.$elt->file.', class constant '.$Result['link']."$aa"; + break; + case 'page': + $Result['name'] = $elt->getFile(); + $Result['title'] = 'Page'; + $Result['link'] = $this->getPageLink($elt->getFile(), + $elt->package, + $elt->getPath(), + $elt->getFile()); + $Result['listing'] = 'procedural page '.$Result['link']; + break; + case 'include': + $Result['name'] = $elt->getName(); + $Result['title'] = 'Include'; + $Result['link'] = $elt->getValue(); + $Result['listing'] = 'include '.$Result['name']; + break; } + + return $Result; + } /** * Generate alphabetical index of all elements * http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:03 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/left_frame.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/left_frame.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/left_frame.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/left_frame.tpl:1.2 Sat Feb 25 03:27:55 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -55,16 +55,33 @@ {/section} {/if} {/if} - - {if $info[p].classes} - var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc}'); - - {section name=class loop=$info[p].classes} - var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); - tree_classe.add(classe); - {/section} - - tree.add(tree_classe); + {if $info[p].hasinterfaces} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Interface(s)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} + {/if} + {if $info[p].hasclasses} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} {/if} {if $info[p].functions} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/method.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/method.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/method.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/method.tpl:1.1 Mon Oct 17 18:37:04 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/default/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -42,6 +42,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" /> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:05 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/left_frame.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/left_frame.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/left_frame.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/left_frame.tpl:1.2 Sat Feb 25 03:27:55 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -71,17 +71,36 @@ {/section} {/if} {/if} + + {if $info[p].hasinterfaces} + var tree_classe = new WebFXTreeItem('Interface(s)', '{$packagedoc|escape:"quotes"}'); + tree_classe.openIcon = 'media/images/class_folder.png'; + tree_classe.icon = 'media/images/class_folder.png'; + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + classe.openIcon = 'media/images/Interface.png'; + classe.icon = 'media/images/Interface.png'; + tree_classe.add(classe); + {/if} + {/section} - {if $info[p].classes} + tree.add(tree_classe); + {/if} + + {if $info[p].hasclasses} var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc|escape:"quotes"}'); tree_classe.openIcon = 'media/images/class_folder.png'; tree_classe.icon = 'media/images/class_folder.png'; {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); classe.openIcon = 'media/images/{if $info[p].classes[class].abstract}Abstract{/if}{if $info[p].classes[class].access == 'private'}Private{/if}Class.png'; classe.icon = 'media/images/{if $info[p].classes[class].abstract}Abstract{/if}{if $info[p].classes[class].access == 'private'}Private{/if}Class.png'; tree_classe.add(classe); + {/if} {/section} tree.add(tree_classe); http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/method.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/method.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/method.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/method.tpl:1.1 Mon Oct 17 18:37:06 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/earthli/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -43,6 +43,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" /> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:08 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/left_frame.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/left_frame.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/left_frame.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/left_frame.tpl:1.2 Sat Feb 25 03:27:55 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -56,15 +56,33 @@ {/if} {/if} - {if $info[p].classes} - var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc|escape:"quotes"}'); - - {section name=class loop=$info[p].classes} - var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); - tree_classe.add(classe); - {/section} - - tree.add(tree_classe); + {if $info[p].hasinterfaces} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Interface(s)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} + {/if} + {if $info[p].hasclasses} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} {/if} {if $info[p].functions} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/method.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/method.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/method.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/method.tpl:1.1 Mon Oct 17 18:37:10 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/l0l33t/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -42,6 +42,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" /> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:11 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/left_frame.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/left_frame.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/left_frame.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/left_frame.tpl:1.2 Sat Feb 25 03:27:55 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -56,15 +56,33 @@ {/if} {/if} - {if $info[p].classes} - var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc|escape:"quotes"}'); - - {section name=class loop=$info[p].classes} - var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); - tree_classe.add(classe); - {/section} - - tree.add(tree_classe); + {if $info[p].hasinterfaces} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Interface(s)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} + {/if} + {if $info[p].hasclasses} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} {/if} {if $info[p].functions} @@ -131,15 +149,33 @@ {/if} {/if} - {if $info[p].classes} - var subpackagetree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc|escape:"quotes"}'); - - {section name=class loop=$info[p].classes} - var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); - subpackagetree_classe.add(classe); - {/section} - - subpackagetree.add(subpackagetree_classe); + {if $info[p].hasinterfaces} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Interface(s)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} + {/if} + {if $info[p].hasclasses} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} {/if} {if $info[p].functions} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/method.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/method.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/method.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/method.tpl:1.1 Mon Oct 17 18:37:12 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phpdoc.de/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -42,6 +42,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" /> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:14 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/left_frame.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/left_frame.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/left_frame.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/left_frame.tpl:1.2 Sat Feb 25 03:27:55 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -56,15 +56,33 @@ {/if} {/if} - {if $info[p].classes} - var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc|escape:"quotes"}'); - - {section name=class loop=$info[p].classes} - var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link}'); - tree_classe.add(classe); - {/section} - - tree.add(tree_classe); + {if $info[p].hasinterfaces} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Interface(s)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} + {/if} + {if $info[p].hasclasses} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} {/if} {if $info[p].functions} @@ -131,15 +149,33 @@ {/if} {/if} - {if $info[p].classes} - var subpackagetree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc|escape:"quotes"}'); - - {section name=class loop=$info[p].classes} - var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); - subpackagetree_classe.add(classe); - {/section} - - subpackagetree.add(subpackagetree_classe); + {if $info[p].hasinterfaces} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Interface(s)', '{$packagedoc}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} + {/if} + {if $info[p].hasclasses} + {if $info[p].classes} + var tree_classe = new WebFXTreeItem('Class(es)', '{$packagedoc|escape:"quotes"}'); + + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} + var classe = new WebFXTreeItem('{$info[p].classes[class].title|escape:"quotes"}', '{$info[p].classes[class].link|escape:"quotes"}'); + tree_classe.add(classe); + {/if} + {/section} + + tree.add(tree_classe); + {/if} {/if} {if $info[p].functions} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/method.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/method.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/method.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/method.tpl:1.1 Mon Oct 17 18:37:16 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/DOM/phphtmllib/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -42,6 +42,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" /> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:17 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/left_frame.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/left_frame.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/left_frame.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/left_frame.tpl:1.1 Mon Oct 17 18:37:18 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -54,10 +54,20 @@ {/if} </dd> {/if} - {if $info[p].classes} + {if $info[p].hasinterfaces} + <dt class="folder-title">Interfaces</dt> + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + <dd><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {/if} + {/section} + {/if} + {if $info[p].hasclasses} <dt class="folder-title">Classes</dt> {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} <dd><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {/if} {/section} {/if} {if $info[p].functions} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/method.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/method.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/method.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/method.tpl:1.1 Mon Oct 17 18:37:18 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/default/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -42,6 +42,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" /> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/class.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/class.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/class.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/class.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/class.tpl:1.2 Fri Feb 24 07:39:32 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/class.tpl Thu Mar 2 19:17:08 2006 @@ -1,6 +1,6 @@ {include file="header.tpl" top3=true} -<h2 class="class-name"><img src="{$subdir}media/images/{if $abstract}{if $access == 'private'}AbstractPrivate{else}Abstract{/if}{else}{if $access == 'private'}Private{/if}{/if}Class_logo.png" +<h2 class="class-name"><img src="{$subdir}media/images/{if $abstract}{if $access == 'private'}AbstractPrivate{else}Abstract{/if}{else}{if $access == 'private'}Private{/if}{/if}{if $is_interface}Interface{else}Class{/if}_logo.png" alt="{if $abstract}{if $access == 'private'}AbstractPrivate{else}Abstract{/if}{else}{if $access == 'private'}Private{/if}{/if} Class" title="{if $abstract}{if $access == 'private'}AbstractPrivate{else}Abstract{/if}{else}{if $access == 'private'}Private{/if}{/if} Class" style="vertical-align: middle">{if $is_interface}Interface{/if} {$class_name}</h2> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:19 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/left_frame.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/left_frame.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/left_frame.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/left_frame.tpl:1.1 Mon Oct 17 18:37:20 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -54,10 +54,20 @@ {/if} </dd> {/if} - {if $info[p].classes} + {if $info[p].hasinterfaces} + <dt class="folder-title"><img class="tree-icon" src="{$subdir}media/images/class_folder.png" alt=" ">Interfaces</dt> + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + <dd><img class="tree-icon" src="{$subdir}media/images/Interface.png" alt="Interface"><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {/if} + {/section} + {/if} + {if $info[p].hasclasses} <dt class="folder-title"><img class="tree-icon" src="{$subdir}media/images/class_folder.png" alt=" ">Classes</dt> {section name=class loop=$info[p].classes} - <dd><img class="tree-icon" src="{$subdir}media/images/{if $info[p].classes[class].abstract}Abstract{/if}{if $info[p].classes[class].access == 'private'}Private{/if}Class.png" alt="Class"><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {if $info[p].classes[class].is_class} + <dd><img class="tree-icon" src="{$subdir}media/images/{if $info[p].classes[class].abstract}Abstract{/if}{if $info[p].classes[class].access == 'private'}Private{/if}Class.png" alt="Class"><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {/if} {/section} {/if} {if $info[p].functions} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/method.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/method.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/method.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/method.tpl:1.1 Mon Oct 17 18:37:20 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -43,6 +43,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" /> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:21 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/left_frame.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/left_frame.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/left_frame.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/left_frame.tpl:1.1 Mon Oct 17 18:37:22 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -54,10 +54,20 @@ {/if} </dd> {/if} - {if $info[p].classes} + {if $info[p].hasinterfaces} + <dt class="folder-title">Interfaces</dt> + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + <dd><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {/if} + {/section} + {/if} + {if $info[p].hasclasses} <dt class="folder-title">Classes</dt> {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} <dd><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {/if} {/section} {/if} {if $info[p].functions} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/method.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/method.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/method.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/method.tpl:1.1 Mon Oct 17 18:37:22 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/l0l33t/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -42,6 +42,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" /> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:24 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/left_frame.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/left_frame.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/left_frame.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/left_frame.tpl:1.1 Mon Oct 17 18:37:25 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -54,10 +54,20 @@ {/if} </dd> {/if} - {if $info[p].classes} + {if $info[p].hasinterfaces} + <dt class="folder-title">Interfaces</dt> + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + <dd><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {/if} + {/section} + {/if} + {if $info[p].hasclasses} <dt class="folder-title">Classes</dt> {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} <dd><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {/if} {/section} {/if} {if $info[p].functions} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/method.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/method.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/method.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/method.tpl:1.1 Mon Oct 17 18:37:25 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpdoc.de/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -42,6 +42,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" /> http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:26 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/left_frame.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/left_frame.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/left_frame.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/left_frame.tpl:1.1 Mon Oct 17 18:37:28 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -33,15 +33,30 @@ tree_function.add(fic); {/section} tree.add(tree_function); + + var tree_interface = new WebFXTreeItem('Interface(s)', '{$classtreepage}.html'); + tree_interface.openIcon = 'media/images/classFolder.gif'; + tree_interface.icon = 'media/images/classFolder.gif'; + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + var classe = new WebFXTreeItem('{$info[p].classes[class].title}', '{$info[p].classes[class].link}'); + classe.openIcon = 'media/images/Class.gif'; + classe.icon = 'media/images/Class.gif'; + tree_interface.add(classe); + {/if} + {/section} + tree.add(tree_interface); var tree_classe = new WebFXTreeItem('Class(es)', '{$classtreepage}.html'); tree_classe.openIcon = 'media/images/classFolder.gif'; tree_classe.icon = 'media/images/classFolder.gif'; {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} var classe = new WebFXTreeItem('{$info[p].classes[class].title}', '{$info[p].classes[class].link}'); classe.openIcon = 'media/images/Class.gif'; classe.icon = 'media/images/Class.gif'; tree_classe.add(classe); + {/if} {/section} tree.add(tree_classe); http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/method.tpl?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/method.tpl:1.2 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/method.tpl:1.3 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/method.tpl:1.2 Fri Feb 24 07:39:33 2006 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phpedit/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -46,6 +46,18 @@ {if $methods[methods].method_overrides} <p><strong>Overrides :</strong> {$methods[methods].method_overrides.link} {$methods[methods].method_overrides.sdesc|default:"parent method not documented"}</p> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {include file="docblock.tpl" sdesc=$methods[methods].sdesc desc=$methods[methods].desc tags=$methods[methods].tags params=$methods[methods].params function=true} </div> {/section} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/classtrees.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/classtrees.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/classtrees.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/classtrees.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/classtrees.tpl:1.1 Mon Oct 17 18:37:30 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/classtrees.tpl Thu Mar 2 19:17:08 2006 @@ -4,8 +4,16 @@ <H2> {$smarty.capture.title} </H2> +{if $interfaces} +{section name=classtrees loop=$interfaces} +<h2>Root interface {$interfaces[classtrees].class}</h2> +{$interfaces[classtrees].class_tree} +{/section} +{/if} +{if $classtrees} {section name=classtrees loop=$classtrees} <h2>Root class {$classtrees[classtrees].class}</h2> {$classtrees[classtrees].class_tree} {/section} +{/if} {include file="footer.tpl"} \ No newline at end of file http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/left_frame.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/left_frame.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/left_frame.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/left_frame.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/left_frame.tpl:1.1 Mon Oct 17 18:37:31 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/left_frame.tpl Thu Mar 2 19:17:08 2006 @@ -54,10 +54,20 @@ {/if} </dd> {/if} - {if $info[p].classes} + {if $info[p].hasinterfaces} + <dt class="folder-title">Interfaces</dt> + {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_interface} + <dd><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {/if} + {/section} + {/if} + {if $info[p].hasclasses} <dt class="folder-title">Classes</dt> {section name=class loop=$info[p].classes} + {if $info[p].classes[class].is_class} <dd><a href='{$info[p].classes[class].link}' target='right'>{$info[p].classes[class].title}</a></dd> + {/if} {/section} {/if} {if $info[p].functions} http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/method.tpl?r1=1.1&r2=1.2&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/method.tpl diff -u pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/method.tpl:1.1 pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/method.tpl:1.2 --- pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/method.tpl:1.1 Mon Oct 17 18:37:31 2005 +++ pear/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/phphtmllib/templates/method.tpl Thu Mar 2 19:17:08 2006 @@ -42,6 +42,18 @@ {/if} </dl> {/if} + {if $methods[methods].method_implements} + <hr class="separator" /> + <div class="notes">Implementation of:</div> + {section name=imp loop=$methods[methods].method_implements} + <dl> + <dt>{$methods[methods].method_implements[imp].link}</dt> + {if $methods[methods].method_implements[imp].sdesc} + <dd>{$methods[methods].method_implements[imp].sdesc}</dd> + {/if} + </dl> + {/section} + {/if} {if $methods[methods].descmethod} <hr class="separator" />
« previous php.pear.cvs (#38866) next »