mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
[ticket/11469] Add example code to class documentation.
PHPBB3-11469
This commit is contained in:
parent
fc8bf3f3c7
commit
94a15f85a6
1 changed files with 15 additions and 0 deletions
|
@ -19,6 +19,21 @@ if (!defined('IN_PHPBB'))
|
|||
* Collects rows for insert into a database until the buffer size is reached.
|
||||
* Then flushes the buffer to the database and starts over again.
|
||||
*
|
||||
* Usage:
|
||||
* <code>
|
||||
* $buffer = new phpbb_db_sql_insert_buffer($db, 'test_table', 1234);
|
||||
*
|
||||
* while (do_stuff())
|
||||
* {
|
||||
* $buffer->insert(array(
|
||||
* 'column1' => 'value1',
|
||||
* 'column2' => 'value2',
|
||||
* ));
|
||||
* }
|
||||
*
|
||||
* $buffer->flush();
|
||||
* </code>
|
||||
*
|
||||
* @package dbal
|
||||
*/
|
||||
class phpbb_db_sql_insert_buffer
|
||||
|
|
Loading…
Add table
Reference in a new issue