cvs: peardoc /en/chapters standards.xml

From: Date: Sat, 02 Jul 2005 15:08:48 +0000
Subject: cvs: peardoc /en/chapters standards.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6440@lists.php.net to get a copy of this message
danielc Sat Jul 2 11:08:48 2005 EDT Modified files: /peardoc/en/chapters standards.xml Log: * Put include/require in <command> instead of <function>. Bug 4729. http://cvs.php.net/diff.php/peardoc/en/chapters/standards.xml?r1=1.35&r2=1.36&ty=u Index: peardoc/en/chapters/standards.xml diff -u peardoc/en/chapters/standards.xml:1.35 peardoc/en/chapters/standards.xml:1.36 --- peardoc/en/chapters/standards.xml:1.35 Thu Mar 24 13:07:24 2005 +++ peardoc/en/chapters/standards.xml Sat Jul 2 11:08:46 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.35 $ --> +<!-- $Revision: 1.36 $ --> <chapter id="standards"> <title>Coding Standards</title> @@ -197,17 +197,17 @@ <title>Including Code</title> <para> Anywhere you are unconditionally including a class file, use - <function>require_once</function>. Anywhere you are conditionally + <command>require_once</command>. Anywhere you are conditionally including a class file (for example, factory methods), use - <function>include_once</function>. Either of these will ensure + <command>include_once</command>. Either of these will ensure that class files are included only once. They share the same file list, so you don't need to worry about mixing them - a file - included with <function>require_once</function> will not be - included again by <function>include_once</function>. + included with <command>require_once</command> will not be + included again by <command>include_once</command>. <note> <simpara> - <function>include_once</function> and - <function>require_once</function> are statements, not + <command>include_once</command> and + <command>require_once</command> are statements, not functions. Parentheses should not surround the subject filename. </simpara> </note>

« previous php.pear.doc (#6440) next »