xml version encoding UTF-8 backend class description Products descript

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<backend>
<class>
<description>Products</description>
<fields>
<field>
<name>id</name>
<type>protected</type>
<default>0</default>
</field>
<field>
<name>title</name>
<type>protected</type>
<default></default>
</field>
</fields>
<methods>
<method>
<description>Add New</description>
<name>add_new</name>
<type>public</type>
<params>
<param>
<name>id</name>
<type>int</type>
</param>
<param>
<name>record</name>
<type>array</type>
</param>
<param>
<name>link</name>
<type>string</type>
</param>
</params>
<queries>
<query>SELECT id, title FROM `project` WHERE id = {id};</query>
<query>SELECT id FROM `project` WHERE id = {id};</query>
<insert>
<table>project</table>
<data>record</data>
</insert>
<update>
<table>project</table>
<where>id = {id}</where>
<data>record</data>
</update>
<update>
<table>project</table>
<where>link = {link}</where>
<data>record</data>
</update>
<get>
<where>
<key>id</key>
<value>id</value>
</where>
<where>
<key>record</key>
<value>record</value>
</where>
<limit>{id}, 10</limit>
<table>tablename</table>
</get>
</queries>
<return>QUERY_RESULT_OBJECTS_ARRAY[6]</return>
</method>
</methods>
</class>
</backend>