diff --git a/documentation/manual/en/module_specs/Zend_Db-Adapter.xml b/documentation/manual/en/module_specs/Zend_Db-Adapter.xml index d92106f63cc..0f77da2e981 100644 --- a/documentation/manual/en/module_specs/Zend_Db-Adapter.xml +++ b/documentation/manual/en/module_specs/Zend_Db-Adapter.xml @@ -29,16 +29,93 @@ parameters. Here is a table for the - - driver required Mysqli, Sqlsrv, Pdo_Sqlite, Pdo_Mysql, Pdo-OtherPdoDriver - database generally required the name of the database (schema) - username generally required the connection username - password generally required the connection password - hostname not generally requried the ip address or hostname to connect to - port not generally required the port to connect to (if applicable) - characterset not generally required the character set to use - others* - + Connection Array Keys + + + + + Name + Required + Notes + + + + driver + + + required + + + Mysqli, Sqlsrv, Pdo_Sqlite, Pdo_Mysql, Pdo-OtherPdoDriver + + + + + database + + + generally required + + + the name of the database (schema) + + + + + username + + + generally required + + + the connection username + + + + + password + + + generally required + + + the connection password + + + + + hostname + + + not generally requried + + + the ip address or hostname to connect to + + + + + port + + + not generally requried + + + not generally required the port to connect to (if applicable) + + + + + characterset + + + not generally requried + + + not generally required the character set to use + + +
* other names will work as well. Effectively, if the PHP manual @@ -133,15 +210,43 @@ The above example will go through the following steps: - - 1. create a new Statement object - 2. prepare an array into a ParameterContainer if necessary - 3. inject the ParameterContainer into the Statement object - 4. execute the Statement object, producing a Result object - 5. check the Result object to check if the supplied sql was a "query", or a result set producing statement - 6. if it is a result set producing query, clone the ResultSet prototype, inject Result as datasource, return it - 7. else, return the Result - + + + + create a new Statement object + + + + + prepare an array into a ParameterContainer if necessary + + + + + inject the ParameterContainer into the Statement object + + + + + execute the Statement object, producing a Result object + + + + + check the Result object to check if the supplied sql was a "query", or a result set producing statement + + + + + if it is a result set producing query, clone the ResultSet prototype, inject Result as datasource, return it + + + + + else, return the Result + + + diff --git a/documentation/manual/en/module_specs/Zend_Db_Sql.xml b/documentation/manual/en/module_specs/Zend_Db_Sql.xml index 78dc84d050e..7f77638576d 100644 --- a/documentation/manual/en/module_specs/Zend_Db_Sql.xml +++ b/documentation/manual/en/module_specs/Zend_Db_Sql.xml @@ -11,13 +11,36 @@ The primary objects that to interact with are: - Zend\Db\Sql\Select - SELECT abstraction - Zend\Db\Sql\Insert - INSERT abstraction - Zend\Db\Sql\Update - UPDATE abstraction - Zend\Db\Sql\Delete - DELETE abstraction - Zend\Db\Sql\Where - WHERE abstraction to be used with Select, Update and Delete + + + + Zend\Db\Sql\Select - SELECT abstraction + + + + + Zend\Db\Sql\Insert - INSERT abstraction + + + + + Zend\Db\Sql\Update - UPDATE abstraction + + + + + Zend\Db\Sql\Delete - DELETE abstraction + + + + + Zend\Db\Sql\Where - WHERE abstraction to be used with Select, Update and Delete + + + + Each of these objects present their API in a fluent style, for example the method signature from($table) instead of setTable($table).