cvs: pear(IW060) /HTML_Page2 Page2.php /HTML_Page2/Page2 Doctypes.php Frameset.php Namespaces.php /HTML_Page2/Page2/Frameset Frame.php
/HTML_Page2/examples Page2_Complex.php Page2_Frameset.php Page2_NoDoctype.php Page2_Simple.php
| From: | Ian Warner | Date: | Wed, 25 Oct 2006 09:25:54 +0000 |
| Subject: | cvs: pear(IW060) /HTML_Page2 Page2.php /HTML_Page2/Page2 Doctypes.php Frameset.php Namespaces.php /HTML_Page2/Page2/Frameset Frame.php /HTML_Page2/examples Page2_Complex.php Page2_Frameset.php Page2_NoDoctype.php Page2_Simple.php |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42805@lists.php.net to get a copy of this message | ||
iwarner Wed Oct 25 09:25:54 2006 UTC
Modified files: (Branch: IW060)
/pear/HTML_Page2/examples Page2_Complex.php Page2_Frameset.php
Page2_NoDoctype.php Page2_Simple.php
/pear/HTML_Page2 Page2.php
/pear/HTML_Page2/Page2 Frameset.php Namespaces.php Doctypes.php
/pear/HTML_Page2/Page2/Frameset Frame.php
Log:
Updated all DocBlocks @ page level.
http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/examples/Page2_Complex.php?r1=1.1&r2=1.1.2.1&diff_format=u Index: pear/HTML_Page2/examples/Page2_Complex.php diff -u pear/HTML_Page2/examples/Page2_Complex.php:1.1 pear/HTML_Page2/examples/Page2_Complex.php:1.1.2.1 --- pear/HTML_Page2/examples/Page2_Complex.php:1.1 Mon Jun 7 17:40:56 2004 +++ pear/HTML_Page2/examples/Page2_Complex.php Wed Oct 25 09:25:53 2006 @@ -1,23 +1,33 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Page2_Complex.php,v 1.1 2004/06/07 17:40:56 thesaur Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/** + * Page2_Complex.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Page2_Complex.php,v 1.1.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + */ + +/** + * Require files + */ require_once 'HTML/Page2.php'; require_once 'HTML/Table.php'; @@ -82,4 +92,5 @@ $page->display(); // or to a file //$page->toFile('example.html'); -?> + +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/examples/Page2_Frameset.php?r1=1.1&r2=1.1.2.1&diff_format=u Index: pear/HTML_Page2/examples/Page2_Frameset.php diff -u pear/HTML_Page2/examples/Page2_Frameset.php:1.1 pear/HTML_Page2/examples/Page2_Frameset.php:1.1.2.1 --- pear/HTML_Page2/examples/Page2_Frameset.php:1.1 Thu Jun 24 17:23:08 2004 +++ pear/HTML_Page2/examples/Page2_Frameset.php Wed Oct 25 09:25:53 2006 @@ -1,31 +1,41 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Page2_Frameset.php,v 1.1 2004/06/24 17:23:08 thesaur Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/** + * Page2_Complex.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Page2_Frameset.php,v 1.1.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + */ + +/** + * Require files + */ require_once 'HTML/Page2.php'; $page = new HTML_Page2(array( 'doctype' => 'XHTML 1.0 Frameset', 'tab' => ' ' )); -// Page title defaults to "New XHTML 1.0 Frameset Compliant Page" +// Page title defaults to "New XHTML 1.0 Frameset Compliant Page" $page->addBodyContent('<p>Your browser does not support frames.</p>'); $page->frameset->addRows(array('logo' => 200, 'bottom' => '*')); @@ -40,4 +50,4 @@ $page->display(); -?> +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/examples/Page2_NoDoctype.php?r1=1.1&r2=1.1.2.1&diff_format=u Index: pear/HTML_Page2/examples/Page2_NoDoctype.php diff -u pear/HTML_Page2/examples/Page2_NoDoctype.php:1.1 pear/HTML_Page2/examples/Page2_NoDoctype.php:1.1.2.1 --- pear/HTML_Page2/examples/Page2_NoDoctype.php:1.1 Mon Jun 7 17:40:56 2004 +++ pear/HTML_Page2/examples/Page2_NoDoctype.php Wed Oct 25 09:25:53 2006 @@ -1,23 +1,33 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Page2_NoDoctype.php,v 1.1 2004/06/07 17:40:56 thesaur Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/** + * Page2_NoDoctype.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Page2_NoDoctype.php,v 1.1.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + */ + +/** + * Require files + */ require_once "HTML/Page2.php"; // With no initial settings, the following defaults are set: @@ -33,6 +43,6 @@ $page->addBodyContent("<h1>Headline</h1>"); $page->addBodyContent("<p>Some text</p>"); -$page->display (); +$page->display(); -?> +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/examples/Page2_Simple.php?r1=1.1&r2=1.1.2.1&diff_format=u Index: pear/HTML_Page2/examples/Page2_Simple.php diff -u pear/HTML_Page2/examples/Page2_Simple.php:1.1 pear/HTML_Page2/examples/Page2_Simple.php:1.1.2.1 --- pear/HTML_Page2/examples/Page2_Simple.php:1.1 Mon Jun 7 17:40:56 2004 +++ pear/HTML_Page2/examples/Page2_Simple.php Wed Oct 25 09:25:53 2006 @@ -1,23 +1,33 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Page2_Simple.php,v 1.1 2004/06/07 17:40:56 thesaur Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/** + * Page2_Simple.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Page2_Simple.php,v 1.1.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + */ + +/** + * Require files + */ require_once 'HTML/Page2.php'; // With no initial settings, the following defaults are set: @@ -34,4 +44,5 @@ $page->addBodyContent('<h1>Headline</h1>'); $page->addBodyContent('<p>Copyright 2003 The PHP Group</p>'); $page->display(); -?> + +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/Page2.php?r1=1.10&r2=1.10.2.1&diff_format=u Index: pear/HTML_Page2/Page2.php diff -u pear/HTML_Page2/Page2.php:1.10 pear/HTML_Page2/Page2.php:1.10.2.1 --- pear/HTML_Page2/Page2.php:1.10 Sat Jul 24 13:28:00 2004 +++ pear/HTML_Page2/Page2.php Wed Oct 25 09:25:53 2006 @@ -1,27 +1,11 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Authors: Adam Daniel <adaniel1@eesus.jnj.com> | -// | Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Page2.php,v 1.10 2004/07/24 13:28:00 thesaur Exp $ + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * The PEAR::HTML_Page2 package provides a simple interface for generating an XHTML compliant page - * + * The PEAR::HTML_Page2 package provides a simple interface for generating an + * XHTML compliant page + * * Features: * - supports virtually all HTML doctypes, from HTML 2.0 through XHTML 1.1 and * XHTML Basic 1.0 plus preliminary support for XHTML 2.0 @@ -38,15 +22,26 @@ * * Ideas for use: * - Use to validate the output of a class for XHTML compliance - * - Quick prototyping using PEAR packages is now a breeze - * @category HTML - * @package HTML_Page2 - * @version @package_version@ - * @version $Id: Page2.php,v 1.10 2004/07/24 13:28:00 thesaur Exp $ - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @author Adam Daniel <adaniel1@eesus.jnj.com> - * @author Klaus Guenther <klaus@capitalfocus.org> - * @since PHP 4.0.3pl1 + * - Quick prototyping using PEAR packages + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Page2.php,v 1.10.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 */ /** @@ -1682,17 +1677,26 @@ header("Cache-Control: no-cache"); header("Pragma: no-cache"); } - + // Set mime type and character encoding header('Content-Type: ' . $this->_mime . '; charset=' . $this->_charset); - + // Generate HTML document $strHtml = $this->toHTML(); - + // Output to browser, screen or other default device print $strHtml; - - } // end func display - + } } -?> + +// }}} + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * c-hanging-comment-ender-p: nil + * End: + */ + +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/Page2/Frameset.php?r1=1.2&r2=1.2.2.1&diff_format=u Index: pear/HTML_Page2/Page2/Frameset.php diff -u pear/HTML_Page2/Page2/Frameset.php:1.2 pear/HTML_Page2/Page2/Frameset.php:1.2.2.1 --- pear/HTML_Page2/Page2/Frameset.php:1.2 Thu Jun 24 17:23:08 2004 +++ pear/HTML_Page2/Page2/Frameset.php Wed Oct 25 09:25:53 2006 @@ -1,35 +1,30 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Frameset.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $ + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * The PEAR::HTML_Page2 package provides a simple interface for generating an XHTML compliant page - * - * @category HTML - * @package HTML_Page2 - * @version @package_version@ - * @version $Id: Frameset.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $ - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @author Klaus Guenther <klaus@capitalfocus.org> + * Frameset.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Frameset.php,v 1.2.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 */ - /** * Include HTML_Common class */ @@ -40,15 +35,18 @@ */ require_once 'HTML/Page2/Frameset/Frame.php'; +/** + * @category HTML + * @package HTML_Page2 + */ class HTML_Page2_Frameset extends HTML_Common { - var $_master = false; var $_rows = array(); var $_cols = array(); var $_type = ''; var $xhtml = false; - + function HTML_Page2_Frameset($options = array()) { if (isset($options['master'])) { @@ -57,8 +55,8 @@ if (isset($options['xhtml'])) { $this->xhtml = $options['xhtml']; } - } // end constructor - + } + function addRows($rows = array()) { @@ -131,12 +129,23 @@ $strHtml .= $tabs . $tab . $this->$name->toHtml() . $lnEnd; } } + if (!$this->_master) { $strHtml .= $tabs . '</frameset>' . $lnEnd; } - + return $strHtml; - - } // end func toHtml + } } -?> + +// }}} + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * c-hanging-comment-ender-p: nil + * End: + */ + +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/Page2/Namespaces.php?r1=1.3&r2=1.3.2.1&diff_format=u Index: pear/HTML_Page2/Page2/Namespaces.php diff -u pear/HTML_Page2/Page2/Namespaces.php:1.3 pear/HTML_Page2/Page2/Namespaces.php:1.3.2.1 --- pear/HTML_Page2/Page2/Namespaces.php:1.3 Thu Jun 24 14:26:53 2004 +++ pear/HTML_Page2/Page2/Namespaces.php Wed Oct 25 09:25:53 2006 @@ -1,30 +1,30 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Namespaces.php,v 1.3 2004/06/24 14:26:53 thesaur Exp $ + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * This file contains an array of namespace declarations. - * These declarations have been taken directly from the w3c website: - * http://www.w3c.org/ - * - * @package HTML_Page2 - * @author Klaus Guenther <klaus@capitalfocus.org> + * This file contains an array of namespace declarations these declarations have + * been taken directly from the w3c website + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Namespaces.php,v 1.3.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + * @link http://www.w3c.org/ */ // Array of namespace declarations: @@ -34,4 +34,4 @@ $namespace['xhtml']['1.1'][] = 'http://www.w3.org/1999/xhtml'; $namespace['xhtml']['2.0'][] = 'http://www.w3.org/2002/06/xhtml2'; -?> +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/Page2/Doctypes.php?r1=1.3&r2=1.3.2.1&diff_format=u Index: pear/HTML_Page2/Page2/Doctypes.php diff -u pear/HTML_Page2/Page2/Doctypes.php:1.3 pear/HTML_Page2/Page2/Doctypes.php:1.3.2.1 --- pear/HTML_Page2/Page2/Doctypes.php:1.3 Thu Jun 24 14:26:53 2004 +++ pear/HTML_Page2/Page2/Doctypes.php Wed Oct 25 09:25:53 2006 @@ -1,30 +1,30 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Doctypes.php,v 1.3 2004/06/24 14:26:53 thesaur Exp $ + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * This file contains an array of doctype declarations. - * These declarations have been taken directly from the w3c website: - * http://www.w3c.org/ + * This file contains an array of doctype declarations these declarations have + * been taken directly from the w3c website + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. * - * @package HTML_Page2 - * @author Klaus Guenther <klaus@capitalfocus.org> + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Doctypes.php,v 1.3.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + * @link http://www.w3c.org/ */ // Array of defaults: @@ -112,4 +112,4 @@ // HTML 3.2 $doctype['html']['3.2'][] = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">'; -?> +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/Page2/Frameset/Frame.php?r1=1.2&r2=1.2.2.1&diff_format=u Index: pear/HTML_Page2/Page2/Frameset/Frame.php diff -u pear/HTML_Page2/Page2/Frameset/Frame.php:1.2 pear/HTML_Page2/Page2/Frameset/Frame.php:1.2.2.1 --- pear/HTML_Page2/Page2/Frameset/Frame.php:1.2 Thu Jun 24 17:23:08 2004 +++ pear/HTML_Page2/Page2/Frameset/Frame.php Wed Oct 25 09:25:53 2006 @@ -1,34 +1,28 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Frame.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $ + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * The PEAR::HTML_Page2 package provides a simple interface for generating an XHTML compliant page - * - * @category HTML - * @package HTML_Page2 - * @version @package_version@ - * @version $Id: Frame.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $ - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @author Adam Daniel <adaniel1@eesus.jnj.com> - * @author Klaus Guenther <klaus@capitalfocus.org> - * @since PHP 4.0.3pl1 + * Frame.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Frame.php,v 1.2.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 */ /** @@ -36,6 +30,10 @@ */ require_once 'HTML/Common.php'; +/** + * @category HTML + * @package HTML_Page2 + */ class HTML_Page2_Frameset_Frame extends HTML_Common { var $xhtml; @@ -51,8 +49,8 @@ if (isset($options['target'])) { $this->setTarget($options['target']); } - } // end func constructor - + } + function setScrolling($string = '') { if ($string !== '') { @@ -60,8 +58,8 @@ } else { $this->removeAttribute('scrolling'); } - } // end func setScrolling - + } + function setLongDescription($location = '') { if ($location !== ''){ @@ -69,18 +67,18 @@ } else { $this->removeAttribute('longdesc'); } - } // end func setSource - + } + function setSource($location) { $this->updateAttributes(array('src' => $location)); - } // end func setSource - + } + function setTarget($name = '_self') { $this->updateAttributes(array('target' => $name)); - } // end func setTarget - + } + function toHtml() { if ($this->xhtml === true) { @@ -88,9 +86,11 @@ } else { $tagEnd = '>'; } + $strHtml = '<frame ' . $this->getAttributes(true) . $tagEnd; - + return $strHtml; - } // end func toHtml + } } -?> + +?> \ No newline at end of file
http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/examples/Page2_Complex.php?r1=1.1&r2=1.1.2.1&diff_format=u Index: pear/HTML_Page2/examples/Page2_Complex.php diff -u pear/HTML_Page2/examples/Page2_Complex.php:1.1 pear/HTML_Page2/examples/Page2_Complex.php:1.1.2.1 --- pear/HTML_Page2/examples/Page2_Complex.php:1.1 Mon Jun 7 17:40:56 2004 +++ pear/HTML_Page2/examples/Page2_Complex.php Wed Oct 25 09:25:53 2006 @@ -1,23 +1,33 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Page2_Complex.php,v 1.1 2004/06/07 17:40:56 thesaur Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/** + * Page2_Complex.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Page2_Complex.php,v 1.1.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + */ + +/** + * Require files + */ require_once 'HTML/Page2.php'; require_once 'HTML/Table.php'; @@ -82,4 +92,5 @@ $page->display(); // or to a file //$page->toFile('example.html'); -?> + +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/examples/Page2_Frameset.php?r1=1.1&r2=1.1.2.1&diff_format=u Index: pear/HTML_Page2/examples/Page2_Frameset.php diff -u pear/HTML_Page2/examples/Page2_Frameset.php:1.1 pear/HTML_Page2/examples/Page2_Frameset.php:1.1.2.1 --- pear/HTML_Page2/examples/Page2_Frameset.php:1.1 Thu Jun 24 17:23:08 2004 +++ pear/HTML_Page2/examples/Page2_Frameset.php Wed Oct 25 09:25:53 2006 @@ -1,31 +1,41 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Page2_Frameset.php,v 1.1 2004/06/24 17:23:08 thesaur Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/** + * Page2_Complex.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Page2_Frameset.php,v 1.1.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + */ + +/** + * Require files + */ require_once 'HTML/Page2.php'; $page = new HTML_Page2(array( 'doctype' => 'XHTML 1.0 Frameset', 'tab' => ' ' )); -// Page title defaults to "New XHTML 1.0 Frameset Compliant Page" +// Page title defaults to "New XHTML 1.0 Frameset Compliant Page" $page->addBodyContent('<p>Your browser does not support frames.</p>'); $page->frameset->addRows(array('logo' => 200, 'bottom' => '*')); @@ -40,4 +50,4 @@ $page->display(); -?> +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/examples/Page2_NoDoctype.php?r1=1.1&r2=1.1.2.1&diff_format=u Index: pear/HTML_Page2/examples/Page2_NoDoctype.php diff -u pear/HTML_Page2/examples/Page2_NoDoctype.php:1.1 pear/HTML_Page2/examples/Page2_NoDoctype.php:1.1.2.1 --- pear/HTML_Page2/examples/Page2_NoDoctype.php:1.1 Mon Jun 7 17:40:56 2004 +++ pear/HTML_Page2/examples/Page2_NoDoctype.php Wed Oct 25 09:25:53 2006 @@ -1,23 +1,33 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Page2_NoDoctype.php,v 1.1 2004/06/07 17:40:56 thesaur Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/** + * Page2_NoDoctype.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Page2_NoDoctype.php,v 1.1.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + */ + +/** + * Require files + */ require_once "HTML/Page2.php"; // With no initial settings, the following defaults are set: @@ -33,6 +43,6 @@ $page->addBodyContent("<h1>Headline</h1>"); $page->addBodyContent("<p>Some text</p>"); -$page->display (); +$page->display(); -?> +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/examples/Page2_Simple.php?r1=1.1&r2=1.1.2.1&diff_format=u Index: pear/HTML_Page2/examples/Page2_Simple.php diff -u pear/HTML_Page2/examples/Page2_Simple.php:1.1 pear/HTML_Page2/examples/Page2_Simple.php:1.1.2.1 --- pear/HTML_Page2/examples/Page2_Simple.php:1.1 Mon Jun 7 17:40:56 2004 +++ pear/HTML_Page2/examples/Page2_Simple.php Wed Oct 25 09:25:53 2006 @@ -1,23 +1,33 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Page2_Simple.php,v 1.1 2004/06/07 17:40:56 thesaur Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/** + * Page2_Simple.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Page2_Simple.php,v 1.1.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + */ + +/** + * Require files + */ require_once 'HTML/Page2.php'; // With no initial settings, the following defaults are set: @@ -34,4 +44,5 @@ $page->addBodyContent('<h1>Headline</h1>'); $page->addBodyContent('<p>Copyright 2003 The PHP Group</p>'); $page->display(); -?> + +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/Page2.php?r1=1.10&r2=1.10.2.1&diff_format=u Index: pear/HTML_Page2/Page2.php diff -u pear/HTML_Page2/Page2.php:1.10 pear/HTML_Page2/Page2.php:1.10.2.1 --- pear/HTML_Page2/Page2.php:1.10 Sat Jul 24 13:28:00 2004 +++ pear/HTML_Page2/Page2.php Wed Oct 25 09:25:53 2006 @@ -1,27 +1,11 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Authors: Adam Daniel <adaniel1@eesus.jnj.com> | -// | Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Page2.php,v 1.10 2004/07/24 13:28:00 thesaur Exp $ + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * The PEAR::HTML_Page2 package provides a simple interface for generating an XHTML compliant page - * + * The PEAR::HTML_Page2 package provides a simple interface for generating an + * XHTML compliant page + * * Features: * - supports virtually all HTML doctypes, from HTML 2.0 through XHTML 1.1 and * XHTML Basic 1.0 plus preliminary support for XHTML 2.0 @@ -38,15 +22,26 @@ * * Ideas for use: * - Use to validate the output of a class for XHTML compliance - * - Quick prototyping using PEAR packages is now a breeze - * @category HTML - * @package HTML_Page2 - * @version @package_version@ - * @version $Id: Page2.php,v 1.10 2004/07/24 13:28:00 thesaur Exp $ - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @author Adam Daniel <adaniel1@eesus.jnj.com> - * @author Klaus Guenther <klaus@capitalfocus.org> - * @since PHP 4.0.3pl1 + * - Quick prototyping using PEAR packages + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Page2.php,v 1.10.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 */ /** @@ -1682,17 +1677,26 @@ header("Cache-Control: no-cache"); header("Pragma: no-cache"); } - + // Set mime type and character encoding header('Content-Type: ' . $this->_mime . '; charset=' . $this->_charset); - + // Generate HTML document $strHtml = $this->toHTML(); - + // Output to browser, screen or other default device print $strHtml; - - } // end func display - + } } -?> + +// }}} + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * c-hanging-comment-ender-p: nil + * End: + */ + +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/Page2/Frameset.php?r1=1.2&r2=1.2.2.1&diff_format=u Index: pear/HTML_Page2/Page2/Frameset.php diff -u pear/HTML_Page2/Page2/Frameset.php:1.2 pear/HTML_Page2/Page2/Frameset.php:1.2.2.1 --- pear/HTML_Page2/Page2/Frameset.php:1.2 Thu Jun 24 17:23:08 2004 +++ pear/HTML_Page2/Page2/Frameset.php Wed Oct 25 09:25:53 2006 @@ -1,35 +1,30 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Frameset.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $ + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * The PEAR::HTML_Page2 package provides a simple interface for generating an XHTML compliant page - * - * @category HTML - * @package HTML_Page2 - * @version @package_version@ - * @version $Id: Frameset.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $ - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @author Klaus Guenther <klaus@capitalfocus.org> + * Frameset.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Frameset.php,v 1.2.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 */ - /** * Include HTML_Common class */ @@ -40,15 +35,18 @@ */ require_once 'HTML/Page2/Frameset/Frame.php'; +/** + * @category HTML + * @package HTML_Page2 + */ class HTML_Page2_Frameset extends HTML_Common { - var $_master = false; var $_rows = array(); var $_cols = array(); var $_type = ''; var $xhtml = false; - + function HTML_Page2_Frameset($options = array()) { if (isset($options['master'])) { @@ -57,8 +55,8 @@ if (isset($options['xhtml'])) { $this->xhtml = $options['xhtml']; } - } // end constructor - + } + function addRows($rows = array()) { @@ -131,12 +129,23 @@ $strHtml .= $tabs . $tab . $this->$name->toHtml() . $lnEnd; } } + if (!$this->_master) { $strHtml .= $tabs . '</frameset>' . $lnEnd; } - + return $strHtml; - - } // end func toHtml + } } -?> + +// }}} + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * c-hanging-comment-ender-p: nil + * End: + */ + +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/Page2/Namespaces.php?r1=1.3&r2=1.3.2.1&diff_format=u Index: pear/HTML_Page2/Page2/Namespaces.php diff -u pear/HTML_Page2/Page2/Namespaces.php:1.3 pear/HTML_Page2/Page2/Namespaces.php:1.3.2.1 --- pear/HTML_Page2/Page2/Namespaces.php:1.3 Thu Jun 24 14:26:53 2004 +++ pear/HTML_Page2/Page2/Namespaces.php Wed Oct 25 09:25:53 2006 @@ -1,30 +1,30 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Namespaces.php,v 1.3 2004/06/24 14:26:53 thesaur Exp $ + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * This file contains an array of namespace declarations. - * These declarations have been taken directly from the w3c website: - * http://www.w3c.org/ - * - * @package HTML_Page2 - * @author Klaus Guenther <klaus@capitalfocus.org> + * This file contains an array of namespace declarations these declarations have + * been taken directly from the w3c website + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Namespaces.php,v 1.3.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + * @link http://www.w3c.org/ */ // Array of namespace declarations: @@ -34,4 +34,4 @@ $namespace['xhtml']['1.1'][] = 'http://www.w3.org/1999/xhtml'; $namespace['xhtml']['2.0'][] = 'http://www.w3.org/2002/06/xhtml2'; -?> +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/Page2/Doctypes.php?r1=1.3&r2=1.3.2.1&diff_format=u Index: pear/HTML_Page2/Page2/Doctypes.php diff -u pear/HTML_Page2/Page2/Doctypes.php:1.3 pear/HTML_Page2/Page2/Doctypes.php:1.3.2.1 --- pear/HTML_Page2/Page2/Doctypes.php:1.3 Thu Jun 24 14:26:53 2004 +++ pear/HTML_Page2/Page2/Doctypes.php Wed Oct 25 09:25:53 2006 @@ -1,30 +1,30 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Doctypes.php,v 1.3 2004/06/24 14:26:53 thesaur Exp $ + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * This file contains an array of doctype declarations. - * These declarations have been taken directly from the w3c website: - * http://www.w3c.org/ + * This file contains an array of doctype declarations these declarations have + * been taken directly from the w3c website + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. * - * @package HTML_Page2 - * @author Klaus Guenther <klaus@capitalfocus.org> + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Doctypes.php,v 1.3.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 + * @link http://www.w3c.org/ */ // Array of defaults: @@ -112,4 +112,4 @@ // HTML 3.2 $doctype['html']['3.2'][] = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">'; -?> +?> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_Page2/Page2/Frameset/Frame.php?r1=1.2&r2=1.2.2.1&diff_format=u Index: pear/HTML_Page2/Page2/Frameset/Frame.php diff -u pear/HTML_Page2/Page2/Frameset/Frame.php:1.2 pear/HTML_Page2/Page2/Frameset/Frame.php:1.2.2.1 --- pear/HTML_Page2/Page2/Frameset/Frame.php:1.2 Thu Jun 24 17:23:08 2004 +++ pear/HTML_Page2/Page2/Frameset/Frame.php Wed Oct 25 09:25:53 2006 @@ -1,34 +1,28 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | HTML_Page2 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997 - 2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Author: Klaus Guenther <klaus@capitalfocus.org> | -// +----------------------------------------------------------------------+ -// -// $Id: Frame.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $ + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * The PEAR::HTML_Page2 package provides a simple interface for generating an XHTML compliant page - * - * @category HTML - * @package HTML_Page2 - * @version @package_version@ - * @version $Id: Frame.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $ - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @author Adam Daniel <adaniel1@eesus.jnj.com> - * @author Klaus Guenther <klaus@capitalfocus.org> - * @since PHP 4.0.3pl1 + * Frame.php + * + * PHP versions 4 and 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * the PHP License and are unable to obtain it through the web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category HTML + * @package HTML_Page2 + * @author Triangle Solutions Ltd <iwarner@triangle-solutions.com> + * @author Klaus Guenther <klaus@capitalfocus.org> + * @author Adam Daniel <adaniel1@eesus.jnj.com> + * @copyright 1997-2006 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Frame.php,v 1.2.2.1 2006/10/25 09:25:53 iwarner Exp $ + * @link http://pear.php.net/package/HTML_Page2 + * @link http://wiki.triangle-solutions.com/index.php/PEAR_HTML_Page2 */ /** @@ -36,6 +30,10 @@ */ require_once 'HTML/Common.php'; +/** + * @category HTML + * @package HTML_Page2 + */ class HTML_Page2_Frameset_Frame extends HTML_Common { var $xhtml; @@ -51,8 +49,8 @@ if (isset($options['target'])) { $this->setTarget($options['target']); } - } // end func constructor - + } + function setScrolling($string = '') { if ($string !== '') { @@ -60,8 +58,8 @@ } else { $this->removeAttribute('scrolling'); } - } // end func setScrolling - + } + function setLongDescription($location = '') { if ($location !== ''){ @@ -69,18 +67,18 @@ } else { $this->removeAttribute('longdesc'); } - } // end func setSource - + } + function setSource($location) { $this->updateAttributes(array('src' => $location)); - } // end func setSource - + } + function setTarget($name = '_self') { $this->updateAttributes(array('target' => $name)); - } // end func setTarget - + } + function toHtml() { if ($this->xhtml === true) { @@ -88,9 +86,11 @@ } else { $tagEnd = '>'; } + $strHtml = '<frame ' . $this->getAttributes(true) . $tagEnd; - + return $strHtml; - } // end func toHtml + } } -?> + +?> \ No newline at end of file