PHP_HTTP_STRLIST_ITEM("LOCK")
PHP_HTTP_STRLIST_ITEM("UNLOCK")
/* WebDAV Versioning - RFC 3253 */
- PHP_HTTP_STRLIST_ITEM("VERSION-CONTROL")
+ PHP_HTTP_STRLIST_ITEM("VERSION_CONTROL")
PHP_HTTP_STRLIST_ITEM("REPORT")
PHP_HTTP_STRLIST_ITEM("CHECKOUT")
PHP_HTTP_STRLIST_ITEM("CHECKIN")
PHP_HTTP_STRLIST_ITEM("UPDATE")
PHP_HTTP_STRLIST_ITEM("LABEL")
PHP_HTTP_STRLIST_ITEM("MERGE")
- PHP_HTTP_STRLIST_ITEM("BASELINE-CONTROL")
+ PHP_HTTP_STRLIST_ITEM("BASELINE_CONTROL")
PHP_HTTP_STRLIST_ITEM("MKACTIVITY")
/* WebDAV Access Control - RFC 3744 */
PHP_HTTP_STRLIST_ITEM("ACL")
return $n;
}
function t($p) {
- if ($c = $p->getClass()) return $c->getName() . " ";
+ if ($c = $p->getClass()) return "\\" . $c->getName() . " ";
if ($p->isArray()) return "array ";
}
function c($n, $c) {
foreach ($ext->getClasses() as $class) {
- printf("%s%s %s ", m($class->getModifiers()), $class->isInterface() ? "interface":"class" ,$class->getName());
+ if ($class->inNamespace()) {
+ printf("namespace %s {\n", $class->getNamespaceName());
+ }
+ printf("%s%s %s ", m($class->getModifiers()), $class->isInterface() ? "interface":"class" ,$class->getShortName());
if ($p = $class->getParentClass()) {
- printf("extends %s ", $p->getName());
+ printf("extends \\%s ", $p->getName());
}
if ($i = $class->getInterfaceNames()) {
- printf("implements %s ", implode(", ", array_filter($i,function($v){return$v!="Traversable";})));
+ printf("implements \\%s ", implode(", \\", array_filter($i,function($v){return$v!="Traversable";})));
}
printf("\n{\n");
}
}
- printf("}\n\n");
+ printf("}\n");
+ if ($class->inNamespace()) {
+ printf("}\n");
+ }
+ printf("\n");
}