![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| tias Sat May 19 16:02:18 2007 UTC Modified files: /pear/PEAR_Frontend_Web pearfrontendweb.php /pear/PEAR_Frontend_Web/Frontend Web.php Log: list-files of package http://cvs.php.net/viewvc.cgi/pear/P...&diff_format=u Index: pear/PEAR_Frontend_Web/pearfrontendweb.php diff -u pear/PEAR_Frontend_Web/pearfrontendweb.php:1.57 pear/PEAR_Frontend_Web/pearfrontendweb.php:1.58 --- pear/PEAR_Frontend_Web/pearfrontendweb.php:1.57 Sat May 19 15:36:39 2007 +++ pear/PEAR_Frontend_Web/pearfrontendweb.php Sat May 19 16:02:17 2007 @@ -29,7 +29,7 @@ * @author Tias Guns <tias@ulyssis.org> * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/2_02.txt PHP License 2.02 - * @version CVS: $Id: pearfrontendweb.php,v 1.57 2007/05/19 15:36:39 tias Exp $ + * @version CVS: $Id: pearfrontendweb.php,v 1.58 2007/05/19 16:02:17 tias Exp $ * @link http://pear.php.net/package/PEAR_Frontend_Web * @since File available since Release 0.1 */ @@ -295,6 +295,11 @@ $ui->finishOutput('Back', array('link' => $_SERVER['PHP_SELF'].'?command='.$command, 'text' => 'Back to the config')); break; + case 'list-files': + $params = array($_GET['pkg']); + $cmd = PEAR_Command::factory($command, $config); + $res = $cmd->run($command, $opts, $params); + break; case 'list-docs': if (!isset($_GET['pkg'])) { PEAR::raiseError('The webfrontend-command list-docs needs at least one \'pkg\' argument.'); http://cvs.php.net/viewvc.cgi/pear/P...&diff_format=u Index: pear/PEAR_Frontend_Web/Frontend/Web.php diff -u pear/PEAR_Frontend_Web/Frontend/Web.php:1.73 pear/PEAR_Frontend_Web/Frontend/Web.php:1.74 --- pear/PEAR_Frontend_Web/Frontend/Web.php:1.73 Sat May 19 15:36:39 2007 +++ pear/PEAR_Frontend_Web/Frontend/Web.php Sat May 19 16:02:18 2007 @@ -23,7 +23,7 @@ * @author Tias Guns <tias@ulyssis.org> * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/2_02.txt PHP License 2.02 - * @version CVS: $Id: Web.php,v 1.73 2007/05/19 15:36:39 tias Exp $ + * @version CVS: $Id: Web.php,v 1.74 2007/05/19 16:02:18 tias Exp $ * @link http://pear.php.net/package/PEAR_Frontend_Web * @since File available since Release 0.1 */ @@ -50,7 +50,7 @@ * @author Tias Guns <tias@ulyssis.org> * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/2_02.txt PHP License 2.02 - * @version CVS: $Id: Web.php,v 1.73 2007/05/19 15:36:39 tias Exp $ + * @version CVS: $Id: Web.php,v 1.74 2007/05/19 16:02:18 tias Exp $ * @link http://pear.php.net/package/PEAR_Frontend_Web * @since File available since Release 0.1 */ @@ -406,12 +406,28 @@ } // }}} + // {{{ _outputListFiles() + + /** + * Output a list of files of a packagename + * + * @param array $data array containing all files of a package + * + * @return boolean true (yep. i am an optimist) + */ + function _outputListFiles($data) + { + sort($data['data']); + return $this->_outputGenericTableVertical($data['caption'], $data['data']); + } + + // }}} // {{{ _outputListDocs() /** - * Output a list of documentation files of a packagenames + * Output a list of documentation files of a packagename * - * @param array $data array containing all documentation files of a packages + * @param array $data array containing all documentation files of a package * * @return boolean true (yep. i am an optimist) */ @@ -950,6 +966,11 @@ $image); $output .= '<br />'; } + $output .= sprintf( + '<a href="%s?command=list-files&pkg=%s" class="green">./.. List Files</a>', + $_SERVER["PHP_SELF"], + $package); + $output .= '<br />'; // More: Extended Package Information $image = sprintf('<img src="%s?img=infoplus" border="0" alt="extra info">', $_SERVER["PHP_SELF"]); if ($channel == 'pear.php.net' || $channel == 'pecl.php.net') { @@ -1259,6 +1280,8 @@ $GLOBALS['_PEAR_Frontend_Web_Config'] = $this->userDialog($command, $prompt, array(), $default, $title, 'config'); return true; + case 'list-files': + return $this->_outputListFiles($data); case 'list-docs': return $this->_outputListDocs($data); case 'doc-show': | |||
| Featured Websites | ||||
|
![]() |
| Tags: cvs, pear, pearfrontendwebphp, pear_frontend_web, webphp |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| Featured Websites | ||||
|