[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/twilio-php/Services/Twilio/Rest/ -> Media.php (source)

   1  <?php
   2  
   3  /**
   4   * A list of :class:`Media <Services_Twilio_Rest_MediaInstance>` objects.
   5   * For the definitive reference, see the `Twilio Media List Documentation
   6   * <https://www.twilio.com/docs/api/rest/media>`_.
   7   */
   8  class Services_Twilio_Rest_Media extends Services_Twilio_ListResource {
   9  
  10  
  11      // This is overridden because the list key in the Twilio response
  12      // is "media_list", not "media".
  13      public function getResourceName($camelized = false)
  14      {
  15          if ($camelized) {
  16              return "MediaList";
  17          } else {
  18              return "media_list";
  19          }
  20      }
  21  
  22      // We manually set the instance name here so that the parent
  23      // constructor doesn't attempt to figure out it. It would do it
  24      // incorrectly because we override getResourceName above.
  25      public function __construct($client, $uri) {
  26          $this->instance_name = "Services_Twilio_Rest_MediaInstance";
  27          parent::__construct($client, $uri);
  28      }
  29  
  30  }
  31  


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1