]> granicus.if.org Git - php/commitdiff
Start TODO for namespaces/packages.
authorSebastian Bergmann <sebastian@php.net>
Mon, 30 Jul 2007 16:20:46 +0000 (16:20 +0000)
committerSebastian Bergmann <sebastian@php.net>
Mon, 30 Jul 2007 16:20:46 +0000 (16:20 +0000)
README.namespaces

index c640762796cd6dd8b835d545d47c18781c5ec7bc..de71880e3358f99ccfa49fe0daf21d0c455c89f8 100755 (executable)
@@ -1,3 +1,6 @@
+Design
+======
+
 Main assumption of the model is that the problem that we are to solve is the
 problem of the very long class names in PHP libraries. We would not attempt
 to take autoloader's job or create packaging model - only make names
@@ -100,4 +103,21 @@ namespace you can call only create internal PHP class, however using "new
 it tries to find class "A::B (__autoload() it if necessary) and call its
 static function foo() 
 7) qualified class names are interpreted as class from corresponding
-namespace. So "new A::B::C()" creates class "C" from namespace "A::B".
\ No newline at end of file
+namespace. So "new A::B::C()" creates class "C" from namespace "A::B".
+
+
+TODO
+====
+
+* Rename namespaces to packages?
+
+* Extend the Reflection API
+
+  * Add ReflectionPackage class
+
+    + getName()
+    + getClasses()
+    + getFunctions()
+    + getFiles()
+
+  * Add getNamespace() methods to ReflectionClass and ReflectionFunction