Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99032842
Media.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 18, 15:01
Size
949 B
Mime Type
text/x-php
Expires
Mon, Jan 20, 15:01 (2 d)
Engine
blob
Format
Raw Data
Handle
23694305
Attached To
rPH Phabricator
Media.php
View Options
<?php
/**
* A list of :class:`Media <Services_Twilio_Rest_MediaInstance>` objects.
* For the definitive reference, see the `Twilio Media List Documentation
* <https://www.twilio.com/docs/api/rest/media>`_.
*/
class
Services_Twilio_Rest_Media
extends
Services_Twilio_ListResource
{
// This is overridden because the list key in the Twilio response
// is "media_list", not "media".
public
function
getResourceName
(
$camelized
=
false
)
{
if
(
$camelized
)
{
return
"MediaList"
;
}
else
{
return
"media_list"
;
}
}
// We manually set the instance name here so that the parent
// constructor doesn't attempt to figure out it. It would do it
// incorrectly because we override getResourceName above.
public
function
__construct
(
$client
,
$uri
)
{
$this
->
instance_name
=
"Services_Twilio_Rest_MediaInstance"
;
parent
::
__construct
(
$client
,
$uri
);
}
}
Event Timeline
Log In to Comment