Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
OpportunitiesDesignerWalkthroughHelperUtil.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 getOpportunityEditAndDetailsViewLayoutWithAllCustomFieldsPlaced()
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' => 'amount',
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' => 'probability',
75  ),
76  )
77  ),
78  array('cells' =>
79  array(
80  array(
81  'element' => 'closeDate',
82  ),
83  )
84  ),
85  array('cells' =>
86  array(
87  array(
88  'element' => 'stage',
89  ),
90  )
91  ),
92  array('cells' =>
93  array(
94  array(
95  'element' => 'source',
96  ),
97  )
98  ),
99  array('cells' =>
100  array(
101  array(
102  'element' => 'account',
103  ),
104  )
105  ),
106  array('cells' =>
107  array(
108  array(
109  'detailViewOnly' => true,
110  'element' => 'DateTimeCreatedUser',
111  ),
112  )
113  ),
114  array('cells' =>
115  array(
116  array(
117  'detailViewOnly' => true,
118  'element' => 'DateTimeModifiedUser',
119  ),
120  )
121  ),
122  array('cells' =>
123  array(
124  array(
125  'element' => 'description',
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 getOpportunitiesSearchViewLayoutWithAllCustomFieldsPlaced()
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' => 'amount',
398  ),
399  )
400  ),
401  array('cells' =>
402  array(
403  array(
404  'element' => 'owner',
405  ),
406  )
407  ),
408  array('cells' =>
409  array(
410  array(
411  'element' => 'closeDate__Date',
412  ),
413  )
414  ),
415  array('cells' =>
416  array(
417  array(
418  'element' => 'stage',
419  ),
420  )
421  ),
422  array('cells' =>
423  array(
424  array(
425  'element' => 'source',
426  ),
427  )
428  ),
429  array('cells' =>
430  array(
431  array(
432  'element' => 'account',
433  ),
434  )
435  ),
436  array('cells' =>
437  array(
438  array(
439  'element' => 'createdDateTime__DateTime',
440  ),
441  )
442  ),
443  array('cells' =>
444  array(
445  array(
446  'element' => 'modifiedDateTime__DateTime',
447  ),
448  )
449  ),
450  array('cells' =>
451  array(
452  array(
453  'element' => 'createdByUser',
454  ),
455  )
456  ),
457  array('cells' =>
458  array(
459  array(
460  'element' => 'modifiedByUser',
461  ),
462  )
463  ),
464  array('cells' =>
465  array(
466  array(
467  'element' => 'description',
468  ),
469  )
470  ),
471  ),
472  ),
473  ),
474  );
475  }
476 
481  {
482  return array(
483  'panels' => array(
484  array(
485  'rows' => array(
486  array('cells' =>
487  array(
488  array(
489  'element' => 'name',
490  ),
491  )
492  ),
493  array('cells' =>
494  array(
495  array(
496  'element' => 'owner',
497  ),
498  )
499  ),
500  array('cells' =>
501  array(
502  array(
503  'element' => 'amount',
504  ),
505  )
506  ),
507  array('cells' =>
508  array(
509  array(
510  'element' => 'account',
511  ),
512  )
513  ),
514  array('cells' =>
515  array(
516  array(
517  'element' => 'closeDate',
518  ),
519  )
520  ),
521  array('cells' =>
522  array(
523  array(
524  'element' => 'stage',
525  ),
526  )
527  ),
528  array('cells' =>
529  array(
530  array(
531  'element' => 'source',
532  ),
533  )
534  ),
535  array('cells' =>
536  array(
537  array(
538  'element' => 'probability',
539  ),
540  )
541  ),
542  array('cells' =>
543  array(
544  array(
545  'element' => 'description',
546  ),
547  )
548  ),
549  array('cells' =>
550  array(
551  array(
552  'element' => 'createdDateTime',
553  ),
554  )
555  ),
556  array('cells' =>
557  array(
558  array(
559  'element' => 'modifiedDateTime',
560  ),
561  )
562  ),
563  array('cells' =>
564  array(
565  array(
566  'element' => 'createdByUser',
567  ),
568  )
569  ),
570  array('cells' =>
571  array(
572  array(
573  'element' => 'modifiedByUser',
574  ),
575  )
576  ),
577  array('cells' =>
578  array(
579  array(
580  'element' => 'checkboxCstm',
581  ),
582  )
583  ),
584  array('cells' =>
585  array(
586  array(
587  'element' => 'currencyCstm',
588  ),
589  )
590  ),
591  array('cells' =>
592  array(
593  array(
594  'element' => 'dateCstm',
595  ),
596  )
597  ),
598  array('cells' =>
599  array(
600  array(
601  'element' => 'datetimeCstm',
602  ),
603  )
604  ),
605  array('cells' =>
606  array(
607  array(
608  'element' => 'decimalCstm',
609  ),
610  )
611  ),
612  array('cells' =>
613  array(
614  array(
615  'element' => 'picklistCstm',
616  ),
617  )
618  ),
619  array('cells' =>
620  array(
621  array(
622  'element' => 'integerCstm',
623  ),
624  )
625  ),
626  array('cells' =>
627  array(
628  array(
629  'element' => 'multiselectCstm',
630  ),
631  )
632  ),
633  array('cells' =>
634  array(
635  array(
636  'element' => 'tagcloudCstm',
637  ),
638  )
639  ),
640  array('cells' =>
641  array(
642  array(
643  'element' => 'calcnumberCstm',
644  ),
645  )
646  ),
647  array('cells' =>
648  array(
649  array(
650  'element' => 'countrylistCstm',
651  ),
652  )
653  ),
654  array('cells' =>
655  array(
656  array(
657  'element' => 'statelistCstm',
658  ),
659  )
660  ),
661  array('cells' =>
662  array(
663  array(
664  'element' => 'citylistCstm',
665  ),
666  )
667  ),
668  array('cells' =>
669  array(
670  array(
671  'element' => 'phoneCstm',
672  ),
673  )
674  ),
675  array('cells' =>
676  array(
677  array(
678  'element' => 'radioCstm',
679  ),
680  )
681  ),
682  array('cells' =>
683  array(
684  array(
685  'element' => 'textCstm',
686  ),
687  )
688  ),
689  array('cells' =>
690  array(
691  array(
692  'element' => 'textareaCstm',
693  ),
694  )
695  ),
696  array('cells' =>
697  array(
698  array(
699  'element' => 'urlCstm',
700  ),
701  )
702  ),
703  ),
704  ),
705  ),
706  );
707  }
708 
709  public static function getOpportunitiesMassEditViewLayoutWithAllStandardAndCustomFieldsPlaced()
710  {
711  return array(
712  'panels' => array(
713  array(
714  'rows' => array(
715  array('cells' =>
716  array(
717  array(
718  'element' => 'name',
719  ),
720  )
721  ),
722  array('cells' =>
723  array(
724  array(
725  'element' => 'owner',
726  ),
727  )
728  ),
729  array('cells' =>
730  array(
731  array(
732  'element' => 'amount',
733  ),
734  )
735  ),
736  array('cells' =>
737  array(
738  array(
739  'element' => 'account',
740  ),
741  )
742  ),
743  array('cells' =>
744  array(
745  array(
746  'element' => 'closeDate',
747  ),
748  )
749  ),
750  array('cells' =>
751  array(
752  array(
753  'element' => 'stage',
754  ),
755  )
756  ),
757  array('cells' =>
758  array(
759  array(
760  'element' => 'source',
761  ),
762  )
763  ),
764  array('cells' =>
765  array(
766  array(
767  'element' => 'probability',
768  ),
769  )
770  ),
771  array('cells' =>
772  array(
773  array(
774  'element' => 'checkboxCstm',
775  ),
776  )
777  ),
778  array('cells' =>
779  array(
780  array(
781  'element' => 'currencyCstm',
782  ),
783  )
784  ),
785  array('cells' =>
786  array(
787  array(
788  'element' => 'dateCstm',
789  ),
790  )
791  ),
792  array('cells' =>
793  array(
794  array(
795  'element' => 'datetimeCstm',
796  ),
797  )
798  ),
799  array('cells' =>
800  array(
801  array(
802  'element' => 'decimalCstm',
803  ),
804  )
805  ),
806  array('cells' =>
807  array(
808  array(
809  'element' => 'picklistCstm',
810  ),
811  )
812  ),
813  array('cells' =>
814  array(
815  array(
816  'element' => 'integerCstm',
817  ),
818  )
819  ),
820  array('cells' =>
821  array(
822  array(
823  'element' => 'multiselectCstm',
824  ),
825  )
826  ),
827  array('cells' =>
828  array(
829  array(
830  'element' => 'tagcloudCstm',
831  ),
832  )
833  ),
834  array('cells' =>
835  array(
836  array(
837  'element' => 'countrylistCstm',
838  ),
839  )
840  ),
841  array('cells' =>
842  array(
843  array(
844  'element' => 'statelistCstm',
845  ),
846  )
847  ),
848  array('cells' =>
849  array(
850  array(
851  'element' => 'citylistCstm',
852  ),
853  )
854  ),
855  array('cells' =>
856  array(
857  array(
858  'element' => 'phoneCstm',
859  ),
860  )
861  ),
862  array('cells' =>
863  array(
864  array(
865  'element' => 'radioCstm',
866  ),
867  )
868  ),
869  array('cells' =>
870  array(
871  array(
872  'element' => 'textCstm',
873  ),
874  )
875  ),
876  array('cells' =>
877  array(
878  array(
879  'element' => 'urlCstm',
880  ),
881  )
882  ),
883  ),
884  ),
885  ),
886  );
887  }
888 
893  public static function fetchOpportunitiesSearchFormGetData($accountId, $superUserId, $currencyId)
894  {
895  return array(
896  'name' => 'myEditOpportunity',
897  'owner' => array('id' => $superUserId),
898  'ownedItemsOnly' => '1',
899  'account' => array('id' => $accountId),
900  'amount' => array('value' => 288000,
901  'relatedData' => true,
902  'currency' => array('id' => $currencyId)),
903  'closeDate__Date' => array('value' => 'Today'),
904  'stage' => array('value' => 'Qualification'),
905  'source' => array('value' => 'Inbound Call'),
906  'probability' => '2',
907  'decimalCstm' => '12',
908  'integerCstm' => '11',
909  'phoneCstm' => '259-784-2069',
910  'textCstm' => 'This is a test Edit Text',
911  'textareaCstm' => 'This is a test Edit TextArea',
912  'urlCstm' => 'http://wwww.abc-edit.com',
913  'checkboxCstm' => array('value' => '0'),
914  'currencyCstm' => array('value' => 40),
915  'picklistCstm' => array('value' => 'b'),
916  'multiselectCstm' => array('values' => array('gg', 'hh')),
917  'tagcloudCstm' => array('values' => array('reading', 'surfing')),
918  'countrylistCstm' => array('value' => 'aaaa'),
919  'statelistCstm' => array('value' => 'aaa1'),
920  'citylistCstm' => array('value' => 'ab1'),
921  'radioCstm' => array('value' => 'e'),
922  'dateCstm__Date' => array('type' => 'Today'),
923  'datetimeCstm__DateTime' => array('type' => 'Today'));
924  }
925  }
926 ?>
static fetchOpportunitiesSearchFormGetData($accountId, $superUserId, $currencyId)
Generated on Tue Jul 14 2020 07:10:34
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.