| 1 | <?php | 
|---|
| 2 |  | 
|---|
| 3 | /** | 
|---|
| 4 |  * DocumentFormOnCloseScript | 
|---|
| 5 |  * | 
|---|
| 6 |  * @author Tomasz Świenty | 
|---|
| 7 |  * @version 0.1 | 
|---|
| 8 |  * @copyright Copyright (c) eDokumenty | 
|---|
| 9 |  */ | 
|---|
| 10 | final class DocumentFormOnCloseScript { | 
|---|
| 11 |  | 
|---|
| 12 |  | 
|---|
| 13 |     /** | 
|---|
| 14 |      * @param array $args | 
|---|
| 15 |      * Array ( | 
|---|
| 16 |      *      [parentClass] => DocumentForm (string => string) | 
|---|
| 17 |      *      [action] => onClose (string => string) | 
|---|
| 18 |      *      [container] => (object) DocumentForm obiekt formularza dokumentu (DialogForm) | 
|---|
| 19 |      * ) | 
|---|
| 20 |      */ | 
|---|
| 21 |     public static function execute(array $args) { | 
|---|
| 22 |  | 
|---|
| 23 |         // $data = $args['container']->getSData(); | 
|---|
| 24 |         // isset($data['doc_id']) ... | 
|---|
| 25 |  | 
|---|
| 26 |     } | 
|---|
| 27 |  | 
|---|
| 28 | } | 
|---|
| 29 |  | 
|---|
| 30 | if (isset($args)) { | 
|---|
| 31 |     DocumentFormOnCloseScript::execute($args); | 
|---|
| 32 | } | 
|---|