2e3c1e26706081a369101c4494e6e7b327705bc6
[atutor.git] / docs / mods / _standard / patcher / include / patch_xml_template.inc.php
1 <?php\r
2 /************************************************************************/\r
3 /* ATutor                                                               */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2002-2010                                              */\r
6 /* Inclusive Design Institute                                           */\r
7 /* http://atutor.ca                                                     */\r
8 /*                                                                      */\r
9 /* This program is free software. You can redistribute it and/or        */\r
10 /* modify it under the terms of the GNU General Public License          */\r
11 /* as published by the Free Software Foundation.                        */\r
12 /************************************************************************/\r
13 // $Id: \r
14 \r
15 $patch_xml =\r
16 '<?xml version="1.0" encoding="ISO-8859-1"?> \r
17 <patch>\r
18         <atutor_patch_id>{ATUTOR_PATCH_ID}</atutor_patch_id>\r
19         <applied_version>{APPLIED_VERSION}</applied_version>\r
20         <description>{DESCRIPTION}</description>\r
21         <dependent_patches>\r
22 {DEPENDENT_PATCHES}\r
23         </dependent_patches>\r
24 \r
25         <sql>\r
26 {SQL}\r
27         </sql>\r
28 \r
29         <files>\r
30 {FILES}\r
31         </files>\r
32 </patch>';\r
33 \r
34 $dependent_patch_xml = \r
35 '               <dependent_patch>{DEPENDENT_PATCH}</dependent_patch>\r
36 ';      \r
37 \r
38 $patch_file_xml = \r
39 '               <file>\r
40                         <action>{ACTION}</action>\r
41                         <name>{NAME}</name>\r
42                         <location>{LOCATION}</location>\r
43 {ACTION_DETAILS}\r
44                 </file>\r
45 \r
46 ';      \r
47 \r
48 $patch_action_detail_xml = \r
49 '                       <action_detail>\r
50                                 <type>{TYPE}</type>\r
51                                 <code_from>{CODE_FROM}</code_from>\r
52                                 <code_to>{CODE_TO}</code_to>\r
53                         </action_detail>\r
54 \r
55 ';\r
56 ?>\r