Changeset 83
- Timestamp:
- 01/19/07 22:05:46 (2 years ago)
- Files:
-
- trunk/XJConf/XJConfLoader.php (modified) (1 diff)
- trunk/autopackage2.php (modified) (3 diffs)
- trunk/package.php (modified) (2 diffs)
- trunk/package.xml (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/XJConf/XJConfLoader.php
r82 r83 72 72 * @return bool 73 73 */ 74 public static function classFileExists($ fqClassName)74 public static function classFileExists($className) 75 75 { 76 76 if (class_exists('StarClassRegistry') == false) { 77 return file_exists(dirname(__FILE__) . '/' . self::mapClassname($ fqClassName));77 return file_exists(dirname(__FILE__) . '/' . self::mapClassname($className)); 78 78 } 79 79 80 if (substr($ fqClassName, 0, 11) != 'net.xjconf.') {81 $fqClassName = 'net.xjconf.' . $ fqClassName;80 if (substr($className, 0, 11) != 'net.xjconf.') { 81 $fqClassName = 'net.xjconf.' . $className; 82 82 } 83 return (StarClassRegistry::getFileForClass($fqClassName) != null); 83 if (StarClassRegistry::getFileForClass($fqClassName) != null) { 84 return true; 85 } 86 return file_exists(dirname(__FILE__) . '/' . self::mapClassname($className)); 84 87 } 85 88 trunk/autopackage2.php
r77 r83 20 20 * Base version 21 21 */ 22 $baseVersion = '0. 1.2';22 $baseVersion = '0.2.0'; 23 23 24 24 /** … … 31 31 * Current API version 32 32 */ 33 $apiVersion = '0. 1.2';33 $apiVersion = '0.2.0'; 34 34 35 35 /** … … 52 52 - Added possibility to declare tags as static (schst) 53 53 - Added several unit tests (mikey) 54 - Added possibility to package XJConfForPHP as a STAR archive (mikey, schst) 54 55 Bugfixes: 55 56 - Fixed bug #6: Enable factory methods without parameters in PHP 5.0.x (schst) trunk/package.php
r77 r83 20 20 * current version 21 21 */ 22 $version = '0. 1.2';22 $version = '0.2.0'; 23 23 24 24 /** 25 25 * Current API version 26 26 */ 27 $apiVersion = '0. 1.2';27 $apiVersion = '0.2.0'; 28 28 29 29 /** … … 46 46 - Added possibility to declare tags as static (schst) 47 47 - Added several unit tests (mikey) 48 - Added possibility to package XJConfForPHP as a STAR archive (mikey, schst) 48 49 Bugfixes: 49 50 - Fixed bug #6: Enable factory methods without parameters in PHP 5.0.x (schst) trunk/package.xml
r51 r83 22 22 <active>yes</active> 23 23 </lead> 24 <date>200 6-11-28</date>25 <time> 15:07:43</time>24 <date>2007-01-19</date> 25 <time>22:04:32</time> 26 26 <version> 27 <release>0. 1.2</release>28 <api>0. 1.2</api>27 <release>0.2.0</release> 28 <api>0.2.0</api> 29 29 </version> 30 30 <stability> … … 33 33 </stability> 34 34 <license uri="http://www.gnu.org/copyleft/lesser.txt">LGPL</license> 35 <notes>Feature addition: 36 This release enables using class loaders for differant namespaces which allows to load classes 37 at runtime of the XmlParser instead of having to load all classes before parsing the xml files. 38 Bugfix: 39 The ConstructorValueConverter now works with all examples.</notes> 35 <notes>Feature additions: 36 - New feature to define abstract tags, which enables yo to define the concrete type in the tag instead of the definition (mikey) 37 - It is now possible to define an explicit setter method for character data inside a tag (schst) 38 - Added possibility to declare tags as static (schst) 39 - Added several unit tests (mikey) 40 - Added possibility to package XJConfForPHP as a STAR archive (mikey, schst) 41 Bugfixes: 42 - Fixed bug #6: Enable factory methods without parameters in PHP 5.0.x (schst) 43 - Fixed bug #7: check, whether factory method can be called statically (schst) 44 - Fixed bug: prevent errors in case factory method does not return an instance of an object (mikey)</notes> 40 45 <contents> 41 46 <dir baseinstalldir="/" name="/"> … … 50 55 <file name="defines-constructor.xml" role="doc" /> 51 56 <file name="defines-dynamic-setters.xml" role="doc" /> 57 <file name="defines-dynamic-types.xml" role="doc" /> 52 58 <file name="defines-empty-constructor.xml" role="doc" /> 53 59 <file name="defines-extension.xml" role="doc" /> … … 56 62 <file name="defines-primitives.xml" role="doc" /> 57 63 <file name="defines-set-cdata.xml" role="doc" /> 64 <file name="defines-static.xml" role="doc" /> 58 65 <file name="defines.xml" role="doc" /> 59 66 <file name="defines2.xml" role="doc" /> … … 64 71 <file name="test-constructor.xml" role="doc" /> 65 72 <file name="test-dynamic-setters.xml" role="doc" /> 73 <file name="test-dynamic-types.xml" role="doc" /> 66 74 <file name="test-empty-constructor.xml" role="doc" /> 67 75 <file name="test-extension.xml" role="doc" /> … … 69 77 <file name="test-primitives.xml" role="doc" /> 70 78 <file name="test-set-cdata.xml" role="doc" /> 79 <file name="test-static.xml" role="doc" /> 71 80 <file name="test-xinclude-included.xml" role="doc" /> 72 81 <file name="test-xinclude.xml" role="doc" /> … … 75 84 <file name="test3.xml" role="doc" /> 76 85 </dir> <!-- /examples/xml --> 86 <file name="AnotherClass.php" role="doc" /> 77 87 <file name="ClassLoader.php" role="doc" /> 78 88 <file name="Color.php" role="doc" /> … … 92 102 <file name="MathExtension.php" role="doc" /> 93 103 <file name="MyClass.php" role="doc" /> 104 <file name="MyCollector.php" role="doc" /> 94 105 <file name="MyInterface.php" role="doc" /> 95 106 <file name="TestAttributesRequired.php" role="doc" /> … … 97 108 <file name="TestConstructor.php" role="doc" /> 98 109 <file name="TestDynamicSetters.php" role="doc" /> 110 <file name="TestDynamicTypes.php" role="doc" /> 99 111 <file name="TestEmptyConstructor.php" role="doc" /> 100 112 <file name="TestInterfaces.php" role="doc" /> 101 113 <file name="TestPrimitives.php" role="doc" /> 102 114 <file name="TestPrimitivesFactory.php" role="doc" /> 115 <file name="TestStaticClass.php" role="doc" /> 103 116 <file name="TestXInclude.php" role="doc" /> 104 117 <file name="UpperString.php" role="doc" /> … … 107 120 <dir name="definitions"> 108 121 <file name="AttributeDefinitionTestCase.php" role="test" /> 122 <file name="CDataDefinitionTestCase.php" role="test" /> 123 <file name="ConstructorDefinitionTestCase.php" role="test" /> 109 124 <file name="DefinitionsTestSuite.php" role="test" /> 125 <file name="FactoryMethodDefinitionTestCase.php" role="test" /> 110 126 </dir> <!-- /tests/definitions --> 111 127 <file name="run.php" role="test" /> … … 118 134 <file name="FactoryMethodValueConverterFactory.php" role="php" /> 119 135 <file name="PrimitiveValueConverterFactory.php" role="php" /> 136 <file name="StaticClassValueConverterFactory.php" role="php" /> 120 137 <file name="ValueConverterFactory.php" role="php" /> 121 138 <file name="ValueConverterFactoryChain.php" role="php" /> … … 126 143 <file name="FactoryMethodValueConverter.php" role="php" /> 127 144 <file name="PrimitiveValueConverter.php" role="php" /> 145 <file name="StaticClassValueConverter.php" role="php" /> 128 146 <file name="ValueConverter.php" role="php" /> 129 147 </dir> <!-- /XJConf/converters --> 130 148 <dir name="definitions"> 131 149 <dir name="handler"> 150 <file name="AbstractTagDefinitionHandler.php" role="php" /> 132 151 <file name="AttributeDefinitionHandler.php" role="php" /> 133 152 <file name="CDataDefinitionHandler.php" role="php" /> 134 153 <file name="ChildDefinitionHandler.php" role="php" /> 154 <file name="ConcreteTagDefinitionHandler.php" role="php" /> 135 155 <file name="ConstructorDefinitionHandler.php" role="php" /> 136 156 <file name="DefinitionHandler.php" role="php" /> … … 140 160 <file name="TagDefinitionHandler.php" role="php" /> 141 161 </dir> <!-- /XJConf/definitions/handler --> 162 <file name="AbstractTagDefinition.php" role="php" /> 142 163 <file name="AttributeDefinition.php" role="php" /> 143 164 <file name="CDataDefinition.php" role="php" /> 144 165 <file name="ChildDefinition.php" role="php" /> 166 <file name="ConcreteTagDefinition.php" role="php" /> 145 167 <file name="ConstructorDefinition.php" role="php" /> 146 168 <file name="Definition.php" role="php" /> … … 175 197 <file name="XmlParser.php" role="php" /> 176 198 </dir> <!-- /XJConf --> 199 <file name="autopackage2.php" role="php" /> 200 <file name="build.php" role="php" /> 177 201 <file name="LICENSE" role="data" /> 178 202 </dir> <!-- / --> … … 237 261 The ConstructorValueConverter now works with all examples.</notes> 238 262 </release> 263 <release> 264 <version> 265 <release>0.2.0</release> 266 <api>0.2.0</api> 267 </version> 268 <stability> 269 <release>alpha</release> 270 <api>alpha</api> 271 </stability> 272 <date>2007-01-19</date> 273 <license uri="http://www.gnu.org/copyleft/lesser.txt">LGPL</license> 274 <notes>Feature additions: 275 - New feature to define abstract tags, which enables yo to define the concrete type in the tag instead of the definition (mikey) 276 - It is now possible to define an explicit setter method for character data inside a tag (schst) 277 - Added possibility to declare tags as static (schst) 278 - Added several unit tests (mikey) 279 - Added possibility to package XJConfForPHP as a STAR archive (mikey, schst) 280 Bugfixes: 281 - Fixed bug #6: Enable factory methods without parameters in PHP 5.0.x (schst) 282 - Fixed bug #7: check, whether factory method can be called statically (schst) 283 - Fixed bug: prevent errors in case factory method does not return an instance of an object (mikey)</notes> 284 </release> 239 285 </changelog> 240 286 </package>
