File: Zend_Service_DeveloperGarden.xml

package info (click to toggle)
zendframework 1.12.9%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 133,584 kB
  • sloc: xml: 1,311,829; php: 570,173; sh: 170; makefile: 125; sql: 121
file content (903 lines) | stat: -rw-r--r-- 31,397 bytes parent folder | download | duplicates (2)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
<?xml version="1.0" encoding="UTF-8"?>
<!-- Reviewed: no -->
<sect1 id="zend.service.developergarden">
    <title>Zend_Service_DeveloperGarden</title>

    <sect2 id="zend.service.developergarden.introduction">
        <title>Introduction to DeveloperGarden</title>

        <para>
            Developer Garden is the name of Deutsche Telekom's developer community.
            Developer Garden offers you  access to core services of Deutsche Telekom,
            such as voice connections (Voice Call) or sending text messages (Send SMS)
            via open interfaces (Open <acronym>API</acronym>s). You can access the Developer Garden
            services directly via <acronym>SOAP</acronym> or <acronym>REST</acronym>.
        </para>

        <para>
            The family of <classname>Zend_Service_DeveloperGarden</classname> components provides a
            clean and simple interface to the <ulink
                url="http://www.developergarden.com">Developer Garden APIs</ulink> and additionally
            offers functionality to improve handling and performance.
        </para>

        <itemizedlist>
            <listitem>
                <para>
                    <link
                        linkend="zend.service.developergarden.baseuserservice">BaseUserService</link>:
                    Class to manage <acronym>API</acronym> quota and user accounting details.
                </para>
            </listitem>

            <listitem>
                <para>
                    <link linkend="zend.service.developergarden.iplocation">IPLocation</link>:
                    Locale the given IP and returns geo coordinates. Works only with IPs allocated
                    in the network of the Deutsche Telekom.
                    </para>
            </listitem>

            <listitem>
                <para>
                    <link linkend="zend.service.developergarden.localsearch">LocalSearch</link>:
                    Allows you to search with options nearby or around a given geo coordinate or
                    city.
                </para>
            </listitem>

            <listitem>
                <para>
                    <link linkend="zend.service.developergarden.sendsms">SendSMS</link>: Send a SMS
                    or Flash SMS to a given number.
                </para>
            </listitem>

            <listitem>
                <para>
                    <link linkend="zend.service.developergarden.smsvalidation">SMSValidation</link>:
                    You can validate a number to use it with SendSMS for also supply a back channel.
                </para>
            </listitem>

            <listitem>
                <para>
                    <link linkend="zend.service.developergarden.voicecall">VoiceCall</link>:
                    Initiates a call between two participants.
                 </para>
            </listitem>

            <listitem>
                <para>
                    <link
                        linkend="zend.service.developergarden.conferencecall">ConferenceCall</link>:
                    You can configure a whole conference room with participants for an adhoc
                    conference or you can also schedule your conference.
                </para>
            </listitem>
        </itemizedlist>

        <para>
            The backend <acronym>SOAP</acronym> <acronym>API</acronym> is documented
            <ulink url="http://www.developergarden.com/openapi/dokumentation/">here</ulink>.
        </para>

        <sect3 id="zend.service.developergarden.account">
            <title>Sign Up for an Account</title>

            <para>
                Before you can start using the DeveloperGarden <acronym>API</acronym>, you first
                have to <ulink url="http://www.developergarden.com/register">sign up</ulink> for an
                account.
            </para>
        </sect3>

        <sect3 id="zend.service.developergarden.environment">
            <title>The Environment</title>

            <para>
                With the DeveloperGarden <acronym>API</acronym> you have the possibility to choose
                between 3 different development environments.
            </para>

            <itemizedlist>
                <listitem>
                    <para>
                        <emphasis>production</emphasis>: In Production environment there are no
                        usage limitations. You have to pay for calls, sms and other services with
                        costs.
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <emphasis>sandbox</emphasis>: In the Sandbox mode you can use the same
                        features (with limitations) as in the production without to paying
                        for them. This environment is suitable for testing your prototype.
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <emphasis>mock</emphasis>: The Mock environment allows you to build your
                        application and have results but you do not initiate any action on the
                        <acronym>API</acronym> side. This environment is intended for testing during
                        development.
                    </para>
                </listitem>
            </itemizedlist>

            <para>
                For every environment and service, there are some special features (options)
                available for testing. Please look <ulink
                    url="http://www.developergarden.com/openapi/dokumentation/">here</ulink> for
                details.
            </para>
        </sect3>

        <sect3 id="zend.service.developergarden.config">
            <title>Your configuration</title>

            <para>
                You can pass to all classes an array of configuration values. Possible values are:
            </para>

            <itemizedlist>
                <listitem>
                    <para>
                        <emphasis>username</emphasis>: Your DeveloperGarden <acronym>API</acronym>
                        username.
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <emphasis>password</emphasis>: Your DeveloperGarden <acronym>API</acronym>
                        password.
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <emphasis>environment</emphasis>: The environment that you selected.
                    </para>
                </listitem>
            </itemizedlist>

            <example id="zend.service.developergarden.config.example">
                <title>Configuration Example</title>

                <programlisting language="php"><![CDATA[
require_once 'Zend/Service/DeveloperGarden/SendSms.php';
$config = array(
    'username'    => 'yourUsername',
    'password'    => 'yourPassword',
    'environment' => Zend_Service_DeveloperGarden_SendSms::ENV_PRODUCTION,
);
$service = new Zend_Service_DeveloperGarden_SendSms($config);
]]></programlisting>
            </example>
        </sect3>
    </sect2>

    <sect2 id="zend.service.developergarden.baseuserservice">
        <title>BaseUserService</title>

        <para>
            The class can be used to set and get quota values for the services and to fetch
            account details.
        </para>

        <para>
            The <methodname>getAccountBalance()</methodname> method fetches an array
            of account id's with the current balance status (credits).
        </para>

        <example id="zend.service.developergarden.baseuserservice.getaccountbalance.example">
            <title>Get account balance example</title>

            <programlisting language="php"><![CDATA[
$service = new Zend_Service_DeveloperGarden_BaseUserService($config);
print_r($service->getAccountBalance());
]]></programlisting>
        </example>

        <sect3 id="zend.service.developergarden.baseuserservice.getquotainformation">
            <title>Get quota information</title>

            <para>
                You can fetch quota informations for a specific service module with the
                provided methods.
            </para>

            <example id="zend.service.developergarden.baseuserservice.getquotainformation.example">
                <title>Get quota information example</title>

                <programlisting language="php"><![CDATA[
$service = new Zend_Service_DeveloperGarden_BaseUserService($config);
$result = $service->getSmsQuotaInformation(
    Zend_Service_DeveloperGarden_BaseUserService::ENV_PRODUCTION
);
echo 'Sms Quota:<br />';
echo 'Max Quota: ', $result->getMaxQuota(), '<br />';
echo 'Max User Quota: ', $result->getMaxUserQuota(), '<br />';
echo 'Quota Level: ', $result->getQuotaLevel(), '<br />';
]]></programlisting>
            </example>

            <para>
                You get a <classname>result</classname> object that contains all the information
                you need, optional you can pass to the <methodname>QuotaInformation</methodname>
                method the environment constant to fetch the quota for the specific environment.
            </para>

            <para>
                Here a list of all <methodname>getQuotaInformation</methodname> methods:
            </para>

            <itemizedlist>
                <listitem>
                    <para>
                        <methodname>getConfernceCallQuotaInformation()</methodname>
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <methodname>getIPLocationQuotaInformation()</methodname>
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <methodname>getLocalSearchQuotaInformation()</methodname>
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <methodname>getSmsQuotaInformation()</methodname>
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <methodname>getVoiceCallQuotaInformation()</methodname>
                    </para>
                </listitem>
            </itemizedlist>
        </sect3>

        <sect3 id="zend.service.developergarden.baseuserservice.changequotainformation">
            <title>Change quota information</title>

            <para>
                To change the current quota use one of the <methodname>changeQuotaPool</methodname>
                methods. First parameter is the new pool value and the second one is the
                environment.
            </para>

            <example
                id="zend.service.developergarden.baseuserservice.changequotainformation.example">
                <title>Change quota information example</title>

                <programlisting language="php"><![CDATA[
$service = new Zend_Service_DeveloperGarden_BaseUserService($config);
$result = $service->changeSmsQuotaPool(
    1000,
    Zend_Service_DeveloperGarden_BaseUserService::ENV_PRODUCTION
);
if (!$result->hasError()) {
    echo 'updated Quota Pool';
}
]]></programlisting>
            </example>

            <para>
                Here a list of all <methodname>changeQuotaPool</methodname> methods:
            </para>

            <itemizedlist>
                <listitem>
                    <para>
                        <methodname>changeConferenceCallQuotaPool()</methodname>
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <methodname>changeIPLocationQuotaPool()</methodname>
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <methodname>changeLocalSearchQuotaPool()</methodname>
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <methodname>changeSmsQuotaPool()</methodname>
                    </para>
                </listitem>

                <listitem>
                    <para>
                        <methodname>changeVoiceCallQuotaPool()</methodname>
                    </para>
                </listitem>
            </itemizedlist>
        </sect3>
    </sect2>

    <sect2 id="zend.service.developergarden.iplocation">
        <title>IP Location</title>

        <para>
            This service allows you to retrieve location information for a given IP address.
        </para>

        <para>
            There are some limitations:
        </para>

        <itemizedlist>
            <listitem>
                <para>The IP address must be in the T-Home network</para>
            </listitem>

            <listitem>
                <para>Just the next big city will be resolved</para>
            </listitem>

            <listitem>
                <para>IPv6 is not supported yet</para>
            </listitem>
        </itemizedlist>

        <example id="zend.service.developergarden.iplocation.locateip.example">
            <title>Locate a given IP</title>

            <programlisting language="php"><![CDATA[
$service = new Zend_Service_DeveloperGarden_IpLocation($config);
$service->setEnvironment(
    Zend_Service_DeveloperGarden_IpLocation::ENV_MOCK
);
$ip = new Zend_Service_DeveloperGarden_IpLocation_IpAddress('127.0.0.1');
print_r($service->locateIp($ip));
]]></programlisting>
        </example>
    </sect2>

    <sect2 id="zend.service.developergarden.localsearch">
        <title>Local Search</title>

        <para>
            The Local Search service provides the location based search machine <ulink
                url="http://www.suchen.de">suchen.de</ulink> via web service interface. For
            more details, refer to <ulink
                url="http://www.developergarden.com/static/docu/en/ch04s02s06.html">the
                documentation</ulink>.
        </para>

        <example id="zend.service.developergarden.localsearch.example">
            <title>Locate a Restaurant</title>

            <programlisting language="php"><![CDATA[
$service = new Zend_Service_DeveloperGarden_LocalSearch($config);
$search  = new Zend_Service_DeveloperGarden_LocalSearch_SearchParameters();
/**
 * @see http://www.developergarden.com/static/docu/en/ch04s02s06s04.html
 */
$search->setWhat('pizza')
       ->setWhere('jena');
print_r($service->localSearch($search));
]]></programlisting>
        </example>
    </sect2>

    <sect2 id="zend.service.developergarden.sendsms">
        <title>Send SMS</title>

        <para>
            The Send SMS service is used to send normal and Flash SMS to any number.
        </para>

        <para>
            The following restrictions apply to the use of the SMS service:
        </para>

        <itemizedlist>
            <listitem>
                <para>
                    An SMS or Flash SMS in the production environment must not be longer than
                    765 characters and must not be sent to more than 10 recipients.
                </para>
            </listitem>

            <listitem>
                <para>
                    An SMS or Flash SMS in the sandbox environment is shortened and enhanced by a
                    note from the DeveloperGarden. The maximum length of the message is 160
                    characters.
                </para>
            </listitem>

            <listitem>
                <para>
                    In the sandbox environment, a maximum of 10 SMS can be sent per day.
                </para>
            </listitem>

            <listitem>
                <para>
                    The following characters are counted twice:
                    <literal>| ^ € { } [ ] ~ \ LF</literal> (line break)
                </para>
            </listitem>

            <listitem>
                <para>
                    If a SMS or Flash SMS is longer than 160 characters, one message is charged for
                    each 153 characters (quota and credit).
                </para>
            </listitem>

            <listitem>
                <para>
                    Delivery cannot be guaranteed for SMS or Flash SMS to landline numbers.
                </para>
            </listitem>

            <listitem>
                <para>
                    The sender can be a maximum of 11 characters. Permitted characters are
                    letters and numbers.
                </para>
            </listitem>

            <listitem>
                <para>
                    The specification of a phone number as the sender is only permitted if the phone
                    number has been validated. (See: <link
                        linkend="zend.service.developergarden.smsvalidation">SMS Validation</link>)
                </para>
            </listitem>
        </itemizedlist>

        <example id="zend.service.developergarden.sendsms.example">
            <title>Sending an SMS</title>

            <programlisting language="php"><![CDATA[
$service = new Zend_Service_DeveloperGarden_SendSms($config);
$sms = $service->createSms(
    '+49-172-123456; +49-177-789012',
    'your test message',
    'yourname'
);
print_r($service->send($sms));]]></programlisting>
        </example>
    </sect2>

    <sect2 id="zend.service.developergarden.smsvalidation">
        <title>SMS Validation</title>

        <para>
            The SMS Validation service allows the validation of physical phone number to be used
            as the sender of an SMS.
        </para>

        <para>
            First, call <methodname>setValidationKeyword()</methodname> to receive an SMS
            with a keyword.
        </para>

        <para>
            After you get your keyword, you have to use the <methodname>validate()</methodname> to
            validate your number with the keyword against the service.
        </para>

        <para>
            With the method <methodname>getValidatedNumbers()</methodname>, you will get a list
            of all already validated numbers and the status of each.
        </para>

        <example id="zend.service.developergarden.smsvalidation.request.example">
            <title>Request validation keyword</title>

            <programlisting language="php"><![CDATA[
$service = new Zend_Service_DeveloperGarden_SmsValidation($config);
print_r($service->sendValidationKeyword('+49-172-123456'));
]]></programlisting>
        </example>

        <example id="zend.service.developergarden.smsvalidation.validate.example">
            <title>Validate a number with a keyword</title>

            <programlisting language="php"><![CDATA[
$service = new Zend_Service_DeveloperGarden_SmsValidation($config);
print_r($service->validate('TheKeyWord', '+49-172-123456'));
]]></programlisting>
        </example>

        <para>
            To invalidate a validated number, call the method <methodname>inValidate()</methodname>.
        </para>
    </sect2>

    <sect2 id="zend.service.developergarden.voicecall">
        <title>Voice Call</title>

        <para>
            The Voice Call service can be used to set up a voice connection between two telephone
            connections. For specific details please read the <ulink
                url="http://www.developergarden.com/static/docu/en/ch04s02.html">API
                Documentation</ulink>.
        </para>

        <para>
            Normally the Service works as followed:
        </para>

        <itemizedlist>
            <listitem>
                <para>
                    Call the first participant.
                </para>
            </listitem>

            <listitem>
                <para>
                    If the connection is successful, call the second participant.
                </para>
            </listitem>

            <listitem>
                <para>
                    If second participant connects succesfully, both participants are connected.
                </para>
            </listitem>

            <listitem>
                <para>
                    The call is open until one of the participants hangs up or the expire mechanism
                    intercepts.
                </para>
            </listitem>
        </itemizedlist>

        <example id="zend.service.developergarden.voicecall.call.example">
            <title>Call two numbers</title>

            <programlisting language="php"><![CDATA[
$service = new Zend_Service_DeveloperGarden_VoiceCall($config);
$aNumber = '+49-30-000001';
$bNumber = '+49-30-000002';
$expiration  = 30;  // seconds
$maxDuration = 300; // 5 mins
$newCall = $service->newCall($aNumber, $bNumber, $expiration, $maxDuration);
echo $newCall->getSessionId();
]]></programlisting>
        </example>

        <para>
            If the call is initiated, you can ask the result object for the session ID and
            use this session ID for an additional call to the <methodname>callStatus</methodname>
            or <methodname>tearDownCall()</methodname> methods. The second parameter on the
            <methodname>callStatus()</methodname> method call extends the expiration for this call.
        </para>

        <example id="zend.service.developergarden.voicecall.teardown.example">
            <title>Call two numbers, ask for status, and cancel</title>

            <programlisting language="php"><![CDATA[
$service = new Zend_Service_DeveloperGarden_VoiceCall($config);
$aNumber = '+49-30-000001';
$bNumber = '+49-30-000002';
$expiration  = 30; // seconds
$maxDuration = 300; // 5 mins

$newCall = $service->newCall($aNumber, $bNumber, $expiration, $maxDuration);

$sessionId = $newCall->getSessionId();

$service->callStatus($sessionId, true); // extend the call

sleep(10); // sleep 10s and then tearDown

$service->tearDownCall($sessionId);
]]></programlisting>
        </example>
    </sect2>

    <sect2 id="zend.service.developergarden.conferencecall">
        <title>ConferenceCall</title>

        <para>
            Conference Call allows you to setup and start a phone conference.
        </para>

        <para>
            The following features are available:
        </para>

        <itemizedlist>
            <listitem>
                <para>
                    Conferences with an immediate start
                </para>
            </listitem>

            <listitem>
                <para>
                    Conferences with a defined start date
                </para>
            </listitem>

            <listitem>
                <para>
                    Recurring conference series
                </para>
            </listitem>

            <listitem>
                <para>
                    Adding, removing, and muting of participants from a conference
                </para>
            </listitem>

            <listitem>
                <para>
                    Templates for conferences
                </para>
            </listitem>
        </itemizedlist>

        <para>
            Here is a list of currently implemented <acronym>API</acronym> methods:
        </para>

        <itemizedlist>
            <listitem>
                <para>
                    <methodname>createConference()</methodname> creates a new conference
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>updateConference()</methodname> updates an existing conference
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>commitConference()</methodname> saves the conference, and, if no
                    date is configured, immediately starts the conference
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>removeConference()</methodname> removes a conference
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>getConferenceList()</methodname> returns a list of all configured
                    conferences
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>getConferenceStatus()</methodname> displays information for an
                    existing conference
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>getParticipantStatus()</methodname> displays status information
                    about a conference participant
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>newParticipant()</methodname> creates a new participant
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>addParticipant()</methodname> adds a participant to a conference
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>updateParticipant()</methodname> updates a participant,
                    usually to mute or redial the participant
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>removeParticipant()</methodname> removes a participant from a
                    conference
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>getRunningConference()</methodname> requests the running instance of
                    a planned conference
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>createConferenceTemplate()</methodname> creates a new conference
                    template
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>getConferenceTemplate()</methodname> requests an existing conference
                    template
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>updateConferenceTemplate()</methodname> updates existing conference
                    template details
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>removeConferenceTemplate()</methodname> removes a conference
                    template
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>getConferenceTemplateList()</methodname> requests all conference
                    templates of an owner
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>addConferenceTemplateParticipant()</methodname> adds a conference
                    participant to conference template
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>getConferenceTemplateParticipant()</methodname> displays details of
                    a participant of a conference template
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>updateConferenceTemplateParticipant()</methodname> updates
                    participant details within a conference template
                </para>
            </listitem>

            <listitem>
                <para>
                    <methodname>removeConferenceTemplateParticipant()</methodname> removes
                    a participant from a conference template
                </para>
            </listitem>
        </itemizedlist>

        <example id="zend.service.developergarden.conferencecall.example">
            <title>Ad-Hoc conference</title>

            <programlisting language="php"><![CDATA[
$client = new Zend_Service_DeveloperGarden_ConferenceCall($config);

$conferenceDetails =
    new Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail(
        'Zend-Conference',                    // name for the conference
        'this is my private zend conference', // description
        60                                    // duration in seconds
    );

$conference = $client->createConference('MyName', $conferenceDetails);

$part1 = new Zend_Service_DeveloperGarden_ConferenceCall_ParticipantDetail(
    'Jon',
    'Doe',
    '+49-123-4321',
    'your.name@example.com',
    true
);

$client->newParticipant($conference->getConferenceId(), $part1);
// add a second, third ... participant

$client->commitConference($conference->getConferenceId());
]]></programlisting>
        </example>
    </sect2>

    <sect2 id="zend.service.developergarden.performance">
        <title>Performance and Caching</title>

        <para>
            You can setup various caching options to improve the performance for resolving WSDL and
            authentication tokens.
        </para>

        <para>
            First of all, you can setup the internal SoapClient (PHP) caching values.
        </para>

        <example id="zend.service.developergarden.performance.wsdlcache.example">
            <title>WSDL cache options</title>

            <programlisting language="php"><![CDATA[
Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setWsdlCache(
    [PHP CONSTANT]
);
]]></programlisting>
        </example>

        <para>
            The <constant>[PHP CONSTANT]</constant> can be one of the following values:
        </para>

        <itemizedlist>
            <listitem>
                <para>
                    <constant>WSDL_CACHE_DISC</constant>: enabled disc caching
                </para>
            </listitem>

            <listitem>
                <para>
                    <constant>WSDL_CACHE_MEMORY</constant>: enabled memory caching
                </para>
            </listitem>

            <listitem>
                <para>
                    <constant>WSDL_CACHE_BOTH</constant>: enabled disc and memory caching
                </para>
            </listitem>

            <listitem>
                <para>
                    <constant>WSDL_CACHE_NONE</constant>: disabled both caching
                </para>
            </listitem>
        </itemizedlist>

        <para>
            If you also want to cache the result for calls to the SecuritTokenServer
            you can setup a <classname>Zend_Cache</classname> instance and pass it to the
            <methodname>setCache()</methodname>.
        </para>

        <example id="zend.service.developergarden.performance.cache.example">
            <title>SecurityTokenServer cache option</title>

            <programlisting language="php"><![CDATA[
$cache = Zend_Cache::factory('Core', ...);
Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setCache($cache);
]]></programlisting>
        </example>
    </sect2>
</sect1>