cvs: pear /HTML_Progress/Progress/generator ITDynamic.php SmartyDynamic.php pages.php preview.php process.php
| From: | Laurent Laville | Date: | Mon, 25 Jul 2005 13:00:06 +0000 |
| Subject: | cvs: pear /HTML_Progress/Progress/generator ITDynamic.php SmartyDynamic.php pages.php preview.php process.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-33305@lists.php.net to get a copy of this message | ||
farell Mon Jul 25 09:00:06 2005 EDT
Modified files:
/pear/HTML_Progress/Progress/generator ITDynamic.php pages.php
preview.php process.php
SmartyDynamic.php
Log:
Updates headers comment block
http://cvs.php.net/diff.php/pear/HTML_Progress/Progress/generator/ITDynamic.php?r1=1.3&r2=1.4&ty=u Index: pear/HTML_Progress/Progress/generator/ITDynamic.php diff -u pear/HTML_Progress/Progress/generator/ITDynamic.php:1.3 pear/HTML_Progress/Progress/generator/ITDynamic.php:1.4 --- pear/HTML_Progress/Progress/generator/ITDynamic.php:1.3 Sat Jul 3 10:48:31 2004 +++ pear/HTML_Progress/Progress/generator/ITDynamic.php Mon Jul 25 09:00:05 2005 @@ -1,32 +1,24 @@ <?php -// +----------------------------------------------------------------------+ -// | PEAR :: HTML :: Progress | -// +----------------------------------------------------------------------+ -// | 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: Laurent Laville <pear@laurent-laville.org> | -// +----------------------------------------------------------------------+ -// -// $Id: ITDynamic.php,v 1.3 2004/07/03 14:48:31 farell Exp $ - /** * The ActionDisplay class provides a ITDynamic form rendering * with template engine IT[x] family. * - * @version 1.2.0 - * @author Laurent Laville <pear@laurent-laville.org> - * @access public + * 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_Progress * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: ITDynamic.php,v 1.4 2005/07/25 13:00:05 farell Exp $ + * @link http://pear.php.net/package/HTML_Progress */ require_once 'HTML/QuickForm/Renderer/ITDynamic.php'; @@ -34,9 +26,31 @@ require_once 'HTML/Template/ITX.php'; //require_once 'HTML/Template/Sigma.php'; +/** + * The ActionDisplay class provides a ITDynamic form rendering + * with template engine IT[x] family. + * + * 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_Progress + * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: @package_version@ + * @link http://pear.php.net/package/HTML_Progress + */ + class ActionDisplay extends HTML_QuickForm_Action_Display { - function _renderForm(&$page) + function _renderForm(&$page) { $pageName = $page->getAttribute('name'); $tabPreview = array_slice ($page->controller->_tabs, -2, 1); http://cvs.php.net/diff.php/pear/HTML_Progress/Progress/generator/pages.php?r1=1.3&r2=1.4&ty=u Index: pear/HTML_Progress/Progress/generator/pages.php diff -u pear/HTML_Progress/Progress/generator/pages.php:1.3 pear/HTML_Progress/Progress/generator/pages.php:1.4 --- pear/HTML_Progress/Progress/generator/pages.php:1.3 Sat Jul 3 10:48:31 2004 +++ pear/HTML_Progress/Progress/generator/pages.php Mon Jul 25 09:00:05 2005 @@ -1,32 +1,46 @@ <?php -// +----------------------------------------------------------------------+ -// | PEAR :: HTML :: Progress | -// +----------------------------------------------------------------------+ -// | 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: Laurent Laville <pear@laurent-laville.org> | -// +----------------------------------------------------------------------+ -// -// $Id: pages.php,v 1.3 2004/07/03 14:48:31 farell Exp $ - /** - * The six classes below provides GUI for interactive tools: + * The six classes below provides GUI for interactive tools: * HTML Progress Generator. * - * @version 1.2.0 + * 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_Progress + * @subpackage Progress_UI * @author Laurent Laville <pear@laurent-laville.org> - * @access public + * @copyright 1997-2005 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: pages.php,v 1.4 2005/07/25 13:00:05 farell Exp $ + * @link http://pear.php.net/package/HTML_Progress + */ + +/** + * The six classes below provides GUI for interactive tools: + * HTML Progress Generator. + * + * 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_Progress * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: @package_version@ + * @link http://pear.php.net/package/HTML_Progress */ /** http://cvs.php.net/diff.php/pear/HTML_Progress/Progress/generator/preview.php?r1=1.4&r2=1.5&ty=u Index: pear/HTML_Progress/Progress/generator/preview.php diff -u pear/HTML_Progress/Progress/generator/preview.php:1.4 pear/HTML_Progress/Progress/generator/preview.php:1.5 --- pear/HTML_Progress/Progress/generator/preview.php:1.4 Mon Jul 5 18:04:15 2004 +++ pear/HTML_Progress/Progress/generator/preview.php Mon Jul 25 09:00:05 2005 @@ -1,32 +1,46 @@ <?php -// +----------------------------------------------------------------------+ -// | PEAR :: HTML :: Progress | -// +----------------------------------------------------------------------+ -// | 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: Laurent Laville <pear@laurent-laville.org> | -// +----------------------------------------------------------------------+ -// -// $Id: preview.php,v 1.4 2004/07/05 22:04:15 farell Exp $ - /** * The ActionPreview class provides a live demonstration * of the progress bar built by HTML_Progress_Generator. * - * @version 1.2.0 + * 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_Progress + * @subpackage Progress_UI * @author Laurent Laville <pear@laurent-laville.org> - * @access public + * @copyright 1997-2005 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: preview.php,v 1.5 2005/07/25 13:00:05 farell Exp $ + * @link http://pear.php.net/package/HTML_Progress + */ + +/** + * The ActionPreview class provides a live demonstration + * of the progress bar built by HTML_Progress_Generator. + * + * 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_Progress * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: @package_version@ + * @link http://pear.php.net/package/HTML_Progress */ class ActionPreview extends HTML_QuickForm_Action http://cvs.php.net/diff.php/pear/HTML_Progress/Progress/generator/process.php?r1=1.4&r2=1.5&ty=u Index: pear/HTML_Progress/Progress/generator/process.php diff -u pear/HTML_Progress/Progress/generator/process.php:1.4 pear/HTML_Progress/Progress/generator/process.php:1.5 --- pear/HTML_Progress/Progress/generator/process.php:1.4 Sat Oct 16 08:15:32 2004 +++ pear/HTML_Progress/Progress/generator/process.php Mon Jul 25 09:00:05 2005 @@ -1,32 +1,46 @@ <?php -// +----------------------------------------------------------------------+ -// | PEAR :: HTML :: Progress | -// +----------------------------------------------------------------------+ -// | 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: Laurent Laville <pear@laurent-laville.org> | -// +----------------------------------------------------------------------+ -// -// $Id: process.php,v 1.4 2004/10/16 12:15:32 farell Exp $ - /** * The ActionProcess class provides final step of ProgressBar creation. * Manage php/css source-code save and cancel action. * - * @version 1.2.0 + * 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_Progress + * @subpackage Progress_UI * @author Laurent Laville <pear@laurent-laville.org> - * @access public + * @copyright 1997-2005 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: process.php,v 1.5 2005/07/25 13:00:05 farell Exp $ + * @link http://pear.php.net/package/HTML_Progress + */ + +/** + * The ActionProcess class provides final step of ProgressBar creation. + * Manage php/css source-code save and cancel action. + * + * 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_Progress * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: @package_version@ + * @link http://pear.php.net/package/HTML_Progress */ class ActionProcess extends HTML_QuickForm_Action @@ -41,16 +55,16 @@ $page->isFormBuilt() or $page->buildForm(); $page->controller->isValid(); - // what kind of source code is requested + // what kind of source code is requested $code = $page->exportValue('phpcss'); $bar = $page->controller->createProgressBar(); $lineEnd = OS_WINDOWS ? "\r\n" : "\n"; - + if (isset($code['C'])) { $strCSS = '<style type="text/css">'.$lineEnd; $strCSS .= '<!--'.$lineEnd; - $strCSS .= $bar->getStyle() . $lineEnd; + $strCSS .= $bar->getStyle(); $strCSS .= '// -->'.$lineEnd; $strCSS .= '</style>'.$lineEnd; $this->exportOutput($strCSS); @@ -58,12 +72,12 @@ if (isset($code['P'])) { $structure = $bar->toArray(); - + $strPHP = '<?php'.$lineEnd; $strPHP .= 'require_once \'HTML/Progress.php\';'.$lineEnd.$lineEnd; $strPHP .= '$progress = new HTML_Progress();'.$lineEnd; $strPHP .= '$progress->setIdent(\'PB1\');'.$lineEnd; - + if ($bar->isIndeterminate()) { $strPHP .= '$progress->setIndeterminate(true);'.$lineEnd; } @@ -162,7 +176,7 @@ $strPHP .= "'$attr'=>".($val?'true':'false').', '; } else { $strPHP .= "'$attr'=>'$val', "; - } + } } $strPHP = ereg_replace(', $', '', $strPHP); $strPHP .= '));'; http://cvs.php.net/diff.php/pear/HTML_Progress/Progress/generator/SmartyDynamic.php?r1=1.3&r2=1.4&ty=u Index: pear/HTML_Progress/Progress/generator/SmartyDynamic.php diff -u pear/HTML_Progress/Progress/generator/SmartyDynamic.php:1.3 pear/HTML_Progress/Progress/generator/SmartyDynamic.php:1.4 --- pear/HTML_Progress/Progress/generator/SmartyDynamic.php:1.3 Sat Jul 3 10:48:31 2004 +++ pear/HTML_Progress/Progress/generator/SmartyDynamic.php Mon Jul 25 09:00:05 2005 @@ -1,41 +1,55 @@ <?php -// +----------------------------------------------------------------------+ -// | PEAR :: HTML :: Progress | -// +----------------------------------------------------------------------+ -// | 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: Laurent Laville <pear@laurent-laville.org> | -// +----------------------------------------------------------------------+ -// -// $Id: SmartyDynamic.php,v 1.3 2004/07/03 14:48:31 farell Exp $ - /** * The ActionDisplay class provides a dynamic form rendering * with Smarty template engine. * - * @version 1.2.0 - * @author Laurent Laville <pear@laurent-laville.org> - * @access public + * 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_Progress * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: SmartyDynamic.php,v 1.4 2005/07/25 13:00:05 farell Exp $ + * @link http://pear.php.net/package/HTML_Progress */ require_once 'HTML/QuickForm/Renderer/Array.php'; // fix this if your Smarty is somewhere else require_once 'Smarty.class.php'; +/** + * The ActionDisplay class provides a dynamic form rendering + * with Smarty template engine. + * + * 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_Progress + * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: @package_version@ + * @link http://pear.php.net/package/HTML_Progress + */ + class ActionDisplay extends HTML_QuickForm_Action_Display { - function _renderForm(&$page) + function _renderForm(&$page) { $pageName = $page->getAttribute('name'); $tabPreview = array_slice ($page->controller->_tabs, -2, 1); @@ -64,7 +78,7 @@ $page->accept($renderer); $tpl->assign('form', $renderer->toArray()); - // capture the array stucture + // capture the array stucture // (only for showing in sample template) ob_start(); print_r($renderer->toArray());
http://cvs.php.net/diff.php/pear/HTML_Progress/Progress/generator/ITDynamic.php?r1=1.3&r2=1.4&ty=u Index: pear/HTML_Progress/Progress/generator/ITDynamic.php diff -u pear/HTML_Progress/Progress/generator/ITDynamic.php:1.3 pear/HTML_Progress/Progress/generator/ITDynamic.php:1.4 --- pear/HTML_Progress/Progress/generator/ITDynamic.php:1.3 Sat Jul 3 10:48:31 2004 +++ pear/HTML_Progress/Progress/generator/ITDynamic.php Mon Jul 25 09:00:05 2005 @@ -1,32 +1,24 @@ <?php -// +----------------------------------------------------------------------+ -// | PEAR :: HTML :: Progress | -// +----------------------------------------------------------------------+ -// | 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: Laurent Laville <pear@laurent-laville.org> | -// +----------------------------------------------------------------------+ -// -// $Id: ITDynamic.php,v 1.3 2004/07/03 14:48:31 farell Exp $ - /** * The ActionDisplay class provides a ITDynamic form rendering * with template engine IT[x] family. * - * @version 1.2.0 - * @author Laurent Laville <pear@laurent-laville.org> - * @access public + * 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_Progress * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: ITDynamic.php,v 1.4 2005/07/25 13:00:05 farell Exp $ + * @link http://pear.php.net/package/HTML_Progress */ require_once 'HTML/QuickForm/Renderer/ITDynamic.php'; @@ -34,9 +26,31 @@ require_once 'HTML/Template/ITX.php'; //require_once 'HTML/Template/Sigma.php'; +/** + * The ActionDisplay class provides a ITDynamic form rendering + * with template engine IT[x] family. + * + * 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_Progress + * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: @package_version@ + * @link http://pear.php.net/package/HTML_Progress + */ + class ActionDisplay extends HTML_QuickForm_Action_Display { - function _renderForm(&$page) + function _renderForm(&$page) { $pageName = $page->getAttribute('name'); $tabPreview = array_slice ($page->controller->_tabs, -2, 1); http://cvs.php.net/diff.php/pear/HTML_Progress/Progress/generator/pages.php?r1=1.3&r2=1.4&ty=u Index: pear/HTML_Progress/Progress/generator/pages.php diff -u pear/HTML_Progress/Progress/generator/pages.php:1.3 pear/HTML_Progress/Progress/generator/pages.php:1.4 --- pear/HTML_Progress/Progress/generator/pages.php:1.3 Sat Jul 3 10:48:31 2004 +++ pear/HTML_Progress/Progress/generator/pages.php Mon Jul 25 09:00:05 2005 @@ -1,32 +1,46 @@ <?php -// +----------------------------------------------------------------------+ -// | PEAR :: HTML :: Progress | -// +----------------------------------------------------------------------+ -// | 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: Laurent Laville <pear@laurent-laville.org> | -// +----------------------------------------------------------------------+ -// -// $Id: pages.php,v 1.3 2004/07/03 14:48:31 farell Exp $ - /** - * The six classes below provides GUI for interactive tools: + * The six classes below provides GUI for interactive tools: * HTML Progress Generator. * - * @version 1.2.0 + * 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_Progress + * @subpackage Progress_UI * @author Laurent Laville <pear@laurent-laville.org> - * @access public + * @copyright 1997-2005 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: pages.php,v 1.4 2005/07/25 13:00:05 farell Exp $ + * @link http://pear.php.net/package/HTML_Progress + */ + +/** + * The six classes below provides GUI for interactive tools: + * HTML Progress Generator. + * + * 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_Progress * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: @package_version@ + * @link http://pear.php.net/package/HTML_Progress */ /** http://cvs.php.net/diff.php/pear/HTML_Progress/Progress/generator/preview.php?r1=1.4&r2=1.5&ty=u Index: pear/HTML_Progress/Progress/generator/preview.php diff -u pear/HTML_Progress/Progress/generator/preview.php:1.4 pear/HTML_Progress/Progress/generator/preview.php:1.5 --- pear/HTML_Progress/Progress/generator/preview.php:1.4 Mon Jul 5 18:04:15 2004 +++ pear/HTML_Progress/Progress/generator/preview.php Mon Jul 25 09:00:05 2005 @@ -1,32 +1,46 @@ <?php -// +----------------------------------------------------------------------+ -// | PEAR :: HTML :: Progress | -// +----------------------------------------------------------------------+ -// | 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: Laurent Laville <pear@laurent-laville.org> | -// +----------------------------------------------------------------------+ -// -// $Id: preview.php,v 1.4 2004/07/05 22:04:15 farell Exp $ - /** * The ActionPreview class provides a live demonstration * of the progress bar built by HTML_Progress_Generator. * - * @version 1.2.0 + * 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_Progress + * @subpackage Progress_UI * @author Laurent Laville <pear@laurent-laville.org> - * @access public + * @copyright 1997-2005 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: preview.php,v 1.5 2005/07/25 13:00:05 farell Exp $ + * @link http://pear.php.net/package/HTML_Progress + */ + +/** + * The ActionPreview class provides a live demonstration + * of the progress bar built by HTML_Progress_Generator. + * + * 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_Progress * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: @package_version@ + * @link http://pear.php.net/package/HTML_Progress */ class ActionPreview extends HTML_QuickForm_Action http://cvs.php.net/diff.php/pear/HTML_Progress/Progress/generator/process.php?r1=1.4&r2=1.5&ty=u Index: pear/HTML_Progress/Progress/generator/process.php diff -u pear/HTML_Progress/Progress/generator/process.php:1.4 pear/HTML_Progress/Progress/generator/process.php:1.5 --- pear/HTML_Progress/Progress/generator/process.php:1.4 Sat Oct 16 08:15:32 2004 +++ pear/HTML_Progress/Progress/generator/process.php Mon Jul 25 09:00:05 2005 @@ -1,32 +1,46 @@ <?php -// +----------------------------------------------------------------------+ -// | PEAR :: HTML :: Progress | -// +----------------------------------------------------------------------+ -// | 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: Laurent Laville <pear@laurent-laville.org> | -// +----------------------------------------------------------------------+ -// -// $Id: process.php,v 1.4 2004/10/16 12:15:32 farell Exp $ - /** * The ActionProcess class provides final step of ProgressBar creation. * Manage php/css source-code save and cancel action. * - * @version 1.2.0 + * 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_Progress + * @subpackage Progress_UI * @author Laurent Laville <pear@laurent-laville.org> - * @access public + * @copyright 1997-2005 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: process.php,v 1.5 2005/07/25 13:00:05 farell Exp $ + * @link http://pear.php.net/package/HTML_Progress + */ + +/** + * The ActionProcess class provides final step of ProgressBar creation. + * Manage php/css source-code save and cancel action. + * + * 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_Progress * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: @package_version@ + * @link http://pear.php.net/package/HTML_Progress */ class ActionProcess extends HTML_QuickForm_Action @@ -41,16 +55,16 @@ $page->isFormBuilt() or $page->buildForm(); $page->controller->isValid(); - // what kind of source code is requested + // what kind of source code is requested $code = $page->exportValue('phpcss'); $bar = $page->controller->createProgressBar(); $lineEnd = OS_WINDOWS ? "\r\n" : "\n"; - + if (isset($code['C'])) { $strCSS = '<style type="text/css">'.$lineEnd; $strCSS .= '<!--'.$lineEnd; - $strCSS .= $bar->getStyle() . $lineEnd; + $strCSS .= $bar->getStyle(); $strCSS .= '// -->'.$lineEnd; $strCSS .= '</style>'.$lineEnd; $this->exportOutput($strCSS); @@ -58,12 +72,12 @@ if (isset($code['P'])) { $structure = $bar->toArray(); - + $strPHP = '<?php'.$lineEnd; $strPHP .= 'require_once \'HTML/Progress.php\';'.$lineEnd.$lineEnd; $strPHP .= '$progress = new HTML_Progress();'.$lineEnd; $strPHP .= '$progress->setIdent(\'PB1\');'.$lineEnd; - + if ($bar->isIndeterminate()) { $strPHP .= '$progress->setIndeterminate(true);'.$lineEnd; } @@ -162,7 +176,7 @@ $strPHP .= "'$attr'=>".($val?'true':'false').', '; } else { $strPHP .= "'$attr'=>'$val', "; - } + } } $strPHP = ereg_replace(', $', '', $strPHP); $strPHP .= '));'; http://cvs.php.net/diff.php/pear/HTML_Progress/Progress/generator/SmartyDynamic.php?r1=1.3&r2=1.4&ty=u Index: pear/HTML_Progress/Progress/generator/SmartyDynamic.php diff -u pear/HTML_Progress/Progress/generator/SmartyDynamic.php:1.3 pear/HTML_Progress/Progress/generator/SmartyDynamic.php:1.4 --- pear/HTML_Progress/Progress/generator/SmartyDynamic.php:1.3 Sat Jul 3 10:48:31 2004 +++ pear/HTML_Progress/Progress/generator/SmartyDynamic.php Mon Jul 25 09:00:05 2005 @@ -1,41 +1,55 @@ <?php -// +----------------------------------------------------------------------+ -// | PEAR :: HTML :: Progress | -// +----------------------------------------------------------------------+ -// | 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: Laurent Laville <pear@laurent-laville.org> | -// +----------------------------------------------------------------------+ -// -// $Id: SmartyDynamic.php,v 1.3 2004/07/03 14:48:31 farell Exp $ - /** * The ActionDisplay class provides a dynamic form rendering * with Smarty template engine. * - * @version 1.2.0 - * @author Laurent Laville <pear@laurent-laville.org> - * @access public + * 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_Progress * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: SmartyDynamic.php,v 1.4 2005/07/25 13:00:05 farell Exp $ + * @link http://pear.php.net/package/HTML_Progress */ require_once 'HTML/QuickForm/Renderer/Array.php'; // fix this if your Smarty is somewhere else require_once 'Smarty.class.php'; +/** + * The ActionDisplay class provides a dynamic form rendering + * with Smarty template engine. + * + * 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_Progress + * @subpackage Progress_UI + * @author Laurent Laville <pear@laurent-laville.org> + * @copyright 1997-2005 The PHP Group + * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version Release: @package_version@ + * @link http://pear.php.net/package/HTML_Progress + */ + class ActionDisplay extends HTML_QuickForm_Action_Display { - function _renderForm(&$page) + function _renderForm(&$page) { $pageName = $page->getAttribute('name'); $tabPreview = array_slice ($page->controller->_tabs, -2, 1); @@ -64,7 +78,7 @@ $page->accept($renderer); $tpl->assign('form', $renderer->toArray()); - // capture the array stucture + // capture the array stucture // (only for showing in sample template) ob_start(); print_r($renderer->toArray());