Please enable JavaScript to view this site.

The manual for the JobRouter developer

Navigation: System activities > Configuration > XML structure

XML functions

Scroll Prev Top Next More

For each system activity a various number of functions can be defined.

DEVELO~1_img7

Each of these functions needs a unique ID, a name and a definition. Functions are defined in the XML configuration underneath the functions element. For the function CSV export we need the following code:

Function definition

...

<functions>

    <function id='exportCsv' name='CONST_SA_CSV_CSVEXPORT_NAME' description='CONST_SA_CSV_CSVEXPORT_DESCRIPTION'>

        ...

    </function>

</functions>

...

         

When you configure functions, you can also define language constants inside the language files. The language file "english.php" looks like this:

Contents of the language file english.php

<?php

define('CONST_SA_CSV_NAME', 'CSV Export');

define('CONST_SA_CSV_DESCRIPTION', 'This system activity can be used to export data from a subtable into a CSV file.');

define('CONST_SA_CSV', 'CSV');

define('CONST_SA_CSV_CSVEXPORT_NAME', 'Export data into a CSV');

define('CONST_SA_CSV_CSVEXPORT_DESCRIPTION', 'Data will be exported from a subtable into a CSV file.');