Documentation/Index/CustomWidgetForReport: CustomScriptForReport89.inc

Plik CustomScriptForReport89.inc, 634 bytes (dodany przez TS, 7 years temu)
xx
Line 
1<?php
2
3/**
4 * CustomScriptForReport89
5 *
6 * @author Tomasz Świenty
7 * @version 0.2
8 * @copyright Copyright (c) eDokumenty
9 */
10final class CustomScriptForReport89 {
11
12
13
14    public static function init($args) {
15
16        if (!isset($args['container']->name)) {
17            return FALSE;
18        }
19
20        // $args['container']->afterSubmit; // odświeżenie listy (raportu tylko w custom module)
21       
22        if ($args['container']->name == 'name_1') {
23            $args['container']->data = $args['container']->rowData['name_1'].' - '.rand();
24        }
25
26    }
27
28}
29
30if (isset($args)) {
31    CustomScriptForReport89::init($args);
32}
33
34?>