pear:rfc:pear2_standards
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pear:rfc:pear2_standards [2009/09/21 13:25] – update example based on namespaced class name ashnazg | pear:rfc:pear2_standards [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 236: | Line 236: | ||
The only exception to this rule is the Base Package Exception Interface, which is specifically required to be named " | The only exception to this rule is the Base Package Exception Interface, which is specifically required to be named " | ||
- | ==== Package Naming convention ==== | + | |
- | A package naming rule may potentially be added to these standards, if the [[pear/ | + | |
==== Base Exception interface ==== | ==== Base Exception interface ==== | ||
Line 289: | Line 288: | ||
| | ||
try { | try { | ||
- | $p = new PEAR2\PackageName\Foo(); | + | $p = new \PEAR2\PackageName\Foo(); |
| | ||
- | } catch (PEAR2\PackageName\Exception $e) { | + | } catch (\PEAR2\PackageName\Exception $e) { |
echo " | echo " | ||
} | } | ||
Line 312: | Line 311: | ||
... | ... | ||
// retrieve data from info.txt | // retrieve data from info.txt | ||
- | $info = file_get_contents(dirname(__FILE__) . ' | + | $info = file_get_contents(dirname(__FILE__) . '/../ |
?> | ?> | ||
pear/rfc/pear2_standards.1253539540.txt.gz · Last modified: 2017/09/22 13:28 (external edit)