Documentation/Index/RegisterCorrespondenceDialogScripts: CustomScriptTestAfterCreate.inc
| Plik CustomScriptTestAfterCreate.inc, 431 bytes (dodany przez TS, 11 years temu) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | final class CustomScriptTestAfterCreate { |
| 4 | |
| 5 | |
| 6 | |
| 7 | public static function init($args) { |
| 8 | |
| 9 | if (isset($args['container'])) { |
| 10 | $args['container']->elements['target']->query = 'SELECT orunid, ndenam FROM organization_units WHERE orunid < 5 AND orunid > 0'; |
| 11 | $args['container']->elements['target']->update(); |
| 12 | } |
| 13 | |
| 14 | } |
| 15 | |
| 16 | } |
| 17 | |
| 18 | if (isset($args)) { |
| 19 | CustomScriptTestAfterCreate::init($args); |
| 20 | } |
| 21 | |
| 22 | ?> |
