From 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Wed, 11 Sep 2013 15:56:48 +0200 Subject: Merge up to r3319 --- .../PhpDocumentor/phpDocumentor/DescHTML.inc | 423 --------------------- 1 file changed, 423 deletions(-) delete mode 100755 buildscripts/PhpDocumentor/phpDocumentor/DescHTML.inc (limited to 'buildscripts/PhpDocumentor/phpDocumentor/DescHTML.inc') diff --git a/buildscripts/PhpDocumentor/phpDocumentor/DescHTML.inc b/buildscripts/PhpDocumentor/phpDocumentor/DescHTML.inc deleted file mode 100755 index 867284ad..00000000 --- a/buildscripts/PhpDocumentor/phpDocumentor/DescHTML.inc +++ /dev/null @@ -1,423 +0,0 @@ - - * @copyright 2002-2007 Gregory Beaver - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version CVS: $Id: DescHTML.inc 246329 2007-11-17 03:07:00Z ashnazg $ - * @filesource - * @link http://www.phpdoc.org - * @link http://pear.php.net/PhpDocumentor - * @see parserDocBlock, parserInclude, parserPage, parserClass - * @see parserDefine, parserFunction, parserMethod, parserVar - * @since 1.2 - * @todo CS cleanup - change package to PhpDocumentor - */ -/** - * Used for <> in a description - * - * @category ToolsAndUtilities - * @package phpDocumentor - * @subpackage DescHTML - * @author Greg Beaver - * @copyright 2002-2007 Gregory Beaver - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version Release: 1.4.3 - * @link http://www.phpdoc.org - * @link http://pear.php.net/PhpDocumentor - * @since 1.2 - * @todo CS cleanup - change package to PhpDocumentor - * @todo CS cleanup - rename class to ParserCode - */ -class parserCode extends parserStringWithInlineTags -{ - /** - * performs the conversion of code tags - * - * @param Converter &$c the converter object - * - * @return string the converted code block - * @uses Converter::ProgramExample() - * @todo CS cleanup - rename method to convert() - */ - function Convert(&$c) - { - if (!isset($this->value[0])) { - return ''; - } - if (is_string($this->value[0]) && $this->value[0]{0} == "\n") { - $this->value[0] = substr($this->value[0], 1); - } - $linktags = array(); - foreach ($this->value as $val) { - if (phpDocumentor_get_class($val) == 'parserlinkinlinetag' - || phpDocumentor_get_class($val) == 'parsertutorialinlinetag' - ) { - $linktags[] = array( - $c->postProcess($val->Convert($c, false, false)), $val); - } - } - $a = $c->ProgramExample(rtrim(ltrim(parent::Convert($c, - false, false), "\n\r"))); - foreach ($linktags as $tag) { - $a = str_replace($tag[0], $tag[1]->Convert($c, false, false), $a); - } - return $a; - } -} - -/** - * Used for <
> in a description
- *
- * @category   ToolsAndUtilities
- * @package    phpDocumentor
- * @subpackage DescHTML
- * @author     Greg Beaver 
- * @copyright  2002-2007 Gregory Beaver
- * @license    http://www.opensource.org/licenses/lgpl-license.php LGPL
- * @version    Release: 1.4.3
- * @link       http://www.phpdoc.org
- * @link       http://pear.php.net/PhpDocumentor
- * @since      1.2
- * @todo       CS cleanup - change package to PhpDocumentor
- * @todo       CS cleanup - rename class to ParserPre
- */
-class parserPre extends parserStringWithInlineTags
-{
-    /**
-     * performs the conversion of code tags
-     *
-     * @param Converter &$c the converter object
-     *
-     * @return string the converted pre block
-     * @uses Converter::PreserveWhiteSpace()
-     * @todo CS cleanup - rename method to convert()
-     */
-    function Convert(&$c)
-    {
-        return $c->PreserveWhiteSpace(rtrim(ltrim(parent::Convert($c,
-            false, false), "\n\r")));
-    }
-}
-
-/**
- * Used for <> in a description
- *
- * @category   ToolsAndUtilities
- * @package    phpDocumentor
- * @subpackage DescHTML
- * @author     Greg Beaver 
- * @copyright  2002-2007 Gregory Beaver
- * @license    http://www.opensource.org/licenses/lgpl-license.php LGPL
- * @version    Release: 1.4.3
- * @link       http://www.phpdoc.org
- * @link       http://pear.php.net/PhpDocumentor
- * @since      1.2
- * @todo       CS cleanup - change package to PhpDocumentor
- * @todo       CS cleanup - rename class to ParserB
- */
-class parserB extends parserStringWithInlineTags
-{
-    /**
-     * performs the conversion of bold tags
-     *
-     * @param Converter &$c the converter object
-     *
-     * @return string the converted pre block
-     * @uses Converter::Bolden()
-     * @todo CS cleanup - rename method to convert()
-     */
-    function Convert(&$c)
-    {
-        return $c->Bolden(parent::Convert($c));
-    }
-}
-
-/**
- * Used for <> in a description
- *
- * @category   ToolsAndUtilities
- * @package    phpDocumentor
- * @subpackage DescHTML
- * @author     Greg Beaver 
- * @copyright  2002-2007 Gregory Beaver
- * @license    http://www.opensource.org/licenses/lgpl-license.php LGPL
- * @version    Release: 1.4.3
- * @link       http://www.phpdoc.org
- * @link       http://pear.php.net/PhpDocumentor
- * @since      1.2
- * @todo       CS cleanup - change package to PhpDocumentor
- * @todo       CS cleanup - rename class to ParserI
- */
-class parserI extends parserStringWithInlineTags
-{
-    /**
-     * performs the conversion of italic tags
-     *
-     * @param Converter &$c the converter object
-     *
-     * @return string the converted pre block
-     * @uses Converter::Italicize()
-     * @todo CS cleanup - rename method to convert()
-     */
-    function Convert(&$c)
-    {
-        return $c->Italicize(parent::Convert($c));
-    }
-}
-
-/**
- * Used for <> in a description
- *
- * @category   ToolsAndUtilities
- * @package    phpDocumentor
- * @subpackage DescHTML
- * @author     Greg Beaver 
- * @copyright  2002-2007 Gregory Beaver
- * @license    http://www.opensource.org/licenses/lgpl-license.php LGPL
- * @version    Release: 1.4.3
- * @link       http://www.phpdoc.org
- * @link       http://pear.php.net/PhpDocumentor
- * @since      1.2
- * @todo       CS cleanup - change package to PhpDocumentor
- * @todo       CS cleanup - rename class to ParserDescVar
- */
-class parserDescVar extends parserStringWithInlineTags
-{
-    /**
-     * performs the conversion of variable tags
-     *
-     * @param Converter &$c the converter object
-     *
-     * @return string the converted pre block
-     * @uses Converter::Varize()
-     * @todo CS cleanup - rename method to convert()
-     */
-    function Convert(&$c)
-    {
-        return $c->Varize(parent::Convert($c));
-    }
-}
-
-/**
- * Used for <> in a description
- *
- * @category   ToolsAndUtilities
- * @package    phpDocumentor
- * @subpackage DescHTML
- * @author     Greg Beaver 
- * @copyright  2002-2007 Gregory Beaver
- * @license    http://www.opensource.org/licenses/lgpl-license.php LGPL
- * @version    Release: 1.4.3
- * @link       http://www.phpdoc.org
- * @link       http://pear.php.net/PhpDocumentor
- * @since      1.2
- * @todo       CS cleanup - change package to PhpDocumentor
- * @todo       CS cleanup - rename class to ParserSamp
- */
-class parserSamp extends parserStringWithInlineTags
-{
-    /**
-     * performs the conversion of sample tags
-     *
-     * @param Converter &$c the converter object
-     *
-     * @return string the converted pre block
-     * @uses Converter::Sampize()
-     * @todo CS cleanup - rename method to convert()
-     */
-    function Convert(&$c)
-    {
-        return $c->Sampize(parent::Convert($c));
-    }
-}
-
-/**
- * Used for <> in a description
- *
- * @category   ToolsAndUtilities
- * @package    phpDocumentor
- * @subpackage DescHTML
- * @author     Greg Beaver 
- * @copyright  2002-2007 Gregory Beaver
- * @license    http://www.opensource.org/licenses/lgpl-license.php LGPL
- * @version    Release: 1.4.3
- * @link       http://www.phpdoc.org
- * @link       http://pear.php.net/PhpDocumentor
- * @since      1.2
- * @todo       CS cleanup - change package to PhpDocumentor
- * @todo       CS cleanup - rename class to ParserKbd
- */
-class parserKbd extends parserStringWithInlineTags
-{
-    /**
-     * performs the conversion of keyboard tags
-     *
-     * @param Converter &$c the converter object
-     *
-     * @return string the converted pre block
-     * @uses Converter::Kbdize()
-     * @todo CS cleanup - rename method to convert()
-     */
-    function Convert(&$c)
-    {
-        return $c->Kbdize(parent::Convert($c));
-    }
-}
-
-/**
- * Used for <
> in a description - * - * @category ToolsAndUtilities - * @package phpDocumentor - * @subpackage DescHTML - * @author Greg Beaver - * @copyright 2002-2007 Gregory Beaver - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version Release: 1.4.3 - * @link http://www.phpdoc.org - * @link http://pear.php.net/PhpDocumentor - * @since 1.2 - * @todo CS cleanup - change package to PhpDocumentor - * @todo CS cleanup - rename class to ParserBr - */ -class parserBr extends parserStringWithInlineTags -{ - /** - * performs the conversion of linebreak tags - * - * @param Converter &$c the converter object - * - * @return string the converted pre block - * @uses Converter::Br() - * @todo CS cleanup - rename method to convert() - */ - function Convert(&$c) - { - return $c->Br($this->getString()); - } -} - -/** - * Used for lists <
    > and <
      > - * - * @category ToolsAndUtilities - * @package phpDocumentor - * @subpackage DescHTML - * @author Greg Beaver - * @copyright 2002-2007 Gregory Beaver - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version Release: 1.4.3 - * @link http://www.phpdoc.org - * @link http://pear.php.net/PhpDocumentor - * @since 1.2 - * @todo CS cleanup - change package to PhpDocumentor - * @todo CS cleanup - rename class to ParserList - */ -class parserList extends parserStringWithInlineTags -{ - /** - * @var boolean - */ - var $numbered; - /** - * @var integer - */ - var $items = 0; - /** - * Constructor - create a new list - * - * @param integer $numbered a reference number for the new list - */ - function parserList($numbered) - { - $this->numbered = $numbered; - } - - /** - * add an item to a list - * - * @param parserStringWithInlineTags $item the item to add - * - * @return void - */ - function addItem($item) - { - $this->value[$this->items++] = $item; - } - - /** - * add a list - * - * @param parserList $list the list to add - * - * @return void - */ - function addList($list) - { - $this->value[$this->items++] = $list; - } - - /** - * performs the conversion of list tags - * - * @param Converter &$c the converter object - * - * @return string the converted pre block - * @uses Converter::ListItem() enclose each item of the list - * @uses Converter::EncloseList() enclose the list - * @todo CS cleanup - rename method to convert() - */ - function Convert(&$c) - { - $list = ''; - foreach ($this->value as $item) { - $list .= $c->ListItem(trim($item->Convert($c))); - } - return $c->EncloseList($list, $this->numbered); - } -} - -?> -- cgit v1.2.3