Source for file DibiDataSource.php
Documentation is available at DibiDataSource.php
- 1: <?php
- 3: /**
- 4: * dibi - tiny'n'smart database abstraction layer
- 5: * ----------------------------------------------
- 6: *
- 11: */
- 15: /**
- 16: * Default implementation of IDataSource for dibi.
- 17: *
- 20: *
- 25: */
- 27: {
- 60: /**
- 63: */
- 65: {
- 70: }
- 72: }
- 76: /**
- 77: * Selects columns to query.
- 81: */
- 83: {
- 88: }
- 91: }
- 95: /**
- 96: * Adds conditions to query.
- 99: */
- 101: {
- 103: // TODO: not consistent with select and orderBy
- 107: }
- 110: }
- 114: /**
- 115: * Selects columns to order by.
- 119: */
- 121: {
- 126: }
- 129: }
- 133: /**
- 134: * Limits number of rows.
- 138: */
- 140: {
- 145: }
- 149: /**
- 150: * Returns the dibi connection.
- 152: */
- 154: {
- 156: }
- 160: /********************* executing ****************d*g**/
- 164: /**
- 165: * Returns (and queries) DibiResult.
- 167: */
- 169: {
- 172: }
- 174: }
- 178: /**
- 180: */
- 182: {
- 184: }
- 188: /**
- 189: * Generates, executes SQL query and fetches the single row.
- 191: */
- 193: {
- 195: }
- 199: /**
- 200: * Like fetch(), but returns only first field.
- 202: */
- 204: {
- 206: }
- 210: /**
- 211: * Fetches all records from table.
- 213: */
- 215: {
- 217: }
- 221: /**
- 222: * Fetches all records from table and returns associative tree.
- 225: */
- 227: {
- 229: }
- 233: /**
- 234: * Fetches all records from table like $key => $value pairs.
- 238: */
- 240: {
- 242: }
- 246: /**
- 247: * Discards the internal cache.
- 249: */
- 251: {
- 253: }
- 257: /********************* exporting ****************d*g**/
- 261: /**
- 262: * Returns this data source wrapped in DibiFluent object.
- 264: */
- 266: {
- 268: }
- 272: /**
- 273: * Returns this data source wrapped in DibiDataSource object.
- 275: */
- 277: {
- 279: }
- 283: /**
- 284: * Returns SQL query.
- 286: */
- 288: {
- 296: }
- 300: /********************* counting ****************d*g**/
- 304: /**
- 305: * Returns the number of rows in a given data source.
- 307: */
- 309: {
- 316: }
- 318: }
- 322: /**
- 323: * Returns the number of rows in a given data source.
- 325: */
- 327: {
- 332: }
- 334: }
- 336: }