# Reflection API: studlyCaps v. underscores?

- Thread: https://externals.io/message/8918
- Original archive: https://news-web.php.net/php.internals/8918
- Started by Jochem Maas on 2004-04-03T18:00:22+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #8918 — Jochem Maas — 2004-04-03T18:00:22+00:00

URL: https://externals.io/message/8918#8918

Firstly this is a question rather than an opinion (if anyone wants to 
know I prefer studlyCaps for aethetic reasons so I'm happy with the 
decision to use them!)

Having read all the posts on studlyCaps on this list, and understanding 
that studlyCaps was the std. for all new OO APIs I found the following a 
little odd:

The documentation at
http://sitten-polizei.de/php/reflection_api/docs/language.reflection.html
(pointed to by http://www.php.net/zend-engine-2.php):

<snip>
The reflection API is an object-oriented extension to the Zend Engine, 
consisting of the following classes:


<?php
   class Reflection { }
   interface Reflector { }
   class Reflection_Exception extends Exception { }
   class Reflection_Function implements Reflector { }
   class Reflection_Parameter implements Reflector { }
   class Reflection_Method extends Reflection_Function { }
   class Reflection_Class implements Reflector { }
   class Reflection_Property implements Reflector { }
   class Reflection_Extension implements Reflector { }
?>
</snip>

Shows that the reflection api uses underscores? the build of php I use 
confirms this also.
Is this intentional? (given that reflection is OO & new.)

with thanks,

Jochem.

---
using: PHP 5.0.0RC1-dev (cli) (built: Mar 12 2004 10:49:15) (DEBUG)

---

## #8920 — Timm Friebe — 2004-04-03T18:28:26+00:00

URL: https://externals.io/message/8918#8920 · In reply to: #8918

[...]
> Having read all the posts on studlyCaps on this list, and understanding 
> that studlyCaps was the std. for all new OO APIs I found the following a 
> little odd:
> 
> The documentation at
> http://sitten-polizei.de/php/reflection_api/docs/language.reflection.html

...is kind of out-of-date. I wrote the docs [1] a while ago (sometime
around July 2003, IIRC) and have been waiting for them to be integrated
into the official PHP documentation ever since.

[...]
> Shows that the reflection api uses underscores? the build of php I use 
> confirms this also.
> Is this intentional? (given that reflection is OO & new.)

This was changed last week - the underscores have vanished.

1] DocBook XML is available at:
   http://sitten-polizei.de/php/reflection_api/reflection.xml

- Timm

---

## #8922 — Andi Gutmans — 2004-04-03T19:27:43+00:00

URL: https://externals.io/message/8918#8922 · In reply to: #8918

At 08:28 PM 4/3/2004 +0200, Timm Friebe wrote:
>
>[...]
> > […]
>
>...is kind of out-of-date. I wrote the docs [1] a while ago (sometime
>around July 2003, IIRC) and have been waiting for them to be integrated
>into the official PHP documentation ever since.

Have you contacted the doc guys to make the add this to the PHP manual?

Andi

---

## #8923 — Sean Coates — 2004-04-03T20:25:08+00:00

URL: https://externals.io/message/8918#8923 · In reply to: #8922

I am in contact with Timm re: integrating his doc into the official manual.

S

Andi Gutmans wrote:
> At 08:28 PM 4/3/2004 +0200, Timm Friebe wrote:
> 
> Have you contacted the doc guys to make the add this to the PHP manual?
> 
> Andi
