mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
4e0ad8a3db
commit
c013b5e501
1 changed files with 18 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue