cvs: peardoc /en/package/html/pager intro.xml

From: Date: Sun, 13 Feb 2005 08:37:57 +0000
Subject: cvs: peardoc /en/package/html/pager intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5525@lists.php.net to get a copy of this message
quipo Sun Feb 13 03:37:57 2005 EDT Modified files: /peardoc/en/package/html/pager intro.xml Log: rewording http://cvs.php.net/diff.php/peardoc/en/package/html/pager/intro.xml?r1=1.10&r2=1.11&ty=u Index: peardoc/en/package/html/pager/intro.xml diff -u peardoc/en/package/html/pager/intro.xml:1.10 peardoc/en/package/html/pager/intro.xml:1.11 --- peardoc/en/package/html/pager/intro.xml:1.10 Mon Sep 27 17:00:41 2004 +++ peardoc/en/package/html/pager/intro.xml Sun Feb 13 03:37:57 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <refentry id="package.html.pager.intro"> <refnamediv> <refname>Introduction</refname> @@ -165,24 +165,24 @@ <title>Important note for PHP 5 users</title> <para> Since version 2.2.1, <classname>Pager</classname> works with PHP 5 too, - but it needs to be called via the <function>factory</function> method + but you must use the <function>factory</function> method instead of the constructor (which is deprecated): <programlisting role="php"> <![CDATA[ require_once 'Pager/Pager.php'; //wrong: -//$pager = & new Pager($params); +//$pager =& new Pager($params); //right -$pager = & Pager::factory($params); +$pager =& Pager::factory($params); //continue as you did before ]]> </programlisting> </para> <para> - If you are using a previous revision and cannot update, you need to write + If you are using a previous revision and cannot update, you must write the following code on PHP 5: <programlisting role="php"> <![CDATA[ @@ -191,8 +191,8 @@ //require_once 'Pager/Jumping.php'; require_once 'Pager/Sliding.php'; -//$pager = & new Pager_Jumping($params); -$pager = & new Pager_Sliding($params); +//$pager =& new Pager_Jumping($params); +$pager =& new Pager_Sliding($params); //continue as you did before ]]>

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