Re: svn: phd/trunk/phpdotnet/phd/ BuildOptionsParser.php Config.php

From: Date: Fri, 17 Jul 2009 08:07:58 +0000
Subject: Re: svn: phd/trunk/phpdotnet/phd/ BuildOptionsParser.php Config.php
References: 1  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4472@lists.php.net to get a copy of this message
2009/7/17 Moacir de Oliveira Miranda Júnior <moacir@php.net>: > moacir          Fri, 17 Jul 2009 04:38:11 +0000 > > URL: > http://svn.php.net/viewvc?view=revision&revision=284235 > > Changed paths: >        U   phd/trunk/phpdotnet/phd/BuildOptionsParser.php >        U   phd/trunk/phpdotnet/phd/Config.php > > Log: > no more predefined formats > > Modified: phd/trunk/phpdotnet/phd/BuildOptionsParser.php > =================================================================== > --- phd/trunk/phpdotnet/phd/BuildOptionsParser.php      2009-07-17 04:34:47 UTC (rev 284234) > +++ phd/trunk/phpdotnet/phd/BuildOptionsParser.php      2009-07-17 04:38:11 UTC (rev 284235) > @@ -36,21 +36,8 @@ >     { >         $formats = array(); >         foreach((array)$v as $i => $val) { > -            switch($val) { > -                case "xhtml": > -                case "bigxhtml": > -                case "howto": > -                case "php": > -                case "manpage": > -                case "kdevelop": > -                case "pdf": > -                case "bigpdf": > -                    if (!in_array($val, $formats)) { > -                        $formats[] = $val; > -                    } > -                    break; > -                default: > -                    trigger_error("Format not supported at this time", > E_USER_ERROR); > +            if (!in_array($val, $formats)) { > +                $formats[] = $val; >             } >         } >         Config::set_output_format($formats); > @@ -139,7 +126,7 @@ >         if (is_null($packageList)) { >             $packageList = array(); >             foreach (glob($GLOBALS['ROOT'] . > "/phpdotnet/phd/Package/*", GLOB_ONLYDIR) as $item) { > -                if (!in_array(basename($item), array('CVS', '.', > '..'))) { > +                if (!in_array(basename($item), array('.svn', '.', > '..'))) { Wouldn't it be easier to simply skip any file/directory starting with a dot? $baseitem = basename($item); if ($baseitem[0] == ".") { continue; } $packageList[] = $baseitem; ? -Hannes

« previous php.doc.cvs (#4472) next »