Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
ProductTemplatesDesignerWalkthroughHelperUtil.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 getProductTemplateEditAndDetailsViewLayoutWithAllCustomFieldsPlaced()
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' => 'name',
54  ),
55  )
56  ),
57  array('cells' =>
58  array(
59  array(
60  'element' => 'description',
61  ),
62  )
63  ),
64  array('cells' =>
65  array(
66  array(
67  'element' => 'priceFrequency',
68  ),
69  )
70  ),
71  array('cells' =>
72  array(
73  array(
74  'element' => 'cost',
75  ),
76  )
77  ),
78  array('cells' =>
79  array(
80  array(
81  'element' => 'listPrice',
82  ),
83  )
84  ),
85  array('cells' =>
86  array(
87  array(
88  'element' => 'sellPrice',
89  ),
90  )
91  ),
92  array('cells' =>
93  array(
94  array(
95  'element' => 'type',
96  ),
97  )
98  ),
99  array('cells' =>
100  array(
101  array(
102  'element' => 'status',
103  ),
104  )
105  ),
106  array('cells' =>
107  array(
108  array(
109  'element' => 'sellPriceFormula',
110  ),
111  )
112  ),
113  array('cells' =>
114  array(
115  array(
116  'detailViewOnly' => true,
117  'element' => 'DateTimeCreatedUser',
118  ),
119  )
120  ),
121  array('cells' =>
122  array(
123  array(
124  'detailViewOnly' => true,
125  'element' => 'DateTimeModifiedUser',
126  ),
127  )
128  ),
129  array('cells' =>
130  array(
131  array(
132  'element' => 'checkboxCstm',
133  ),
134  )
135  ),
136  array('cells' =>
137  array(
138  array(
139  'element' => 'currencyCstm',
140  ),
141  )
142  ),
143  array('cells' =>
144  array(
145  array(
146  'element' => 'dateCstm',
147  ),
148  )
149  ),
150  array('cells' =>
151  array(
152  array(
153  'element' => 'datetimeCstm',
154  ),
155  )
156  ),
157  array('cells' =>
158  array(
159  array(
160  'element' => 'decimalCstm',
161  ),
162  )
163  ),
164  array('cells' =>
165  array(
166  array(
167  'element' => 'picklistCstm',
168  ),
169  )
170  ),
171  array('cells' =>
172  array(
173  array(
174  'element' => 'integerCstm',
175  ),
176  )
177  ),
178  array('cells' =>
179  array(
180  array(
181  'element' => 'multiselectCstm',
182  ),
183  )
184  ),
185  array('cells' =>
186  array(
187  array(
188  'element' => 'tagcloudCstm',
189  ),
190  )
191  ),
192  array('cells' =>
193  array(
194  array(
195  'element' => 'calcnumberCstm',
196  ),
197  )
198  ),
199  array('cells' =>
200  array(
201  array(
202  'element' => 'dropdowndepCstm',
203  ),
204  )
205  ),
206  array('cells' =>
207  array(
208  array(
209  'element' => 'phoneCstm',
210  ),
211  )
212  ),
213  array('cells' =>
214  array(
215  array(
216  'element' => 'radioCstm',
217  ),
218  )
219  ),
220  array('cells' =>
221  array(
222  array(
223  'element' => 'textCstm',
224  ),
225  )
226  ),
227  array('cells' =>
228  array(
229  array(
230  'element' => 'textareaCstm',
231  ),
232  )
233  ),
234  array('cells' =>
235  array(
236  array(
237  'element' => 'urlCstm',
238  ),
239  )
240  ),
241  ),
242  ),
243  ),
244  );
245  }
246 
247  public static function getProductTemplatesSearchViewLayoutWithAllCustomFieldsPlaced()
248  {
249  return array(
250  'panels' => array(
251  array(
252  'title' => 'Basic Search',
253  'panelDetailViewOnly' => 1,
254  'rows' => array(
255  array('cells' =>
256  array(
257  array(
258  'element' => 'checkboxCstm',
259  ),
260  )
261  ),
262  array('cells' =>
263  array(
264  array(
265  'element' => 'currencyCstm',
266  ),
267  )
268  ),
269  array('cells' =>
270  array(
271  array(
272  'element' => 'dateCstm__Date',
273  ),
274  )
275  ),
276  array('cells' =>
277  array(
278  array(
279  'element' => 'datetimeCstm__DateTime',
280  ),
281  )
282  ),
283  array('cells' =>
284  array(
285  array(
286  'element' => 'decimalCstm',
287  ),
288  )
289  ),
290  array('cells' =>
291  array(
292  array(
293  'element' => 'picklistCstm',
294  ),
295  )
296  ),
297  array('cells' =>
298  array(
299  array(
300  'element' => 'integerCstm',
301  ),
302  )
303  ),
304  array('cells' =>
305  array(
306  array(
307  'element' => 'multiselectCstm',
308  ),
309  )
310  ),
311  array('cells' =>
312  array(
313  array(
314  'element' => 'tagcloudCstm',
315  ),
316  )
317  ),
318  array('cells' =>
319  array(
320  array(
321  'element' => 'countrylistCstm',
322  ),
323  )
324  ),
325  array('cells' =>
326  array(
327  array(
328  'element' => 'statelistCstm',
329  ),
330  )
331  ),
332  array('cells' =>
333  array(
334  array(
335  'element' => 'citylistCstm',
336  ),
337  )
338  ),
339  array('cells' =>
340  array(
341  array(
342  'element' => 'phoneCstm',
343  ),
344  )
345  ),
346  array('cells' =>
347  array(
348  array(
349  'element' => 'radioCstm',
350  ),
351  )
352  ),
353  array('cells' =>
354  array(
355  array(
356  'element' => 'textCstm',
357  ),
358  )
359  ),
360  array('cells' =>
361  array(
362  array(
363  'element' => 'textareaCstm',
364  ),
365  )
366  ),
367  array('cells' =>
368  array(
369  array(
370  'element' => 'urlCstm',
371  ),
372  )
373  ),
374  array('cells' =>
375  array(
376  array(
377  'element' => 'probability',
378  ),
379  )
380  ),
381  ),
382  ),
383  array(
384  'title' => 'Advanced Search',
385  'panelDetailViewOnly' => 1,
386  'rows' => array(
387  array('cells' =>
388  array(
389  array(
390  'element' => 'name',
391  ),
392  )
393  ),
394  array('cells' =>
395  array(
396  array(
397  'element' => 'description',
398  ),
399  )
400  ),
401  array('cells' =>
402  array(
403  array(
404  'element' => 'priceFrequency',
405  ),
406  )
407  ),
408  array('cells' =>
409  array(
410  array(
411  'element' => 'cost',
412  ),
413  )
414  ),
415  array('cells' =>
416  array(
417  array(
418  'element' => 'listPrice',
419  ),
420  )
421  ),
422  array('cells' =>
423  array(
424  array(
425  'element' => 'sellPrice',
426  ),
427  )
428  ),
429  array('cells' =>
430  array(
431  array(
432  'element' => 'type',
433  ),
434  )
435  ),
436  array('cells' =>
437  array(
438  array(
439  'element' => 'status',
440  ),
441  )
442  ),
443  array('cells' =>
444  array(
445  array(
446  'element' => 'sellPriceFormula',
447  ),
448  )
449  ),
450  array('cells' =>
451  array(
452  array(
453  'element' => 'createdDateTime__DateTime',
454  ),
455  )
456  ),
457  array('cells' =>
458  array(
459  array(
460  'element' => 'modifiedDateTime__DateTime',
461  ),
462  )
463  ),
464  array('cells' =>
465  array(
466  array(
467  'element' => 'createdByUser',
468  ),
469  )
470  ),
471  array('cells' =>
472  array(
473  array(
474  'element' => 'modifiedByUser',
475  ),
476  )
477  ),
478  ),
479  ),
480  ),
481  );
482  }
483 
488  {
489  return array(
490  'panels' => array(
491  array(
492  'rows' => array(
493  array('cells' =>
494  array(
495  array(
496  'element' => 'name',
497  ),
498  )
499  ),
500  array('cells' =>
501  array(
502  array(
503  'element' => 'description',
504  ),
505  )
506  ),
507  array('cells' =>
508  array(
509  array(
510  'element' => 'priceFrequency',
511  ),
512  )
513  ),
514  array('cells' =>
515  array(
516  array(
517  'element' => 'cost',
518  ),
519  )
520  ),
521  array('cells' =>
522  array(
523  array(
524  'element' => 'listPrice',
525  ),
526  )
527  ),
528  array('cells' =>
529  array(
530  array(
531  'element' => 'sellPrice',
532  ),
533  )
534  ),
535  array('cells' =>
536  array(
537  array(
538  'element' => 'type',
539  ),
540  )
541  ),
542  array('cells' =>
543  array(
544  array(
545  'element' => 'status',
546  ),
547  )
548  ),
549  array('cells' =>
550  array(
551  array(
552  'element' => 'sellPriceFormula',
553  ),
554  )
555  ),
556  array('cells' =>
557  array(
558  array(
559  'element' => 'createdDateTime',
560  ),
561  )
562  ),
563  array('cells' =>
564  array(
565  array(
566  'element' => 'modifiedDateTime',
567  ),
568  )
569  ),
570  array('cells' =>
571  array(
572  array(
573  'element' => 'createdByUser',
574  ),
575  )
576  ),
577  array('cells' =>
578  array(
579  array(
580  'element' => 'modifiedByUser',
581  ),
582  )
583  ),
584  array('cells' =>
585  array(
586  array(
587  'element' => 'checkboxCstm',
588  ),
589  )
590  ),
591  array('cells' =>
592  array(
593  array(
594  'element' => 'currencyCstm',
595  ),
596  )
597  ),
598  array('cells' =>
599  array(
600  array(
601  'element' => 'dateCstm',
602  ),
603  )
604  ),
605  array('cells' =>
606  array(
607  array(
608  'element' => 'datetimeCstm',
609  ),
610  )
611  ),
612  array('cells' =>
613  array(
614  array(
615  'element' => 'decimalCstm',
616  ),
617  )
618  ),
619  array('cells' =>
620  array(
621  array(
622  'element' => 'picklistCstm',
623  ),
624  )
625  ),
626  array('cells' =>
627  array(
628  array(
629  'element' => 'integerCstm',
630  ),
631  )
632  ),
633  array('cells' =>
634  array(
635  array(
636  'element' => 'multiselectCstm',
637  ),
638  )
639  ),
640  array('cells' =>
641  array(
642  array(
643  'element' => 'tagcloudCstm',
644  ),
645  )
646  ),
647  array('cells' =>
648  array(
649  array(
650  'element' => 'calcnumberCstm',
651  ),
652  )
653  ),
654  array('cells' =>
655  array(
656  array(
657  'element' => 'countrylistCstm',
658  ),
659  )
660  ),
661  array('cells' =>
662  array(
663  array(
664  'element' => 'statelistCstm',
665  ),
666  )
667  ),
668  array('cells' =>
669  array(
670  array(
671  'element' => 'citylistCstm',
672  ),
673  )
674  ),
675  array('cells' =>
676  array(
677  array(
678  'element' => 'phoneCstm',
679  ),
680  )
681  ),
682  array('cells' =>
683  array(
684  array(
685  'element' => 'radioCstm',
686  ),
687  )
688  ),
689  array('cells' =>
690  array(
691  array(
692  'element' => 'textCstm',
693  ),
694  )
695  ),
696  array('cells' =>
697  array(
698  array(
699  'element' => 'textareaCstm',
700  ),
701  )
702  ),
703  array('cells' =>
704  array(
705  array(
706  'element' => 'urlCstm',
707  ),
708  )
709  ),
710  ),
711  ),
712  ),
713  );
714  }
715 
720  public static function fetchProductTemplatesSearchFormGetData()
721  {
722  return array(
723  'name' => 'myEditProductTemplate',
724  'type' => ProductTemplate::TYPE_PRODUCT,
725  'description' => 'Test Description',
726  'sellPrice' => array ('value' => 200),
727  'cost' => array ('value' => 200),
728  'listPrice' => array ('value' => 200),
729  'priceFrequency' => 2,
730  'status' => ProductTemplate::STATUS_ACTIVE,
731  'decimalCstm' => '12',
732  'integerCstm' => '11',
733  'phoneCstm' => '259-784-2069',
734  'textCstm' => 'This is a test Edit Text',
735  'textareaCstm' => 'This is a test Edit TextArea',
736  'urlCstm' => 'http://wwww.abc-edit.com',
737  'checkboxCstm' => array('value' => '0'),
738  'currencyCstm' => array('value' => 40),
739  'picklistCstm' => array('value' => 'b'),
740  'multiselectCstm' => array('values' => array('gg', 'hh')),
741  'tagcloudCstm' => array('values' => array('reading', 'surfing')),
742  'countrylistCstm' => array('value' => 'aaaa'),
743  'statelistCstm' => array('value' => 'aaa1'),
744  'citylistCstm' => array('value' => 'ab1'),
745  'radioCstm' => array('value' => 'e'),
746  'dateCstm__Date' => array('type' => 'Today'),
747  'datetimeCstm__DateTime' => array('type' => 'Today'));
748  }
749  }
750 ?>
Generated on Sat Jul 11 2020 07:10:33
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.