| | 566 | =head1 Callbacks |
| | 567 | |
| | 568 | MT::ObjectDriver::Driver::DBI fires the following callbacks, |
| | 569 | or "triggers" when it loads data from the database. |
| | 570 | |
| | 571 | =over 4 |
| | 572 | |
| | 573 | =item * post_select_aggregate |
| | 574 | |
| | 575 | callback($class, \$value) |
| | 576 | |
| | 577 | Callback issued prior to returning the value that is retrieved |
| | 578 | as the result of select_one method. |
| | 579 | |
| | 580 | =item * post_group_by |
| | 581 | |
| | 582 | callback($class, \$value, \@retrunvals) |
| | 583 | |
| | 584 | Callback issued prior to returning the number and additional return |
| | 585 | values that are retrieved as the result of grouping query. The value |
| | 586 | in the $value parameter is what was calculated from the database. |
| | 587 | For example, in count_group_by method, $value holds the count for each |
| | 588 | group, while in sum_group_by method, $value holds the sum for each group. |
| | 589 | @returnvals parameter holds the additional data that wiil be retured. |
| | 590 | |