Author: Jan Borsodi
Date: 2006-12-20 14:23:27 +0100 (Wed, 20 Dec 2006)
New Revision: 4422
Log:
- Made sure constants are output.
Modified:
scripts/clone-empty.php
Modified: scripts/clone-empty.php
===================================================================
--- scripts/clone-empty.php 2006-12-20 13:04:56 UTC (rev 4421)
+++ scripts/clone-empty.php 2006-12-20 13:23:27 UTC (rev 4422)
@@ -314,6 +314,29 @@
echo "\n{\n";
+ foreach ( $rc->getConstants() as $constantName => $constant )
+ {
+ $constantType = "UNKNOWN";
+ if ( is_float( $constant ) )
+ {
+ $constantType = "float";
+ }
+ elseif ( is_int( $constant ) )
+ {
+ $constantType = "int";
+ }
+ elseif ( is_bool( $constant ) )
+ {
+ $constantType = "bool";
+ }
+ elseif ( is_string( $constant ) )
+ {
+ $constantType = "string";
+ }
+ echo "public static final $constantType $constantName = $constant;\n";
+ }
+ echo "\n";
+
foreach ( $rc->getProperties() as $property )
{
// Don't show the parent property methods.
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components