1: <?php
2: /**
3: * PHP version 5
4: * @package generalDriver
5: * @author Christian Schiffler <c.schiffler@cyberspectrum.de>
6: * @author Stefan Heimes <stefan_heimes@hotmail.com>
7: * @author Tristan Lins <tristan.lins@bit3.de>
8: * @copyright The MetaModels team.
9: * @license LGPL.
10: * @filesource
11: */
12:
13: namespace DcGeneral\Data;
14:
15: /**
16: * This class is a holder for all const vars.
17: */
18: class DCGE
19: {
20: /**
21: * Single language
22: */
23:
24: const LANGUAGE_SL = 1;
25:
26: /**
27: * Multi language
28: */
29: const LANGUAGE_ML = 2;
30:
31: /**
32: * Move/Insert after Start
33: */
34: const INSERT_AFTER_START = 'start';
35:
36: /**
37: * Move/Insert after End
38: */
39: const INSERT_AFTER_END = 'end';
40:
41: /**
42: * Move/Insert into root
43: */
44: const INSERT_INTO_ROOT = 'root';
45:
46: /**
47: * DataProvider sorting order asc
48: */
49: const MODEL_SORTING_ASC = 'ASC';
50:
51: /**
52: * DataProvider sorting order desc
53: */
54: const MODEL_SORTING_DESC = 'DESC';
55:
56: /**
57: * Sorting unsorted.
58: */
59: const MODE_NON_SORTING = 0;
60:
61: /**
62: * Sorting by a fixed field.
63: */
64: const MODE_FIXED_FIELD = 1;
65:
66: /**
67: * Sorting by a variable field.
68: */
69: const MODE_VARIABLE_FIELD = 2;
70:
71: /**
72: * Sorting by the parent record.
73: */
74: const MODE_PARENT_VIEW = 3;
75:
76: // TODO: SH: CS: mode 4 missing, no idea for a good name.
77: /**
78: * Sorting as a simple tree.
79: */
80: const MODE_SIMPLE_TREEVIEW = 5;
81:
82: /**
83: * Sorting as a parented tree.
84: */
85: const MODE_PARENT_TREEVIEW = 6;
86:
87: /**
88: * Title of an item in a tree view.
89: */
90: const TREE_VIEW_TITLE = 'dc_gen_tv_title';
91:
92: /**
93: * The current level in a tree view.
94: */
95: const TREE_VIEW_LEVEL = 'dc_gen_tv_level';
96:
97: /**
98: * Is the tree item open.
99: */
100: const TREE_VIEW_IS_OPEN = 'dc_gen_tv_open';
101:
102: /**
103: * Child Collection.
104: */
105: const TREE_VIEW_CHILD_COLLECTION = 'dc_gen_children_collection';
106:
107: /**
108: * State if we have children.
109: */
110: const TREE_VIEW_HAS_CHILDS = 'dc_gen_tv_children';
111: const MODEL_BUTTONS = '%buttons%';
112: const MODEL_LABEL_ARGS = '%args%';
113: const MODEL_LABEL_VALUE = '%content%';
114: const MODEL_GROUP_HEADER = '%header%';
115: const MODEL_GROUP_VALUE = '%group%';
116: const MODEL_CLASS = '%class%';
117:
118: /**
119: * State if the model is changed
120: */
121: const MODEL_IS_CHANGED = 'isChanged';
122:
123: // TODO: Merge with MODEL_CLASS?
124: const MODEL_EVEN_ODD_CLASS = '%rowClass%';
125:
126: /**
127: * parents id value.
128: */
129: const MODEL_PID = 'pid';
130:
131: /**
132: * parents provider name.
133: */
134: const MODEL_PTABLE = 'ptable';
135: }
136: