Overview

Namespaces

  • PHP
  • SMSApi
    • Api
      • Action
        • Mms
        • Phonebook
        • Sender
        • Sms
        • User
        • Vms
      • Response
    • Exception
    • Proxy
      • Http

Classes

  • ActionFactory
  • MmsFactory
  • PhonebookFactory
  • SenderFactory
  • SmsFactory
  • UserFactory
  • VmsFactory
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace SMSApi\Api;
 4: 
 5: /**
 6:  * Class MmsFactory
 7:  * @package SMSApi\Api
 8:  */
 9: class MmsFactory extends ActionFactory {
10: 
11:     /**
12:      * @return Action\Mms\Send
13:      */
14:     public function actionSend() {
15:         $action = new \SMSApi\Api\Action\Mms\Send();
16:         $action->client( $this->client );
17:         $action->proxy( $this->proxy );
18: 
19:         return $action;
20:     }
21: 
22:     /**
23:      * @param null $id
24:      * @return Action\Mms\Get
25:      * @throws \SMSApi\Exception\ActionException
26:      */
27:     public function actionGet( $id = null ) {
28:         $action = new \SMSApi\Api\Action\Mms\Get();
29:         $action->client( $this->client );
30:         $action->proxy( $this->proxy );
31: 
32:         if ( !empty( $id ) && is_string( $id ) ) {
33:             $action->filterById( $id );
34:         } else if ( !empty( $id ) && is_array( $id ) ) {
35:             $action->filterByIds( $id );
36:         }
37: 
38:         return $action;
39:     }
40: 
41:     /**
42:      * @param null $id
43:      * @return Action\Mms\Delete
44:      * @throws \SMSApi\Exception\ActionException
45:      */
46:     public function actionDelete( $id = null ) {
47:         $action = new \SMSApi\Api\Action\Mms\Delete();
48:         $action->client( $this->client );
49:         $action->proxy( $this->proxy );
50: 
51:         if ( !empty( $id ) && is_string( $id ) ) {
52:             $action->filterById( $id );
53:         } else if ( !empty( $id ) && is_array( $id ) ) {
54:             $action->filterByIds( $id );
55:         }
56: 
57:         return $action;
58:     }
59: 
60: }
61: 
API documentation generated by ApiGen 2.8.0