| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /** |
|---|
| 4 | * ProcessAfterInsert |
|---|
| 5 | * |
|---|
| 6 | * @author Tomasz Świenty |
|---|
| 7 | * @version 0.1 |
|---|
| 8 | * @copyright Copyright (c) eDokumenty |
|---|
| 9 | */ |
|---|
| 10 | final class ProcessAfterInsert { |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | public static function init($args) { |
|---|
| 15 | |
|---|
| 16 | if (!isset($args['container'])) { |
|---|
| 17 | return FALSE; |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | if (!is_object($args['container']) OR !is_a($args['container'], 'Bean')) { |
|---|
| 21 | return FALSE; |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | // dane z beana |
|---|
| 25 | $data = $args['container']->data; |
|---|
| 26 | |
|---|
| 27 | $db = PgManager::getInstance(); |
|---|
| 28 | |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | if (isset($args)) { |
|---|
| 34 | ProcessAfterInsert::init($args); |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | ?> |
|---|