cvs: peardoc /en/package/system/folders intro.xml
| From: | Christian Weiske | Date: | Mon, 30 Oct 2006 12:27:54 +0000 |
| Subject: | cvs: peardoc /en/package/system/folders intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8670@lists.php.net to get a copy of this message | ||
cweiske Mon Oct 30 12:27:54 2006 UTC
Modified files:
/peardoc/en/package/system/folders intro.xml
Log:
<function>-marking methods
http://cvs.php.net/viewvc.cgi/peardoc/en/package/system/folders/intro.xml?r1=1.1&r2=1.2&diff_format=u
Index: peardoc/en/package/system/folders/intro.xml
diff -u peardoc/en/package/system/folders/intro.xml:1.1
peardoc/en/package/system/folders/intro.xml:1.2
--- peardoc/en/package/system/folders/intro.xml:1.1 Sat Mar 18 11:22:44 2006
+++ peardoc/en/package/system/folders/intro.xml Mon Oct 30 12:27:54 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.system.folders.intro">
<refnamediv>
@@ -33,7 +33,7 @@
if the directory can be determined, and <literal>NULL</literal> if
it fails or isn't available on the system. For example, the
"Shared Documents" folder exists on Windows only. If you run
- <literal>getSharedDocuments()</literal> on a Mac or Linux, the method
+ <function>getSharedDocuments</function> on a Mac or Linux, the method
will return <literal>NULL</literal>.
</para>
@@ -58,22 +58,22 @@
<tbody>
<row>
<entry>All users directory</entry>
- <entry>getAllUsers()</entry>
+ <entry><function>getAllUsers</function></entry>
<entry>Windows only</entry>
</row>
<row>
<entry>Application data</entry>
- <entry>getAppData()</entry>
+ <entry><function>getAppData</function></entry>
<entry></entry>
</row>
<row>
<entry>Desktop</entry>
- <entry>getDesktop()</entry>
+ <entry><function>getDesktop</function></entry>
<entry></entry>
</row>
<row>
<entry>Documents / My Documents</entry>
- <entry>getDocuments()</entry>
+ <entry><function>getDocuments</function></entry>
<entry></entry>
</row>
<row>
@@ -83,22 +83,22 @@
</row>
<row>
<entry>Programs folder (installed ones)</entry>
- <entry>getPrograms()</entry>
+ <entry><function>getPrograms</function></entry>
<entry></entry>
</row>
<row>
<entry>Temporary files</entry>
- <entry>getTemp()</entry>
+ <entry><function>getTemp</function></entry>
<entry></entry>
</row>
<row>
<entry>Shared documents</entry>
- <entry>getSharedDocuments()</entry>
+ <entry><function>getSharedDocuments</function></entry>
<entry>Windows only</entry>
</row>
<row>
<entry>Windows directory</entry>
- <entry>getWindows()</entry>
+ <entry><function>getWindows</function></entry>
<entry>Windows only</entry>
</row>
</tbody>
@@ -111,7 +111,8 @@
<title>System_Folders_Cached</title>
<para>
- On every getXXX() call, the whole procedure of looping through
+ On every <function>getXXX</function> call, the whole procedure of
+ looping through
environment variables, checking the existence of the folders and
trying some common locations is executed. So if you call the same
method again and again, it will cost you the same amount of cpu cycles
@@ -126,7 +127,7 @@
<para>
Both issues are addressed with <classname>System_Folders_Cached</classname>.
- It provides a cached version of the <literal>getXXX()</literal> methods,
+ It provides a cached version of the <function>getXXX</function> methods,
meaning that the result of the first method calls are stored locally and
returned on every further call, which speeds up consecutive calls to the
same method a lot.
@@ -135,8 +136,8 @@
<para>
Further, the class provides methods to set the folder locations and
save this settings into an ini file. Saving them can be done with
- <literal>saveToFile()</literal> and they can be loaded with
- <literal>loadFromFile()</literal>. This allows customization of the
+ <function>saveToFile</function> and they can be loaded with
+ <function>loadFromFile</function>. This allows customization of the
folder locations, and persistency across sessions.
</para>