didou Mon Dec 15 11:47:51 2003 EDT
Modified files: /phpdoc/en/reference/calendar/functions easter-date.xml easter-days.xml gregoriantojd.xml /phpdoc/en/reference/classobj reference.xml /phpdoc/en/reference/classobj/functions call-user-method.xml get-class-methods.xml get-class-vars.xml /phpdoc/en/reference/com/functions class.com.xml /phpdoc/en/reference/cpdf reference.xml /phpdoc/en/reference/curl reference.xml /phpdoc/en/reference/curl/functions curl-init.xml Log: Merry XHTML and CS compliant christmas all \!
Index: phpdoc/en/reference/calendar/functions/easter-date.xml diff -u phpdoc/en/reference/calendar/functions/easter-date.xml:1.8 phpdoc/en/reference/calendar/functions/easter-date.xml:1.9 --- phpdoc/en/reference/calendar/functions/easter-date.xml:1.8 Thu Dec 4 11:57:46 2003 +++ phpdoc/en/reference/calendar/functions/easter-date.xml Mon Dec 15 11:47:46 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/calendar.xml, last change in rev 1.2 --> <refentry id="function.easter-date"> <refnamediv> @@ -30,9 +30,9 @@ <![CDATA[ <?php -echo date ("M-d-Y", easter_date(1999)); // Apr-04-1999 -echo date ("M-d-Y", easter_date(2000)); // Apr-23-2000 -echo date ("M-d-Y", easter_date(2001)); // Apr-15-2001 +echo date("M-d-Y", easter_date(1999)); // Apr-04-1999 +echo date("M-d-Y", easter_date(2000)); // Apr-23-2000 +echo date("M-d-Y", easter_date(2001)); // Apr-15-2001 ?> ]]> Index: phpdoc/en/reference/calendar/functions/easter-days.xml diff -u phpdoc/en/reference/calendar/functions/easter-days.xml:1.7 phpdoc/en/reference/calendar/functions/easter-days.xml:1.8 --- phpdoc/en/reference/calendar/functions/easter-days.xml:1.7 Fri Oct 24 08:06:52 2003 +++ phpdoc/en/reference/calendar/functions/easter-days.xml Mon Dec 15 11:47:46 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/calendar.xml, last change in rev 1.2 --> <refentry id="function.easter-days"> <refnamediv> @@ -45,9 +45,9 @@ <![CDATA[ <?php -echo easter_days (1999); // 14, i.e. April 4 -echo easter_days (1492); // 32, i.e. April 22 -echo easter_days (1913); // 2, i.e. March 23 +echo easter_days(1999); // 14, i.e. April 4 +echo easter_days(1492); // 32, i.e. April 22 +echo easter_days(1913); // 2, i.e. March 23 ?> ]]> Index: phpdoc/en/reference/calendar/functions/gregoriantojd.xml diff -u phpdoc/en/reference/calendar/functions/gregoriantojd.xml:1.4 phpdoc/en/reference/calendar/functions/gregoriantojd.xml:1.5 --- phpdoc/en/reference/calendar/functions/gregoriantojd.xml:1.4 Mon Oct 6 23:49:01 2003 +++ phpdoc/en/reference/calendar/functions/gregoriantojd.xml Mon Dec 15 11:47:46 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/calendar.xml, last change in rev 1.4 --> <refentry id="function.gregoriantojd"> <refnamediv> @@ -31,9 +31,9 @@ <programlisting role="php"> <![CDATA[ <?php -$jd = GregorianToJD (10,11,1970); +$jd = GregorianToJD(10,11,1970); echo "$jd\n"; -$gregorian = JDToGregorian ($jd); +$gregorian = JDToGregorian($jd); echo "$gregorian\n"; ?> ]]> Index: phpdoc/en/reference/classobj/reference.xml diff -u phpdoc/en/reference/classobj/reference.xml:1.9 phpdoc/en/reference/classobj/reference.xml:1.10 --- phpdoc/en/reference/classobj/reference.xml:1.9 Wed Dec 10 12:45:56 2003 +++ phpdoc/en/reference/classobj/reference.xml Mon Dec 15 11:47:47 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <reference id="ref.classobj"> <title>Class/Object Functions</title> <titleabbrev>Classes/Objects</titleabbrev> @@ -64,7 +64,7 @@ var $edible; var $color; - function Vegetable( $edible, $color="green" ) { + function Vegetable($edible, $color="green") { $this->edible = $edible; $this->color = $color; } @@ -85,7 +85,7 @@ var $cooked = false; function Spinach() { - $this->Vegetable( true, "green" ); + $this->Vegetable(true, "green"); } function cook_it() { @@ -135,7 +135,7 @@ function class_parentage($obj, $class) { if (is_subclass_of($GLOBALS[$obj], $class)) { - echo "Object $obj belongs to class ".get_class($$obj); + echo "Object $obj belongs to class " . get_class($$obj); echo " a subclass of $class\n"; } else { echo "Object $obj does not belong to a subclass of $class\n"; @@ -144,13 +144,13 @@ // instantiate 2 objects -$veggie = new Vegetable(true,"blue"); +$veggie = new Vegetable(true, "blue"); $leafy = new Spinach(); // print out information about objects -echo "veggie: CLASS ".get_class($veggie)."\n"; -echo "leafy: CLASS ".get_class($leafy); -echo ", PARENT ".get_parent_class($leafy)."\n"; +echo "veggie: CLASS " . get_class($veggie) . "\n"; +echo "leafy: CLASS " . get_class($leafy); +echo ", PARENT " . get_parent_class($leafy)."\n"; // show veggie properties echo "\nveggie: Properties\n"; Index: phpdoc/en/reference/classobj/functions/call-user-method.xml diff -u phpdoc/en/reference/classobj/functions/call-user-method.xml:1.5 phpdoc/en/reference/classobj/functions/call-user-method.xml:1.6 --- phpdoc/en/reference/classobj/functions/call-user-method.xml:1.5 Mon Jun 16 08:12:08 2003 +++ phpdoc/en/reference/classobj/functions/call-user-method.xml Mon Dec 15 11:47:48 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/classobj.xml, last change in rev 1.4 --> <refentry id="function.call-user-method"> <refnamediv> @@ -45,19 +45,19 @@ $this->TLD = $tld; } - function print_info($prestr="") { - echo $prestr."Country: ".$this->NAME."\n"; - echo $prestr."Top Level Domain: ".$this->TLD."\n"; + function print_info($prestr = "") { + echo $prestr . "Country: " . $this->NAME . "\n"; + echo $prestr . "Top Level Domain: " . $this->TLD . "\n"; } } -$cntry = new Country("Peru","pe"); +$cntry = new Country("Peru", "pe"); echo "* Calling the object method directly\n"; $cntry->print_info(); echo "\n* Calling the same method indirectly\n"; -call_user_method ("print_info", $cntry, "\t"); +call_user_method("print_info", $cntry, "\t"); ?> ]]> </programlisting> Index: phpdoc/en/reference/classobj/functions/get-class-methods.xml diff -u phpdoc/en/reference/classobj/functions/get-class-methods.xml:1.5 phpdoc/en/reference/classobj/functions/get-class-methods.xml:1.6 --- phpdoc/en/reference/classobj/functions/get-class-methods.xml:1.5 Sat Aug 16 14:59:11 2003 +++ phpdoc/en/reference/classobj/functions/get-class-methods.xml Mon Dec 15 11:47:48 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/classobj.xml, last change in rev 1.2 --> <refentry id="function.get-class-methods"> <refnamediv> @@ -41,17 +41,17 @@ class myclass { // constructor function myclass() { - return(TRUE); + return(true); } // method 1 function myfunc1() { - return(TRUE); + return(true); } // method 2 function myfunc2() { - return(TRUE); + return(true); } } Index: phpdoc/en/reference/classobj/functions/get-class-vars.xml diff -u phpdoc/en/reference/classobj/functions/get-class-vars.xml:1.5 phpdoc/en/reference/classobj/functions/get-class-vars.xml:1.6 --- phpdoc/en/reference/classobj/functions/get-class-vars.xml:1.5 Mon Jun 16 08:12:08 2003 +++ phpdoc/en/reference/classobj/functions/get-class-vars.xml Mon Dec 15 11:47:48 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/classobj.xml, last change in rev 1.1 --> <refentry id="function.get-class-vars"> <refnamediv> @@ -40,7 +40,7 @@ // constructor function myclass() { - return(TRUE); + return(true); } } Index: phpdoc/en/reference/com/functions/class.com.xml diff -u phpdoc/en/reference/com/functions/class.com.xml:1.3 phpdoc/en/reference/com/functions/class.com.xml:1.4 --- phpdoc/en/reference/com/functions/class.com.xml:1.3 Wed Jul 16 13:08:44 2003 +++ phpdoc/en/reference/com/functions/class.com.xml Mon Dec 15 11:47:49 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/com.xml, last change in rev 1.12 --> <refentry id="class.com"> <refnamediv> @@ -66,7 +66,7 @@ <?php // starting word $word = new COM("word.application") or die("Unable to instanciate Word"); -print "Loaded Word, version {$word->Version}\n"; +echo "Loaded Word, version {$word->Version}\n"; //bring it to front $word->Visible = 1; @@ -105,16 +105,13 @@ $num_columns = $rs->Fields->Count(); echo $num_columns . "\n"; -for ($i=0; $i < $num_columns; $i++) -{ +for ($i=0; $i < $num_columns; $i++) { $fld[$i] = $rs->Fields($i); } $rowcount = 0; -while (!$rs->EOF) -{ - for ($i=0; $i < $num_columns; $i++) - { +while (!$rs->EOF) { + for ($i=0; $i < $num_columns; $i++) { echo $fld[$i]->value . "\t"; } echo "\n"; Index: phpdoc/en/reference/cpdf/reference.xml diff -u phpdoc/en/reference/cpdf/reference.xml:1.9 phpdoc/en/reference/cpdf/reference.xml:1.10 --- phpdoc/en/reference/cpdf/reference.xml:1.9 Sat Aug 16 13:15:07 2003 +++ phpdoc/en/reference/cpdf/reference.xml Mon Dec 15 11:47:50 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <reference id="ref.cpdf"> <title>ClibPDF functions</title> <titleabbrev>ClibPDF</titleabbrev> @@ -122,7 +122,7 @@ cpdf_set_creator($pdf, "pdf_clock.php3"); cpdf_set_title($pdf, "Analog Clock"); -while($pagecount-- > 0) { +while ($pagecount-- > 0) { cpdf_page_init($pdf, $pagecount+1, 0, 2 * ($radius + $margin), 2 * ($radius + $margin), 1.0); cpdf_set_page_animation($pdf, 4, 0.5, 0, 0, 0); /* wipe */ @@ -133,21 +133,19 @@ /* minute strokes */ cpdf_setlinewidth($pdf, 2.0); - for ($alpha = 0; $alpha < 360; $alpha += 6) - { + for ($alpha = 0; $alpha < 360; $alpha += 6) { cpdf_rotate($pdf, 6.0); cpdf_moveto($pdf, $radius, 0.0); cpdf_lineto($pdf, $radius-$margin/3, 0.0); cpdf_stroke($pdf); - } + } cpdf_restore($pdf); cpdf_save($pdf); /* 5 minute strokes */ cpdf_setlinewidth($pdf, 3.0); - for ($alpha = 0; $alpha < 360; $alpha += 30) - { + for ($alpha = 0; $alpha < 360; $alpha += 30) { cpdf_rotate($pdf, 30.0); cpdf_moveto($pdf, $radius, 0.0); cpdf_lineto($pdf, $radius-$margin, 0.0); Index: phpdoc/en/reference/curl/reference.xml diff -u phpdoc/en/reference/curl/reference.xml:1.9 phpdoc/en/reference/curl/reference.xml:1.10 --- phpdoc/en/reference/curl/reference.xml:1.9 Mon Jun 9 23:08:01 2003 +++ phpdoc/en/reference/curl/reference.xml Mon Dec 15 11:47:50 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <reference id="ref.curl"> <title>CURL, Client URL Library Functions</title> <titleabbrev>CURL</titleabbrev> @@ -58,15 +58,15 @@ <![CDATA[ <?php -$ch = curl_init ("http://www.example.com/"); -$fp = fopen ("example_homepage.txt", "w"); +$ch = curl_init("http://www.example.com/"); +$fp = fopen("example_homepage.txt", "w"); -curl_setopt ($ch, CURLOPT_FILE, $fp); -curl_setopt ($ch, CURLOPT_HEADER, 0); +curl_setopt($ch, CURLOPT_FILE, $fp); +curl_setopt($ch, CURLOPT_HEADER, 0); -curl_exec ($ch); -curl_close ($ch); -fclose ($fp); +curl_exec($ch); +curl_close($ch); +fclose($fp); ?> ]]> </programlisting> Index: phpdoc/en/reference/curl/functions/curl-init.xml diff -u phpdoc/en/reference/curl/functions/curl-init.xml:1.3 phpdoc/en/reference/curl/functions/curl-init.xml:1.4 --- phpdoc/en/reference/curl/functions/curl-init.xml:1.3 Sat Jun 15 04:41:36 2002 +++ phpdoc/en/reference/curl/functions/curl-init.xml Mon Dec 15 11:47:51 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/curl.xml, last change in rev 1.1 --> <refentry id="function.curl-init"> <refnamediv> @@ -30,12 +30,12 @@ <?php $ch = curl_init(); -curl_setopt ($ch, CURLOPT_URL, "http://www.example.com/"); -curl_setopt ($ch, CURLOPT_HEADER, 0); +curl_setopt($ch, CURLOPT_URL, "http://www.example.com/"); +curl_setopt($ch, CURLOPT_HEADER, 0); -curl_exec ($ch); +curl_exec($ch); -curl_close ($ch); +curl_close($ch); ?> ]]> </programlisting>