cvs: phpdoc /en/reference/oci8/functions ocilogon.xml ocinlogon.xml

From: Date: Thu, 15 Jan 2004 12:42:58 +0000
Subject: cvs: phpdoc /en/reference/oci8/functions ocilogon.xml ocinlogon.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358210@lists.php.net to get a copy of this message
didou Thu Jan 15 07:42:58 2004 EDT Modified files: /phpdoc/en/reference/oci8/functions ocilogon.xml ocinlogon.xml Log: CS : Function declarations follow the 'one true brace' convention Index: phpdoc/en/reference/oci8/functions/ocilogon.xml diff -u phpdoc/en/reference/oci8/functions/ocilogon.xml:1.8 phpdoc/en/reference/oci8/functions/ocilogon.xml:1.9 --- phpdoc/en/reference/oci8/functions/ocilogon.xml:1.8 Thu Dec 18 12:46:04 2003 +++ phpdoc/en/reference/oci8/functions/ocilogon.xml Thu Jan 15 07:42:58 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/oci8.xml, last change in rev 1.2 --> <refentry id="function.ocilogon"> <refnamediv> @@ -41,42 +41,49 @@ $c1 = ocilogon("scott", "tiger", $db); $c2 = ocilogon("scott", "tiger", $db); -function create_table($conn) { +function create_table($conn) +{ $stmt = ociparse($conn, "create table scott.hallo (test varchar2(64))"); ociexecute($stmt); echo $conn . " created table\n\n"; } -function drop_table($conn) { +function drop_table($conn) +{ $stmt = ociparse($conn, "drop table scott.hallo"); ociexecute($stmt); echo $conn . " dropped table\n\n"; } -function insert_data($conn) { +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"; } -function delete_data($conn) { +function delete_data($conn) +{ $stmt = ociparse($conn, "delete from scott.hallo"); ociexecute($stmt, OCI_DEFAULT); echo $conn . " deleted hallo\n\n"; } -function commit($conn) { +function commit($conn) +{ ocicommit($conn); echo $conn . " committed\n\n"; } -function rollback($conn) { +function rollback($conn) +{ ocirollback($conn); echo $conn . " rollback\n\n"; } -function select_data($conn) { +function select_data($conn) +{ $stmt = ociparse($conn, "select * from scott.hallo"); ociexecute($stmt, OCI_DEFAULT); echo $conn."----selecting\n\n"; Index: phpdoc/en/reference/oci8/functions/ocinlogon.xml diff -u phpdoc/en/reference/oci8/functions/ocinlogon.xml:1.7 phpdoc/en/reference/oci8/functions/ocinlogon.xml:1.8 --- phpdoc/en/reference/oci8/functions/ocinlogon.xml:1.7 Thu Dec 18 12:46:04 2003 +++ phpdoc/en/reference/oci8/functions/ocinlogon.xml Thu Jan 15 07:42:58 2004 @@ -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.15 --> <refentry id="function.ocinlogon"> <refnamediv> @@ -45,43 +45,50 @@ $c1 = ocilogon("scott", "tiger", $db); $c2 = ocinlogon("scott", "tiger", $db); -function create_table($conn) { +function create_table($conn) +{ $stmt = ociparse($conn, "create table scott.hallo (test varchar2(64))"); ociexecute($stmt); echo $conn . " created table\n\n"; } -function drop_table($conn) { +function drop_table($conn) +{ $stmt = ociparse($conn, "drop table scott.hallo"); ociexecute($stmt); echo $conn . " dropped table\n\n"; } -function insert_data($conn) { +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"; } -function delete_data($conn) { +function delete_data($conn) +{ $stmt = ociparse($conn, "delete from scott.hallo"); ociexecute($stmt, OCI_DEFAULT); echo $conn . " deleted hallo\n\n"; } -function commit($conn) { +function commit($conn) +{ ocicommit($conn); echo $conn . " committed\n\n"; } -function rollback($conn) { +function rollback($conn) +{ ocirollback($conn); echo $conn . " rollback\n\n"; } -function select_data($conn) { +function select_data($conn) +{ $stmt = ociparse($conn, "select * from scott.hallo"); ociexecute($stmt, OCI_DEFAULT); echo $conn . "----selecting\n\n";

« previous php.doc (#969358210) next »