All Data Structures Functions Variables Pages
NotesDesignerWalkthroughHelperUtil.php
1 <?php
2  /*********************************************************************************
3  * Zurmo is a customer relationship management program developed by
4  * Zurmo, Inc. Copyright (C) 2017 Zurmo Inc.
5  *
6  * Zurmo is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY ZURMO, ZURMO DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  *
13  * Zurmo is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  *
23  * You can contact Zurmo, Inc. with a mailing address at 27 North Wacker Drive
24  * Suite 370 Chicago, IL 60606. or at email address contact@zurmo.com.
25  *
26  * The interactive user interfaces in original and modified versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  *
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the Zurmo
32  * logo and Zurmo copyright notice. If the display of the logo is not reasonably
33  * feasible for technical reasons, the Appropriate Legal Notices must display the words
34  * "Copyright Zurmo Inc. 2017. All rights reserved".
35  ********************************************************************************/
36 
41  {
42  public static function getNoteEditAndDetailsViewLayoutWithAllCustomFieldsPlaced()
43  {
44  return array(
45  'panels' => array(
46  array(
47  'title' => 'Panel Title',
48  'panelDetailViewOnly' => 1,
49  'rows' => array(
50  array('cells' =>
51  array(
52  array(
53  'element' => 'description',
54  ),
55  )
56  ),
57  array('cells' =>
58  array(
59  array(
60  'element' => 'occurredOnDateTime',
61  ),
62  )
63  ),
64  array('cells' =>
65  array(
66  array(
67  'element' => 'owner',
68  ),
69  )
70  ),
71  array('cells' =>
72  array(
73  array(
74  'element' => 'NoteActivityItems', // Not Coding Standard
75  ),
76  )
77  ),
78  array('cells' =>
79  array(
80  array(
81  'detailViewOnly' => true,
82  'element' => 'DateTimeCreatedUser',
83  ),
84  )
85  ),
86  array('cells' =>
87  array(
88  array(
89  'detailViewOnly' => true,
90  'element' => 'DateTimeModifiedUser',
91  ),
92  )
93  ),
94  array('cells' =>
95  array(
96  array(
97  'element' => 'checkboxCstm',
98  ),
99  )
100  ),
101  array('cells' =>
102  array(
103  array(
104  'element' => 'currencyCstm',
105  ),
106  )
107  ),
108  array('cells' =>
109  array(
110  array(
111  'element' => 'dateCstm',
112  ),
113  )
114  ),
115  array('cells' =>
116  array(
117  array(
118  'element' => 'datetimeCstm',
119  ),
120  )
121  ),
122  array('cells' =>
123  array(
124  array(
125  'element' => 'decimalCstm',
126  ),
127  )
128  ),
129  array('cells' =>
130  array(
131  array(
132  'element' => 'picklistCstm',
133  ),
134  )
135  ),
136  array('cells' =>
137  array(
138  array(
139  'element' => 'integerCstm',
140  ),
141  )
142  ),
143  array('cells' =>
144  array(
145  array(
146  'element' => 'multiselectCstm',
147  ),
148  )
149  ),
150  array('cells' =>
151  array(
152  array(
153  'element' => 'tagcloudCstm',
154  ),
155  )
156  ),
157  array('cells' =>
158  array(
159  array(
160  'element' => 'calcnumberCstm',
161  ),
162  )
163  ),
164  array('cells' =>
165  array(
166  array(
167  'element' => 'dropdowndepCstm',
168  ),
169  )
170  ),
171  array('cells' =>
172  array(
173  array(
174  'element' => 'phoneCstm',
175  ),
176  )
177  ),
178  array('cells' =>
179  array(
180  array(
181  'element' => 'radioCstm',
182  ),
183  )
184  ),
185  array('cells' =>
186  array(
187  array(
188  'element' => 'textCstm',
189  ),
190  )
191  ),
192  array('cells' =>
193  array(
194  array(
195  'element' => 'textareaCstm',
196  ),
197  )
198  ),
199  array('cells' =>
200  array(
201  array(
202  'element' => 'urlCstm',
203  ),
204  )
205  ),
206  ),
207  ),
208  ),
209  );
210  }
211 
212  public static function getNoteInlineEditViewLayoutWithAllCustomFieldsPlaced()
213  {
214  return array(
215  'panels' => array(
216  array(
217  'title' => 'Panel Title',
218  'panelDetailViewOnly' => 1,
219  'rows' => array(
220  array('cells' =>
221  array(
222  array(
223  'element' => 'description',
224  ),
225  )
226  ),
227  array('cells' =>
228  array(
229  array(
230  'element' => 'occurredOnDateTime',
231  ),
232  )
233  ),
234  array('cells' =>
235  array(
236  array(
237  'element' => 'owner',
238  ),
239  )
240  ),
241  array('cells' =>
242  array(
243  array(
244  'element' => 'NoteActivityItems', // Not Coding Standard
245  ),
246  )
247  ),
248  array('cells' =>
249  array(
250  array(
251  'detailViewOnly' => true,
252  'element' => 'DateTimeCreatedUser',
253  ),
254  )
255  ),
256  array('cells' =>
257  array(
258  array(
259  'detailViewOnly' => true,
260  'element' => 'DateTimeModifiedUser',
261  ),
262  )
263  ),
264  array('cells' =>
265  array(
266  array(
267  'element' => 'checkboxCstm',
268  ),
269  )
270  ),
271  array('cells' =>
272  array(
273  array(
274  'element' => 'currencyCstm',
275  ),
276  )
277  ),
278  array('cells' =>
279  array(
280  array(
281  'element' => 'dateCstm',
282  ),
283  )
284  ),
285  array('cells' =>
286  array(
287  array(
288  'element' => 'datetimeCstm',
289  ),
290  )
291  ),
292  array('cells' =>
293  array(
294  array(
295  'element' => 'decimalCstm',
296  ),
297  )
298  ),
299  array('cells' =>
300  array(
301  array(
302  'element' => 'picklistCstm',
303  ),
304  )
305  ),
306  array('cells' =>
307  array(
308  array(
309  'element' => 'integerCstm',
310  ),
311  )
312  ),
313  array('cells' =>
314  array(
315  array(
316  'element' => 'multiselectCstm',
317  ),
318  )
319  ),
320  array('cells' =>
321  array(
322  array(
323  'element' => 'tagcloudCstm',
324  ),
325  )
326  ),
327  array('cells' =>
328  array(
329  array(
330  'element' => 'calcnumberCstm',
331  ),
332  )
333  ),
334  array('cells' =>
335  array(
336  array(
337  'element' => 'countrylistCstm',
338  ),
339  )
340  ),
341  array('cells' =>
342  array(
343  array(
344  'element' => 'statelistCstm',
345  ),
346  )
347  ),
348  array('cells' =>
349  array(
350  array(
351  'element' => 'citylistCstm',
352  ),
353  )
354  ),
355  array('cells' =>
356  array(
357  array(
358  'element' => 'phoneCstm',
359  ),
360  )
361  ),
362  array('cells' =>
363  array(
364  array(
365  'element' => 'radioCstm',
366  ),
367  )
368  ),
369  array('cells' =>
370  array(
371  array(
372  'element' => 'textCstm',
373  ),
374  )
375  ),
376  array('cells' =>
377  array(
378  array(
379  'element' => 'textareaCstm',
380  ),
381  )
382  ),
383  array('cells' =>
384  array(
385  array(
386  'element' => 'urlCstm',
387  ),
388  )
389  ),
390  array('cells' =>
391  array(
392  array(
393  'element' => 'Null', // Not Coding Standard
394  ),
395  )
396  ),
397  ),
398  ),
399  ),
400  );
401  }
402 
407  {
408  return array(
409  'panels' => array(
410  array(
411  'rows' => array(
412  array('cells' =>
413  array(
414  array(
415  'element' => 'description',
416  ),
417  )
418  ),
419  array('cells' =>
420  array(
421  array(
422  'element' => 'owner',
423  ),
424  )
425  ),
426  array('cells' =>
427  array(
428  array(
429  'element' => 'occurredOnDateTime',
430  ),
431  )
432  ),
433  array('cells' =>
434  array(
435  array(
436  'element' => 'createdDateTime',
437  ),
438  )
439  ),
440  array('cells' =>
441  array(
442  array(
443  'element' => 'modifiedDateTime',
444  ),
445  )
446  ),
447  array('cells' =>
448  array(
449  array(
450  'element' => 'createdByUser',
451  ),
452  )
453  ),
454  array('cells' =>
455  array(
456  array(
457  'element' => 'modifiedByUser',
458  ),
459  )
460  ),
461  array('cells' =>
462  array(
463  array(
464  'element' => 'checkboxCstm',
465  ),
466  )
467  ),
468  array('cells' =>
469  array(
470  array(
471  'element' => 'currencyCstm',
472  ),
473  )
474  ),
475  array('cells' =>
476  array(
477  array(
478  'element' => 'dateCstm',
479  ),
480  )
481  ),
482  array('cells' =>
483  array(
484  array(
485  'element' => 'datetimeCstm',
486  ),
487  )
488  ),
489  array('cells' =>
490  array(
491  array(
492  'element' => 'decimalCstm',
493  ),
494  )
495  ),
496  array('cells' =>
497  array(
498  array(
499  'element' => 'picklistCstm',
500  ),
501  )
502  ),
503  array('cells' =>
504  array(
505  array(
506  'element' => 'integerCstm',
507  ),
508  )
509  ),
510  array('cells' =>
511  array(
512  array(
513  'element' => 'multiselectCstm',
514  ),
515  )
516  ),
517  array('cells' =>
518  array(
519  array(
520  'element' => 'tagcloudCstm',
521  ),
522  )
523  ),
524  array('cells' =>
525  array(
526  array(
527  'element' => 'calcnumberCstm',
528  ),
529  )
530  ),
531  array('cells' =>
532  array(
533  array(
534  'element' => 'countrylistCstm',
535  ),
536  )
537  ),
538  array('cells' =>
539  array(
540  array(
541  'element' => 'statelistCstm',
542  ),
543  )
544  ),
545  array('cells' =>
546  array(
547  array(
548  'element' => 'citylistCstm',
549  ),
550  )
551  ),
552  array('cells' =>
553  array(
554  array(
555  'element' => 'phoneCstm',
556  ),
557  )
558  ),
559  array('cells' =>
560  array(
561  array(
562  'element' => 'radioCstm',
563  ),
564  )
565  ),
566  array('cells' =>
567  array(
568  array(
569  'element' => 'textCstm',
570  ),
571  )
572  ),
573  array('cells' =>
574  array(
575  array(
576  'element' => 'textareaCstm',
577  ),
578  )
579  ),
580  array('cells' =>
581  array(
582  array(
583  'element' => 'urlCstm',
584  ),
585  )
586  ),
587  ),
588  ),
589  ),
590  );
591  }
592  }
593 ?>
Generated on Sun May 31 2020 07:10:33