add the rule of name transfering

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328044 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Xinchen Hui 2012-10-16 03:49:20 +00:00
parent 4e0ad8a3db
commit c013b5e501

View file

@ -243,13 +243,27 @@
</term>
<listitem>
<para>
Only works as of PHP 5.3, if this value is On, All class of Yaf will
Only works as of PHP 5.3, if this value is On, All classes of Yaf will
named in namespace style.
</para>
<para>
For example, Yaf_Route_Rewrite => \Yaf\Route\Rewrite,
Yaf_Controller_Abstract => \Yaf\Controller_Abstract (Abstract is the
keyword, can not used as a class name)
For example:
<screen>
<![CDATA[
Yaf_Route_Rewrite => \Yaf\Route\Rewrite
Yaf_Request_Http => \Yaf\Request\Http
]]>
</screen>
There is a exception, that is some classes like
<classname>Yaf_Controller_Abstract</classname>.
The last component is a keyword of PHP, could not be used as a class
name, so for such classes:
<screen>
<![CDATA[
Yaf_Controller_Abstract => \Yaf\Controller_Abstract
Yaf_Route_Static => \Yaf\Route_Static
]]>
</screen>
</para>
</listitem>
</varlistentry>