cvs: peardoc /en/package/database/db-dataobject/db-dataobject staticget.xml

From: Date: Tue, 25 Oct 2005 02:58:50 +0000
Subject: cvs: peardoc /en/package/database/db-dataobject/db-dataobject staticget.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7085@lists.php.net to get a copy of this message
alan_k Mon Oct 24 22:58:50 2005 EDT Modified files: /peardoc/en/package/database/db-dataobject/db-dataobject staticget.xml Log: update documentation to clear up bug #5770 http://cvs.php.net/diff.php/peardoc/en/package/database/db-dataobject/db-dataobject/staticget.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/en/package/database/db-dataobject/db-dataobject/staticget.xml diff -u peardoc/en/package/database/db-dataobject/db-dataobject/staticget.xml:1.4 peardoc/en/package/database/db-dataobject/db-dataobject/staticget.xml:1.5 --- peardoc/en/package/database/db-dataobject/db-dataobject/staticget.xml:1.4 Wed Aug 13 12:01:02 2003 +++ peardoc/en/package/database/db-dataobject/db-dataobject/staticget.xml Mon Oct 24 22:58:47 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.database.db-dataobject.db-dataobject.staticget"> <refnamediv> <refname>DB_DataObject::staticGet()</refname> @@ -28,11 +28,22 @@ </refsynopsisdiv> <refsect1 id="package.database.db-dataobject.db-dataobject.staticget.desc"> &title.desc; - <para> - The static method is similar to the get request, however it does not require the - initial instantiation of the class. staticGet will also auto load the class. + + + <warning> + <para> + This method is depreciated, it is recommended to use ::factory() and -&gt;get() + </para> + </warning> + + + + <para> + The static method is a combination of factory and get(). - <function>staticGet</function> can also cache the results, (see configuration) + <function>staticGet</function> will cache the returned data in a global + variable for quick access within the same request (any data + modification query will clear the cache). </para> </refsect1>

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