didou Thu Dec 18 12:46:05 2003 EDT
Modified files: /phpdoc/en/reference/network/functions fsockopen.xml /phpdoc/en/reference/objaggregation reference.xml /phpdoc/en/reference/oci8/functions ocibindbyname.xml ocilogon.xml ocinlogon.xml /phpdoc/en/reference/ovrimos/functions ovrimos-result-all.xml Log: some more CS
Index: phpdoc/en/reference/network/functions/fsockopen.xml diff -u phpdoc/en/reference/network/functions/fsockopen.xml:1.11 phpdoc/en/reference/network/functions/fsockopen.xml:1.12 --- phpdoc/en/reference/network/functions/fsockopen.xml:1.11 Mon Dec 15 11:52:20 2003 +++ phpdoc/en/reference/network/functions/fsockopen.xml Thu Dec 18 12:46:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> <refentry id="function.fsockopen"> <refnamediv> @@ -84,7 +84,7 @@ fputs($fp, $out); while (!feof($fp)) { - echo fgets($fp,128); + echo fgets($fp, 128); } fclose($fp); } Index: phpdoc/en/reference/objaggregation/reference.xml diff -u phpdoc/en/reference/objaggregation/reference.xml:1.12 phpdoc/en/reference/objaggregation/reference.xml:1.13 --- phpdoc/en/reference/objaggregation/reference.xml:1.12 Thu Dec 18 09:14:34 2003 +++ phpdoc/en/reference/objaggregation/reference.xml Thu Dec 18 12:46:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <reference id="ref.objaggregation"> <title>Object Aggregation/Composition Functions</title> <titleabbrev>Object Aggregation</titleabbrev> @@ -244,10 +244,10 @@ } function object_info($obj) { - $out[] = "Class: ".get_class($obj); + $out[] = "Class: " . get_class($obj); foreach (get_object_vars($obj) as $var=>$val) { if (is_array($val)) { - $out[] = "property: $var (array)\n".p_arr($val); + $out[] = "property: $var (array)\n" . p_arr($val); } else { $out[] = "property: $var = $val"; } @@ -267,26 +267,26 @@ // print information on the objects echo "\$fs object\n"; -echo object_info($fs)."\n"; +echo object_info($fs) . "\n"; echo "\n\$ws object\n"; -echo object_info($ws)."\n"; +echo object_info($ws) . "\n"; // do some aggregation echo "\nLet's aggregate \$fs to the WDDXStorage class\n"; aggregate($fs, "WDDXStorage"); echo "\$fs object\n"; -echo object_info($fs)."\n"; +echo object_info($fs) . "\n"; echo "\nNow let us aggregate it to the DBStorage class\n"; aggregate($fs, "DBStorage"); echo "\$fs object\n"; -echo object_info($fs)."\n"; +echo object_info($fs) . "\n"; echo "\nAnd finally deaggregate WDDXStorage\n"; deaggregate($fs, "WDDXStorage"); echo "\$fs object\n"; -echo object_info($fs)."\n"; +echo object_info($fs) . "\n"; ?> ]]> Index: phpdoc/en/reference/oci8/functions/ocibindbyname.xml diff -u phpdoc/en/reference/oci8/functions/ocibindbyname.xml:1.10 phpdoc/en/reference/oci8/functions/ocibindbyname.xml:1.11 --- phpdoc/en/reference/oci8/functions/ocibindbyname.xml:1.10 Mon Dec 15 11:52:32 2003 +++ phpdoc/en/reference/oci8/functions/ocibindbyname.xml Thu Dec 18 12:46:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <!-- splitted from ./en/functions/oci8.xml, last change in rev 1.2 --> <refentry id="function.ocibindbyname"> <refnamediv> @@ -53,8 +53,8 @@ $conn = OCILogon("scott", "tiger"); -$stmt = OCIParse($conn, "insert into emp (empno, ename) ". - "values (:empno,:ename) ". +$stmt = OCIParse($conn, "insert into emp (empno, ename) " . + "values (:empno,:ename) " . "returning ROWID into :rid"); $data = array(1111 => "Larry", 2222 => "Bill", 3333 => "Jim"); Index: phpdoc/en/reference/oci8/functions/ocilogon.xml diff -u phpdoc/en/reference/oci8/functions/ocilogon.xml:1.7 phpdoc/en/reference/oci8/functions/ocilogon.xml:1.8 --- phpdoc/en/reference/oci8/functions/ocilogon.xml:1.7 Mon Dec 15 11:52:32 2003 +++ phpdoc/en/reference/oci8/functions/ocilogon.xml Thu Dec 18 12:46:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/oci8.xml, last change in rev 1.2 --> <refentry id="function.ocilogon"> <refnamediv> @@ -44,36 +44,36 @@ function create_table($conn) { $stmt = ociparse($conn, "create table scott.hallo (test varchar2(64))"); ociexecute($stmt); - echo $conn." created table\n\n"; + echo $conn . " created table\n\n"; } function drop_table($conn) { $stmt = ociparse($conn, "drop table scott.hallo"); ociexecute($stmt); - echo $conn." dropped table\n\n"; + echo $conn . " dropped table\n\n"; } function insert_data($conn) { $stmt = ociparse($conn, "insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))"); ociexecute($stmt, OCI_DEFAULT); - echo $conn." inserted hallo\n\n"; + echo $conn . " inserted hallo\n\n"; } function delete_data($conn) { $stmt = ociparse($conn, "delete from scott.hallo"); ociexecute($stmt, OCI_DEFAULT); - echo $conn." deleted hallo\n\n"; + echo $conn . " deleted hallo\n\n"; } function commit($conn) { ocicommit($conn); - echo $conn." committed\n\n"; + echo $conn . " committed\n\n"; } function rollback($conn) { ocirollback($conn); - echo $conn." rollback\n\n"; + echo $conn . " rollback\n\n"; } function select_data($conn) { @@ -81,9 +81,9 @@ ociexecute($stmt, OCI_DEFAULT); echo $conn."----selecting\n\n"; while (ocifetch($stmt)) { - echo $conn." [".ociresult($stmt, "TEST")."]\n\n"; + echo $conn . " [" . ociresult($stmt, "TEST") . "]\n\n"; } - echo $conn."----done\n\n"; + echo $conn . "----done\n\n"; } create_table($c1); Index: phpdoc/en/reference/oci8/functions/ocinlogon.xml diff -u phpdoc/en/reference/oci8/functions/ocinlogon.xml:1.6 phpdoc/en/reference/oci8/functions/ocinlogon.xml:1.7 --- phpdoc/en/reference/oci8/functions/ocinlogon.xml:1.6 Mon Dec 15 11:52:32 2003 +++ phpdoc/en/reference/oci8/functions/ocinlogon.xml Thu Dec 18 12:46:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/oci8.xml, last change in rev 1.15 --> <refentry id="function.ocinlogon"> <refnamediv> @@ -49,46 +49,46 @@ $stmt = ociparse($conn, "create table scott.hallo (test varchar2(64))"); ociexecute($stmt); - echo $conn." created table\n\n"; + echo $conn . " created table\n\n"; } function drop_table($conn) { $stmt = ociparse($conn, "drop table scott.hallo"); ociexecute($stmt); - echo $conn." dropped table\n\n"; + echo $conn . " dropped table\n\n"; } function insert_data($conn) { $stmt = ociparse($conn, "insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))"); ociexecute($stmt, OCI_DEFAULT); - echo $conn." inserted hallo\n\n"; + echo $conn . " inserted hallo\n\n"; } function delete_data($conn) { $stmt = ociparse($conn, "delete from scott.hallo"); ociexecute($stmt, OCI_DEFAULT); - echo $conn." deleted hallo\n\n"; + echo $conn . " deleted hallo\n\n"; } function commit($conn) { ocicommit($conn); - echo $conn." committed\n\n"; + echo $conn . " committed\n\n"; } function rollback($conn) { ocirollback($conn); - echo $conn." rollback\n\n"; + echo $conn . " rollback\n\n"; } function select_data($conn) { $stmt = ociparse($conn, "select * from scott.hallo"); ociexecute($stmt, OCI_DEFAULT); - echo $conn."----selecting\n\n"; + echo $conn . "----selecting\n\n"; while (ocifetch($stmt)) { - echo $conn." <".ociresult($stmt, "TEST").">\n\n"; + echo $conn . " <" . ociresult($stmt, "TEST") . ">\n\n"; } - echo $conn."----done\n\n"; + echo $conn . "----done\n\n"; } create_table($c1); Index: phpdoc/en/reference/ovrimos/functions/ovrimos-result-all.xml diff -u phpdoc/en/reference/ovrimos/functions/ovrimos-result-all.xml:1.5 phpdoc/en/reference/ovrimos/functions/ovrimos-result-all.xml:1.6 --- phpdoc/en/reference/ovrimos/functions/ovrimos-result-all.xml:1.5 Mon Dec 15 11:52:38 2003 +++ phpdoc/en/reference/ovrimos/functions/ovrimos-result-all.xml Thu Dec 18 12:46:05 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/ovrimos.xml, last change in rev 1.1 --> <refentry id="function.ovrimos-result-all"> <refnamediv> @@ -64,14 +64,14 @@ $res = ovrimos_exec($conn, "select table_id, table_name from sys.tables where table_id = 1"); if ($res != 0) { - echo "Statement ok! cursor=".ovrimos_cursor($res)."\n"; + echo "Statement ok! cursor=" . ovrimos_cursor($res) . "\n"; $colnb = ovrimos_num_fields($res); echo "Output columns=" . $colnb . "\n"; for ($i=1; $i <= $colnb; $i++) { $name = ovrimos_field_name($res, $i); $type = ovrimos_field_type($res, $i); $len = ovrimos_field_len($res, $i); - echo "Column " . $i ." name=" . $name . " type=" . $type . " len=" . $len . "\n"; + echo "Column " . $i . " name=" . $name . " type=" . $type . " len=" . $len . "\n"; } ovrimos_result_all($res); ovrimos_free_result($res);