sebastian Mon Jul 30 16:20:46 2007 UTC
Modified files:
/php-src README.namespaces
Log:
Start TODO for namespaces/packages.
http://cvs.php.net/viewvc.cgi/php-src/README.namespaces?r1=1.1&r2=1.2&diff_format=u
Index: php-src/README.namespaces
diff -u php-src/README.namespaces:1.1 php-src/README.namespaces:1.2
--- php-src/README.namespaces:1.1 Mon Jul 23 16:06:25 2007
+++ php-src/README.namespaces Mon Jul 30 16:20:46 2007
@@ -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 @@
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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php