diff --git a/reference/pdo/book.xml b/reference/pdo/book.xml index 9fa0bd9709..374aa0f732 100644 --- a/reference/pdo/book.xml +++ b/reference/pdo/book.xml @@ -1,5 +1,5 @@ - + @@ -37,12 +37,18 @@ &reference.pdo.setup; &reference.pdo.constants; + &reference.pdo.connections; &reference.pdo.transactions; &reference.pdo.prepared-statements; &reference.pdo.error-handling; &reference.pdo.lobs; - &reference.pdo.reference; + + &reference.pdo.pdo; + &reference.pdo.pdostatement; + PDO Drivers diff --git a/reference/pdo/pdo.xml b/reference/pdo/pdo.xml new file mode 100644 index 0000000000..6ac091a6ca --- /dev/null +++ b/reference/pdo/pdo.xml @@ -0,0 +1,66 @@ + + + + + The PDO class + PDO + + + + +
+ &reftitle.intro; + + Represents a connection between PHP and a database server. + +
+ + +
+ &reftitle.classsynopsis; + + + + PDO + + + + + PDO + + + + + + + + +
+ +
+ + &reference.pdo.entities.pdo; + +
+ + + diff --git a/reference/pdo/pdoexception.xml b/reference/pdo/pdoexception.xml new file mode 100644 index 0000000000..01a64fd34a --- /dev/null +++ b/reference/pdo/pdoexception.xml @@ -0,0 +1,130 @@ + + + + + The PDOException class + PDOException + + + + +
+ &reftitle.intro; + + Represents an error raised by PDO. You should not throw a + PDOException from your own code. + See Exceptions for more + information about Exceptions in PHP. + +
+ + +
+ &reftitle.classsynopsis; + + + + PDOException + + + + + PDOException + + + + extends + RuntimeException + + + + + + Properties + + public + string + errorInfo + + + protected + string + message + + + protected + string + code + + + + + + + + +
+ + +
+ &reftitle.properties; + + + errorInfo + + + Corresponds to PDO::errorInfo or + PDOStatement::errorInfo + + + + + message + + + Textual error message. Exception::getMessage to access it. + + + + code + + + SQLSTATE error code. Use + Exception::getCode to access it. + + + + +
+ + +
+ + &reference.pdo.entities.pdoexception; + +
+ + + diff --git a/reference/pdo/pdostatement.xml b/reference/pdo/pdostatement.xml new file mode 100644 index 0000000000..1739348ed4 --- /dev/null +++ b/reference/pdo/pdostatement.xml @@ -0,0 +1,71 @@ + + + + + The PDOStatement class + PDOStatement + + + + +
+ &reftitle.intro; + + Represents a prepared statement and, after the statement is executed, an + associated result set. + +
+ + +
+ &reftitle.classsynopsis; + + + + PDOStatement + + + + + PDOStatement + + + + Traversable + + + + + + + + +
+ +
+ + &reference.pdo.entities.pdostatement; + +
+ + +