cvs: pear /HTML_Progress2/examples/generator generatorcus.php

From: Date: Thu, 18 Aug 2005 12:06:11 +0000
Subject: cvs: pear /HTML_Progress2/examples/generator generatorcus.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-34104@lists.php.net to get a copy of this message
farell Thu Aug 18 08:06:11 2005 EDT Modified files: /pear/HTML_Progress2/examples/generator generatorcus.php Log: add ignore phpdoc tag to prevent includes into API docs http://cvs.php.net/diff.php/pear/HTML_Progress2/examples/generator/generatorcus.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Progress2/examples/generator/generatorcus.php diff -u pear/HTML_Progress2/examples/generator/generatorcus.php:1.1 pear/HTML_Progress2/examples/generator/generatorcus.php:1.2 --- pear/HTML_Progress2/examples/generator/generatorcus.php:1.1 Sun Jun 12 17:03:35 2005 +++ pear/HTML_Progress2/examples/generator/generatorcus.php Thu Aug 18 08:06:10 2005 @@ -3,7 +3,7 @@ * HTML_Progress2_Generator embedded into existing html page * and allows php/css source-code download. * - * @version $Id: generatorcus.php,v 1.1 2005/06/12 21:03:35 farell Exp $ + * @version $Id: generatorcus.php,v 1.2 2005/08/18 12:06:10 farell Exp $ * @author Laurent Laville <pear@laurent-laville.org> * @package HTML_Progress2 * @subpackage Examples @@ -17,12 +17,12 @@ */ require_once 'HTML/Progress2/Generator/ITDynamic.php'; -/* 2. 'ActionDisplay' is default classname that should exists +/* 2. 'ActionDisplay' is default classname that should exists to manage wizard/tabbed display. But you can also create - your own class under a new name. Then you've to give + your own class under a new name. Then you've to give the new name to HTML_Progress2_Generator. For example: - + class MyDisplayHandler extends HTML_QuickForm_Action_Display { ... @@ -31,9 +31,13 @@ 'ActionDisplay' ('HTML/Progress2/Generator/Default.php') will be used. */ + +/** + * @ignore + */ class MyDisplayHandler extends HTML_QuickForm_Action_Display { - function _renderForm(&$page) + function _renderForm(&$page) { $pageName = $page->getAttribute('name'); $tabPreview = array_slice ($page->controller->_tabs, -2, 1); @@ -63,22 +67,25 @@ } } -/* 3. 'ActionProcess' is default classname that should exists +/* 3. 'ActionProcess' is default classname that should exists to save your progress bar php/css source-code. But you can also create - your own class under a new name. Then you've to give + your own class under a new name. Then you've to give the new name to HTML_Progress2_Generator. For example: - + class MyProcessHandler extends HTML_QuickForm_Action { ... } If your 'MyProcessHandler' class is not defined, then default - 'ActionProcess' ('HTML/Progress2/Generator/Process.php') + 'ActionProcess' ('HTML/Progress2/Generator/Process.php') will be used. */ require_once 'HTML/Progress2/Generator/Process.php'; +/** + * @ignore + */ class MyProcessHandler extends ActionProcess { function perform(&$page, $actionName) @@ -91,7 +98,7 @@ $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'); $pb = $page->controller->createProgressBar(); @@ -115,7 +122,7 @@ session_start(); -$tabbed = new HTML_Progress2_Generator('PBwizard', +$tabbed = new HTML_Progress2_Generator('PBwizard', array('display' => 'MyDisplayHandler', 'process' => 'MyProcessHandler') ); $tabbed->run();

« previous php.pear.cvs (#34104) next »