Source for file interfaces.php
Documentation is available at interfaces.php
- 1: <?php
- 3: /**
- 4: * dibi - tiny'n'smart database abstraction layer
- 5: * ----------------------------------------------
- 6: *
- 11: */
- 15: /**
- 16: * Provides an interface between a dataset and data-aware components.
- 18: */
- 20: {
- 21: //function IteratorAggregate::getIterator();
- 22: //function Countable::count();
- 23: }
- 29: /**
- 30: * Defines method that must profiler implement.
- 32: */
- 34: {
- 35: /**#@+ event type */
- 48: /**#@-*/
- 50: /**
- 51: * Before event notification.
- 56: */
- 59: /**
- 60: * After event notification.
- 64: */
- 67: /**
- 68: * After exception notification.
- 71: */
- 74: }
- 80: /**
- 81: * dibi driver interface.
- 82: *
- 85: */
- 87: {
- 89: /**
- 90: * Connects to a database.
- 94: */
- 97: /**
- 89: /**
- 90: * Disconnects from a database.
- 101: */
- 104: /**
- 105: * Internal: Executes the SQL query.
- 109: */
- 112: /**
- 113: * Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
- 115: */
- 118: /**
- 119: * Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
- 121: */
- 124: /**
- 125: * Begins a transaction (if supported).
- 129: */
- 132: /**
- 133: * Commits statements in a transaction.
- 137: */
- 140: /**
- 141: * Rollback changes in a transaction.
- 145: */
- 148: /**
- 149: * Returns the connection resource.
- 151: */
- 154: /**
- 155: * Returns the connection reflector.
- 157: */
- 160: /**
- 161: * Encodes data for use in a SQL statement.
- 166: */
- 169: /**
- 170: * Encodes string for use in a LIKE statement.
- 174: */
- 177: /**
- 178: * Injects LIMIT/OFFSET to the SQL query.
- 183: */
- 186: }
- 192: /**
- 193: * dibi result set driver interface.
- 194: *
- 197: */
- 199: {
- 201: /**
- 202: * Returns the number of rows in a result set.
- 204: */
- 207: /**
- 208: * Moves cursor position without fetching row.
- 212: */
- 215: /**
- 216: * Fetches the row at current position and moves the internal cursor to the next position.
- 220: */
- 223: /**
- 224: * Frees the resources allocated for this result set.
- 227: */
- 230: /**
- 231: * Returns metadata for all columns in a result set.
- 232: * @return array of {name, nativetype [, table, fullname, (int) size, (bool) nullable, (mixed) default, (bool) autoincrement, (array) vendor ]}
- 233: */
- 236: /**
- 237: * Returns the result set resource.
- 239: */
- 242: /**
- 243: * Decodes data from result set.
- 248: */
- 251: }
- 257: /**
- 258: * dibi driver reflection.
- 259: *
- 262: */
- 264: {
- 266: /**
- 267: * Returns list of tables.
- 269: */
- 272: /**
- 273: * Returns metadata for all columns in a table.
- 275: * @return array of {name, nativetype [, table, fullname, (int) size, (bool) nullable, (mixed) default, (bool) autoincrement, (array) vendor ]}
- 276: */
- 279: /**
- 280: * Returns metadata for all indexes in a table.
- 283: */
- 286: /**
- 287: * Returns metadata for all foreign keys in a table.
- 290: */
- 293: }