cvs: peardoc /en/package/caching/cache-lite/cache-lite clean.xml

From: Date: Wed, 02 Nov 2005 13:08:44 +0000
Subject: cvs: peardoc /en/package/caching/cache-lite/cache-lite clean.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7122@lists.php.net to get a copy of this message
moosh Wed Nov 2 08:08:44 2005 EDT Modified files: /peardoc/en/package/caching/cache-lite/cache-lite clean.xml Log: - identation http://cvs.php.net/diff.php/peardoc/en/package/caching/cache-lite/cache-lite/clean.xml?r1=1.5&r2=1.6&ty=u Index: peardoc/en/package/caching/cache-lite/cache-lite/clean.xml diff -u peardoc/en/package/caching/cache-lite/cache-lite/clean.xml:1.5 peardoc/en/package/caching/cache-lite/cache-lite/clean.xml:1.6 --- peardoc/en/package/caching/cache-lite/cache-lite/clean.xml:1.5 Wed Oct 5 14:30:43 2005 +++ peardoc/en/package/caching/cache-lite/cache-lite/clean.xml Wed Nov 2 08:08:42 2005 @@ -1,84 +1,98 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.caching.cache-lite.cache-lite.clean"> - <refnamediv> - <refname><function>Cache_Lite::clean</function></refname> - <refpurpose>Clean the cache</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once &apos;Cache/Lite.php&apos;; - </funcsynopsisinfo> - <funcprototype> - <funcdef>boolean <function>Cache_Lite::clean</function></funcdef> - <paramdef>string <parameter> <optional>$group = &false;</optional></parameter></paramdef> - <paramdef>string <parameter> <optional>$mode = 'ingroup';</optional></parameter></paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> + <refnamediv> + <refname><function>Cache_Lite::clean</function></refname> + <refpurpose>Clean the cache</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once &apos;Cache/Lite.php&apos;; + </funcsynopsisinfo> + <funcprototype> + <funcdef>boolean <function>Cache_Lite::clean</function></funcdef> + <paramdef> + string + <parameter> + <optional>$group = &false;</optional> + </parameter> + </paramdef> + <paramdef> + string + <parameter> + <optional>$mode = 'ingroup';</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> - <refsect1 id="package.caching.cache-lite.cache-lite.clean.desc"> - &title.desc; - <para> - if no group is specified all cache files will be destroyed ; else only - cache files of the specified group will be destroyed - </para> + <refsect1 id="package.caching.cache-lite.cache-lite.clean.desc"> + &title.desc; + <para> + if no group is specified all cache files will be destroyed ; + + else only cache files of the specified group will be destroyed + </para> - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.clean.param"> - &title.param; - <para> - <variablelist> - <varlistentry> - <term> - &type.string; - <parameter>$group</parameter> - </term> - <listitem> - <para> - name of the cache group - </para> - </listitem> - </varlistentry> - </variablelist> - <variablelist> - <varlistentry> - <term> - &type.string; - <parameter>$mode</parameter> - </term> - <listitem> - <para> - flush cache mode : 'old' (clean too old cache files - for the current lifetime), 'ingroup' (clean all cache files for the given - group), 'notingroup' (clean all the cache files except for the given - group), [since 1.5.0 beta] 'callback_myFunc' (call the function 'myFunc' with the complete path - file and the group in parameters, if the callback return 'true', the cache - file is deleted). - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.clean.returns"> - &title.returns; - <para> - <emphasis>returns</emphasis> true if no problem - </para> - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.clean.note"> - &title.note; - &note.notstatic; - </refsect1> - <refsect1 id="package.caching.cache-lite.cache-lite.clean.example"> - &title.example; - <example> - <title>Usage</title> - <programlisting role="php"> + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.clean.param"> + &title.param; + <para> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$group</parameter> + </term> + <listitem> + <para> + name of the cache group + </para> + </listitem> + </varlistentry> + </variablelist> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$mode</parameter> + </term> + <listitem> + <para> + flush cache mode : + 'old' (clean too old cache files for the current lifetime), + 'ingroup' (clean all cache files for the given group), + 'notingroup' (clean all the cache files except for the given group), + [since 1.5.0 beta] + 'callback_myFunc' + (call the function 'myFunc' with the complete path file + and the group in parameters, if the callback return 'true', + the cache file is deleted). + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.clean.returns"> + &title.returns; + <para> + <emphasis>returns</emphasis> true if no problem + </para> + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.clean.note"> + &title.note; + &note.notstatic; + </refsect1> + <refsect1 id="package.caching.cache-lite.cache-lite.clean.example"> + &title.example; + <example> + <title>Usage</title> + <programlisting role="php"> <![CDATA[ <?php -require_once "Cache/Lite.php"; +require_once 'Cache/Lite.php'; $options = array('cacheDir' => '/tmp/'); $cache = new Cache_Lite($options); @@ -87,12 +101,12 @@ ?> ]]> - </programlisting> - </example> - <para> - This example cleans all of the cache files. - </para> - </refsect1> + </programlisting> + </example> + <para> + This example cleans all of the cache files. + </para> + </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables:

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